@wirecat/mail-cli 0.25.0 → 0.27.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 (157) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +3 -0
  3. package/contracts/wirecat.json +1325 -0
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bin/mail.js.map +1 -1
  6. package/dist/bundle/{all-profiles-QEV2PSOR.js → all-profiles-5XWH7TBM.js} +11 -11
  7. package/dist/bundle/{anthropic-5NKQXIHM.js → anthropic-QEQGUEPW.js} +5 -5
  8. package/dist/bundle/{app-server-G2CJNT4R.js → app-server-YWDU56NR.js} +55 -51
  9. package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-DXIQ7BVR.js → bun-sqlite-S4QD5YUO.js} +6 -6
  11. package/dist/bundle/{chunk-37F6QYTO.js → chunk-255RGG5W.js} +6 -6
  12. package/dist/bundle/{chunk-DIA56CS7.js → chunk-2FZMIJW7.js} +11 -7
  13. package/dist/bundle/{chunk-S2QRAKQI.js → chunk-4VDWQKDI.js} +17 -17
  14. package/dist/bundle/{chunk-QB3DP2TN.js → chunk-572NWJUN.js} +2 -2
  15. package/dist/bundle/{chunk-PHHH2NQP.js → chunk-5BPOEPYL.js} +15 -113
  16. package/dist/bundle/{chunk-VL6H2BND.js → chunk-5DLPM5AV.js} +18 -17
  17. package/dist/bundle/{chunk-HEIDAHRC.js → chunk-77J5ID2O.js} +2 -2
  18. package/dist/bundle/{chunk-5ZYFV6FD.js → chunk-7BXOFLWJ.js} +129 -74
  19. package/dist/bundle/{chunk-L4QVOEOB.js → chunk-7C6FGWDH.js} +4 -4
  20. package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
  21. package/dist/bundle/{chunk-TY644DKQ.js → chunk-7MEVD5PI.js} +57 -28
  22. package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
  23. package/dist/bundle/{chunk-WX6OYVCH.js → chunk-AIZ225IA.js} +379 -270
  24. package/dist/bundle/{chunk-K2OGF7KC.js → chunk-APLVXHFG.js} +2 -2
  25. package/dist/bundle/{chunk-GY4XCLCO.js → chunk-BZCXAVGP.js} +8 -8
  26. package/dist/bundle/{chunk-434YOD6A.js → chunk-CKFVKHTB.js} +4 -4
  27. package/dist/bundle/{chunk-B7SWTH5O.js → chunk-CZRMT6XV.js} +2 -2
  28. package/dist/bundle/{chunk-Z5T6OW3V.js → chunk-DQO2LX5I.js} +4 -4
  29. package/dist/bundle/{chunk-OLKCJBZY.js → chunk-DSUOYJUL.js} +5 -5
  30. package/dist/bundle/{chunk-IZOYW4Z4.js → chunk-ECZSYLSL.js} +24 -9
  31. package/dist/bundle/{chunk-YNS2YVUR.js → chunk-ELPH22W6.js} +9 -9
  32. package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
  33. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
  34. package/dist/bundle/{chunk-HLXVUMZJ.js → chunk-FOTP6QLO.js} +2 -2
  35. package/dist/bundle/{chunk-SMTBV62X.js → chunk-FVVSBQGK.js} +29 -25
  36. package/dist/bundle/{chunk-XQYKIZMG.js → chunk-HBK6MRAL.js} +12 -9
  37. package/dist/bundle/{chunk-5QYK3LWS.js → chunk-IDOHT4Z3.js} +123 -42
  38. package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
  39. package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
  40. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
  41. package/dist/bundle/{chunk-CBYBZCQP.js → chunk-MY4LVD64.js} +3 -2
  42. package/dist/bundle/{chunk-OLLIWNFG.js → chunk-NZG6IRDW.js} +3 -3
  43. package/dist/bundle/{chunk-ND5H5ADM.js → chunk-OC3U2JAK.js} +4 -4
  44. package/dist/bundle/{chunk-KFB2X6KE.js → chunk-OCUKQRJ3.js} +201 -160
  45. package/dist/bundle/{chunk-PQMJ5BXH.js → chunk-OEPNLKHI.js} +4 -4
  46. package/dist/bundle/{chunk-GJRYZXBN.js → chunk-OPOEAGVB.js} +9 -9
  47. package/dist/bundle/{chunk-VFU7PVPQ.js → chunk-PA7LDYVX.js} +62 -60
  48. package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
  49. package/dist/bundle/{chunk-A6BPOX5O.js → chunk-PRSXMM4I.js} +3825 -3516
  50. package/dist/bundle/{chunk-HEYVMAAQ.js → chunk-QQTSPQ2D.js} +2 -2
  51. package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
  52. package/dist/bundle/{chunk-J4OYK4WL.js → chunk-R3A65A4D.js} +12 -12
  53. package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
  54. package/dist/bundle/{chunk-XMDEM6BZ.js → chunk-RGQFVVBB.js} +276 -254
  55. package/dist/bundle/{chunk-FZZD4AFY.js → chunk-ROLHKFKB.js} +26 -18
  56. package/dist/bundle/{chunk-PP3YOAWG.js → chunk-RRLAFEPQ.js} +3 -3
  57. package/dist/bundle/{chunk-3XVR2ROR.js → chunk-S2QRW647.js} +35 -31
  58. package/dist/bundle/{chunk-G5LHHAW2.js → chunk-S7H7TAC3.js} +6 -6
  59. package/dist/bundle/{chunk-U6IQ6YQ2.js → chunk-SXKKOOA7.js} +8 -2
  60. package/dist/bundle/{chunk-MBFPFWCO.js → chunk-T7VERZP5.js} +27 -27
  61. package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
  62. package/dist/bundle/{chunk-EXVY76VO.js → chunk-TKOZCIHU.js} +19 -18
  63. package/dist/bundle/{chunk-BC7PFQL7.js → chunk-UBH4UPZ7.js} +40 -2
  64. package/dist/bundle/{chunk-P6GXNT7Z.js → chunk-UEJVXUIO.js} +13 -13
  65. package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
  66. package/dist/bundle/{chunk-LGZPKKBN.js → chunk-VYZ37D2Q.js} +3 -2
  67. package/dist/bundle/{chunk-HJSJBNCJ.js → chunk-WMXUFUV3.js} +28 -9
  68. package/dist/bundle/{chunk-CIWWNBVW.js → chunk-WRHAX53U.js} +8 -8
  69. package/dist/bundle/{chunk-LVGX7VTD.js → chunk-XBL46B4V.js} +63 -5
  70. package/dist/bundle/{chunk-KK4HD3SI.js → chunk-XCYDTIVK.js} +7 -7
  71. package/dist/bundle/{chunk-PGC5TRH6.js → chunk-XM2THVMR.js} +3 -3
  72. package/dist/bundle/{chunk-MWGH3M46.js → chunk-ZSWSFKNE.js} +5 -7
  73. package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
  74. package/dist/bundle/command-contract-MIJONVVG.js +36 -0
  75. package/dist/bundle/{command-server-entry-XMSSY5ID.js → command-server-entry-VHUFW3OZ.js} +25 -25
  76. package/dist/bundle/{decode-RYGB4PGT.js → decode-TIMTSVXM.js} +5 -5
  77. package/dist/bundle/{dispatch-PLQOIZG5.js → dispatch-DSVN7MNG.js} +8 -8
  78. package/dist/bundle/{dist-GY2AQETI.js → dist-IP25JFTN.js} +19 -15
  79. package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
  80. package/dist/bundle/{embed-FTBDPOPT.js → embed-4W527BCE.js} +6 -6
  81. package/dist/bundle/{embedder-B43WGNBD.js → embedder-LQE2SBJ3.js} +9 -9
  82. package/dist/bundle/{failure-XP5QYV2T.js → failure-COTPFUP4.js} +2 -2
  83. package/dist/bundle/{first-run-XIIUARNM.js → first-run-KZTKMEI4.js} +12 -12
  84. package/dist/bundle/first-screen-4LG5SJ6D.js +34 -0
  85. package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
  86. package/dist/bundle/mail.js +15 -20
  87. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
  88. package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
  89. package/dist/bundle/{node-sqlite-WFJXW3CZ.js → node-sqlite-PVSKI4OS.js} +7 -7
  90. package/dist/bundle/{oauth-SVJLQTWV.js → oauth-TGYGAVGF.js} +7 -7
  91. package/dist/bundle/{open-ZDONVKSX.js → open-5YED4Q4C.js} +5 -5
  92. package/dist/bundle/{openai-XVEW6XOU.js → openai-XVJTML22.js} +21 -20
  93. package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
  94. package/dist/bundle/{program-HU2UVMJE.js → program-TDHDXAQA.js} +1499 -998
  95. package/dist/bundle/{prompt-JAJ2CUJI.js → prompt-HPZANASN.js} +5 -5
  96. package/dist/bundle/{recognize-UFBWUNFR.js → recognize-PP5XQQHH.js} +4 -4
  97. package/dist/bundle/{remote-2GFOVLCR.js → remote-C2LU2WYG.js} +9 -9
  98. package/dist/bundle/{rerank-BGPSMXTL.js → rerank-WRHNOM4Z.js} +7 -7
  99. package/dist/bundle/{serve-CB3XJTH3.js → serve-RE3IV2QB.js} +9 -9
  100. package/dist/bundle/server-43V7HNFY.js +68 -0
  101. package/dist/bundle/{server-M7FQY7TX.js → server-52BJ7UTO.js} +44 -42
  102. package/dist/bundle/{sqlite-runtime-AEV6PGDR.js → sqlite-runtime-CRRL3MYX.js} +6 -6
  103. package/dist/bundle/{state-YLBEQLBI.js → state-YGJRPMWD.js} +6 -6
  104. package/dist/bundle/{store-EKWKY6GG.js → store-6AZ5LVJL.js} +21 -19
  105. package/dist/bundle/{store-CDUL3HKK.js → store-ESQE4VHP.js} +17 -17
  106. package/dist/bundle/store-maintenance-command-AKQMKUYO.js +58 -0
  107. package/dist/commands/rules.d.ts.map +1 -1
  108. package/dist/commands/rules.js +57 -19
  109. package/dist/commands/rules.js.map +1 -1
  110. package/dist/commands/session-start.d.ts.map +1 -1
  111. package/dist/commands/session-start.js +1 -1
  112. package/dist/commands/session-start.js.map +1 -1
  113. package/dist/config.d.ts +1 -0
  114. package/dist/config.d.ts.map +1 -1
  115. package/dist/config.js +13 -12
  116. package/dist/config.js.map +1 -1
  117. package/dist/discovery.d.ts.map +1 -1
  118. package/dist/discovery.js +7 -2
  119. package/dist/discovery.js.map +1 -1
  120. package/dist/identity.d.ts +2 -0
  121. package/dist/identity.d.ts.map +1 -1
  122. package/dist/identity.js +34 -0
  123. package/dist/identity.js.map +1 -1
  124. package/dist/mail/domain-age.d.ts +1 -1
  125. package/dist/mail/domain-age.d.ts.map +1 -1
  126. package/dist/mail/domain-age.js +9 -3
  127. package/dist/mail/domain-age.js.map +1 -1
  128. package/dist/mail/rules/file.d.ts.map +1 -1
  129. package/dist/mail/rules/file.js +4 -1
  130. package/dist/mail/rules/file.js.map +1 -1
  131. package/dist/mail/rules/query.d.ts +2 -1
  132. package/dist/mail/rules/query.d.ts.map +1 -1
  133. package/dist/mail/rules/query.js +16 -3
  134. package/dist/mail/rules/query.js.map +1 -1
  135. package/dist/oauth.d.ts +3 -1
  136. package/dist/oauth.d.ts.map +1 -1
  137. package/dist/oauth.js +48 -34
  138. package/dist/oauth.js.map +1 -1
  139. package/dist/reasons.d.ts.map +1 -1
  140. package/dist/reasons.js +5 -0
  141. package/dist/reasons.js.map +1 -1
  142. package/dist/store.d.ts.map +1 -1
  143. package/dist/store.js +2 -21
  144. package/dist/store.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/dist/wcat.d.ts +3 -0
  148. package/dist/wcat.d.ts.map +1 -0
  149. package/dist/wcat.js +4 -0
  150. package/dist/wcat.js.map +1 -0
  151. package/package.json +10 -9
  152. package/dist/bundle/chunk-K6HR6HCO.js +0 -32
  153. package/dist/bundle/command-contract-XSW2Q33S.js +0 -36
  154. package/dist/bundle/first-screen-Z7HC6PQU.js +0 -34
  155. package/dist/bundle/server-34GEF22R.js +0 -68
  156. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +0 -58
  157. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
@@ -30,18 +30,18 @@ import {
30
30
  string,
31
31
  union,
32
32
  variant
33
- } from "./chunk-IZOYW4Z4.js";
33
+ } from "./chunk-ECZSYLSL.js";
34
34
  import {
35
35
  CliError,
36
36
  isCliError,
37
37
  singleLine,
38
38
  visibleControls
39
- } from "./chunk-VUBZFMGP.js";
39
+ } from "./chunk-7KCBPAQS.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/reference.js
45
45
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
46
46
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
47
47
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -78,7 +78,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
78
78
  }, "parseMeetingReference");
79
79
  var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/payment.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/payment.js
82
82
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
83
83
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
84
84
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -172,7 +172,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
172
172
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
173
173
  }, "paymentTitle");
174
174
 
175
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
175
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
176
176
  var QUERY_LIMITS = {
177
177
  bytes: 8192,
178
178
  depth: 32,
@@ -216,7 +216,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
216
216
  __name(queryError, "queryError");
217
217
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
218
218
 
219
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
219
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
220
220
  var timezoneOf = /* @__PURE__ */ __name((given) => {
221
221
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
222
222
  try {
@@ -361,7 +361,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
361
361
  };
362
362
  }, "dateRange");
363
363
 
364
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
364
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
365
365
  var wordsOf = /* @__PURE__ */ __name((text5) => text5.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
366
366
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
367
367
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -416,7 +416,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
416
416
  }, "matches");
417
417
  var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
418
418
 
419
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
419
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
420
420
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
421
421
  var OPERATORS_BY_TYPE = {
422
422
  kw: ["term", "phrase", "wildcard"],
@@ -495,7 +495,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
495
495
  return [...own, ...relations, ...states];
496
496
  }, "queryFieldsOf");
497
497
 
498
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
498
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
499
499
  var shownOf = /* @__PURE__ */ __name((registry2) => registry2.backend === "native" ? registry2.fields.filter((field) => field.native) : registry2.fields, "shownOf");
500
500
  var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
501
501
  var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
@@ -532,7 +532,7 @@ var queryDescription = /* @__PURE__ */ __name((registry2) => {
532
532
  return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
533
533
  }, "queryDescription");
534
534
 
535
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
535
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
536
536
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
537
537
  var reserved = /* @__PURE__ */ new Set([
538
538
  "+",
@@ -841,7 +841,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text5) => {
841
841
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
842
842
  }, "implicitTextTerms");
843
843
 
844
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
844
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
845
845
  var inContext = /* @__PURE__ */ __name((context3, run2) => {
846
846
  try {
847
847
  run2();
@@ -916,7 +916,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry2, options = {}) => {
916
916
  }, "validateQuery");
917
917
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
918
918
 
919
- // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
919
+ // node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
920
920
  var describeQuery = /* @__PURE__ */ __name((registry2) => ({
921
921
  entity: registry2.entity,
922
922
  backend: registry2.backend,
@@ -987,7 +987,7 @@ var QUERY_REASONS = defineReasons([
987
987
  details: [...SPAN, ...details]
988
988
  })));
989
989
 
990
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/item.js
990
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/item.js
991
991
  var text = string();
992
992
  var count = pipe(number(), integer(), minValue(0));
993
993
  var MEETING_ISSUES = ["time_without_zone"];
@@ -1052,7 +1052,11 @@ var MEETING_QUERY = {
1052
1052
  })
1053
1053
  };
1054
1054
 
1055
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1055
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/store.js
1056
+ var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
1057
+ var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
1058
+
1059
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1056
1060
  var text2 = string();
1057
1061
  var count2 = pipe(number(), integer(), minValue(0));
1058
1062
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1123,6 +1127,8 @@ var meetingDetails = strictObject({
1123
1127
  name: nullable(text2),
1124
1128
  email: nullable(text2),
1125
1129
  role: nullable(text2),
1130
+ /** Who they are across the owner's sources: `person:<uid>`, and that person's name once linked. */
1131
+ person: nullable(strictObject({ ref: text2, name: nullable(text2) })),
1126
1132
  joined_at: nullable(isoTime),
1127
1133
  left_at: nullable(isoTime),
1128
1134
  duration_ms: nullable(count2)
@@ -1137,6 +1143,16 @@ var meetingDetails = strictObject({
1137
1143
  mime: nullable(text2),
1138
1144
  size: nullable(count2),
1139
1145
  url: nullable(text2)
1146
+ })),
1147
+ /**
1148
+ * The Drive files the meeting service saved for it, by role. `document` is the stored document (`document:<id>`) once
1149
+ * a Drive profile has imported the file, else `null`: then `drive` can fetch it by `file_id`.
1150
+ */
1151
+ documents: array(strictObject({
1152
+ file_id: text2,
1153
+ role: picklist(MEETING_DOCUMENT_ROLES),
1154
+ title: nullable(text2),
1155
+ document: nullable(reference)
1140
1156
  }))
1141
1157
  });
1142
1158
  var meetingRef = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
@@ -1184,6 +1200,7 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
1184
1200
  name: one.displayName,
1185
1201
  email: one.email,
1186
1202
  role: one.role,
1203
+ person: one.person ? { ref: `person:${one.person.uid}`, name: one.person.name } : null,
1187
1204
  joined_at: iso2(one.joinedAt),
1188
1205
  left_at: iso2(one.leftAt),
1189
1206
  duration_ms: one.durationMs
@@ -1213,6 +1230,12 @@ var meetingDetailsItem = /* @__PURE__ */ __name((details, owner) => {
1213
1230
  mime: one.mime,
1214
1231
  size: one.size,
1215
1232
  url: one.url
1233
+ })),
1234
+ documents: (details.documents ?? []).map((one) => ({
1235
+ file_id: one.fileId,
1236
+ role: one.role,
1237
+ title: one.title,
1238
+ document: one.documentId === null ? null : `document:${one.documentId}`
1216
1239
  }))
1217
1240
  };
1218
1241
  }, "meetingDetailsItem");
@@ -1287,7 +1310,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1287
1310
  };
1288
1311
  }, "meetingHitsList");
1289
1312
 
1290
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1313
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1291
1314
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
1292
1315
  const parsed = urlOf(url);
1293
1316
  if (!parsed)
@@ -1321,7 +1344,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
1321
1344
  }
1322
1345
  }, "urlOf");
1323
1346
 
1324
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1347
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1325
1348
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1326
1349
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1327
1350
  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");
@@ -1358,7 +1381,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1358
1381
  return kept;
1359
1382
  }, "entryMetadata");
1360
1383
 
1361
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1384
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1362
1385
  import { createHash } from "node:crypto";
1363
1386
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1364
1387
  reference: cue2.reference,
@@ -1372,7 +1395,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1372
1395
  text: cue2.text
1373
1396
  })).digest("hex"), "meetingCueFingerprint");
1374
1397
 
1375
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1398
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1376
1399
  var EVENT_QUERY = defineQuery({
1377
1400
  entity: "event",
1378
1401
  backend: "sql",
@@ -1388,7 +1411,7 @@ var EVENT_QUERY = defineQuery({
1388
1411
  ]
1389
1412
  });
1390
1413
 
1391
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1414
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1392
1415
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1393
1416
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1394
1417
  if (entry.recurrenceEndsAt !== null)
@@ -1411,8 +1434,8 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1411
1434
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1412
1435
  }, "entryInWindow");
1413
1436
 
1414
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/events.js
1415
- var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1437
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/events.js
1438
+ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
1416
1439
  const current = await store.meeting(details.meeting.id);
1417
1440
  if (!current)
1418
1441
  return null;
@@ -1430,6 +1453,8 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1430
1453
  return null;
1431
1454
  }
1432
1455
  let event2 = candidates[0];
1456
+ if (!event2 && !create)
1457
+ return null;
1433
1458
  if (!event2) {
1434
1459
  let eventSeriesId = series?.eventSeriesId ?? null;
1435
1460
  if (series?.kind === "recurring" && eventSeriesId === null) {
@@ -1454,7 +1479,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1454
1479
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1455
1480
  }, "linkEvent");
1456
1481
 
1457
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1482
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1458
1483
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1459
1484
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1460
1485
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1478,7 +1503,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1478
1503
  };
1479
1504
  }, "validateMeetingParticipantSearch");
1480
1505
 
1481
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1506
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1482
1507
  var MeetingError = class extends CliError {
1483
1508
  static {
1484
1509
  __name(this, "MeetingError");
@@ -1610,7 +1635,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1610
1635
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1611
1636
  }, "meetingSummaryAnswer");
1612
1637
 
1613
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/export.js
1638
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/export.js
1614
1639
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1615
1640
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1616
1641
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1706,10 +1731,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1706
1731
  };
1707
1732
  }, "exportMeeting");
1708
1733
 
1709
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1734
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1710
1735
  import { createHash as createHash2 } from "node:crypto";
1711
1736
 
1712
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1737
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1713
1738
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1714
1739
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1715
1740
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -1720,7 +1745,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1720
1745
  return new Date(value).toISOString();
1721
1746
  }, "meetingTimestamp");
1722
1747
 
1723
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1748
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1724
1749
  var TASK_TYPES = ["bug", "feature", "chore"];
1725
1750
  var invalid3 = /* @__PURE__ */ __name((message) => {
1726
1751
  throw new CliError("validation_error", message);
@@ -1895,7 +1920,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1895
1920
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1896
1921
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1897
1922
 
1898
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1923
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1899
1924
  var MEETING_FINDINGS_KIND = "meeting_findings";
1900
1925
  var cue = /* @__PURE__ */ __name((raw) => {
1901
1926
  const reference2 = canonicalMeetingReference(raw);
@@ -1906,7 +1931,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1906
1931
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1907
1932
  var meetingFindingFingerprint = findingFingerprint;
1908
1933
 
1909
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1934
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1910
1935
  var context = {
1911
1936
  command: "search meetings",
1912
1937
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -2016,7 +2041,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
2016
2041
  }, "liftMeetingFields");
2017
2042
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
2018
2043
 
2019
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/language.js
2044
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/language.js
2020
2045
  var LATIN_WORDS = {
2021
2046
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
2022
2047
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -2065,7 +2090,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
2065
2090
  return null;
2066
2091
  }, "transcriptLanguage");
2067
2092
 
2068
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2093
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2069
2094
  var contentHash = /* @__PURE__ */ __name(async (text5) => {
2070
2095
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
2071
2096
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -2102,7 +2127,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2102
2127
  return time;
2103
2128
  }, "timestamp");
2104
2129
 
2105
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2130
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2106
2131
  var TranscriptTextError = class extends Error {
2107
2132
  static {
2108
2133
  __name(this, "TranscriptTextError");
@@ -2157,7 +2182,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2157
2182
  return { header, lines };
2158
2183
  }, "parseTranscriptText");
2159
2184
 
2160
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2185
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2161
2186
  var VttError = class extends Error {
2162
2187
  static {
2163
2188
  __name(this, "VttError");
@@ -2209,7 +2234,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2209
2234
  return cues;
2210
2235
  }, "parseVtt");
2211
2236
 
2212
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/import.js
2237
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/import.js
2213
2238
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2214
2239
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2215
2240
  for (const file of files) {
@@ -2242,10 +2267,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2242
2267
  return report;
2243
2268
  }, "importFiles");
2244
2269
 
2245
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/links.js
2270
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/links.js
2246
2271
  var CHAT_MESSAGES_READ = 1e5;
2247
2272
 
2248
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2273
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2249
2274
  var nonempty = /* @__PURE__ */ __name((value, name) => {
2250
2275
  if (typeof value !== "string" || !value.trim())
2251
2276
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -2296,7 +2321,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2296
2321
  return Object.freeze(result);
2297
2322
  }, "validateMeetingChange");
2298
2323
 
2299
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2324
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2300
2325
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2301
2326
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2302
2327
  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)))
@@ -2309,7 +2334,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2309
2334
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2310
2335
  }, "validateMeetingPassage");
2311
2336
 
2312
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2337
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2313
2338
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2314
2339
  if (!original || typeof original !== "object" || Array.isArray(original))
2315
2340
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2334,7 +2359,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2334
2359
  return { ...input, limit, maxReadBytes };
2335
2360
  }, "validateMeetingPreparationContext");
2336
2361
 
2337
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2362
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2338
2363
  var count3 = pipe(number(), integer(), minValue(0));
2339
2364
  var id = pipe(string(), minLength(1));
2340
2365
  var meetingProjectEvidence = strictObject({
@@ -2455,7 +2480,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2455
2480
  };
2456
2481
  }, "meetingProjectEvidenceAnswer");
2457
2482
 
2458
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2483
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2459
2484
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2460
2485
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2461
2486
  if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
@@ -2475,7 +2500,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2475
2500
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2476
2501
  }, "validateMeetingHitSearch");
2477
2502
 
2478
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2503
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2479
2504
  var ids = {
2480
2505
  meeting_id: "meetingId",
2481
2506
  identity_id: "participantIdentityId",
@@ -2566,7 +2591,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2566
2591
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2567
2592
  }, "prepareMeetingProjectEvidence");
2568
2593
 
2569
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2594
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2570
2595
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2571
2596
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2572
2597
  const page = await read(prepared.project, prepared.options);
@@ -2574,9 +2599,9 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2574
2599
  return meetingProjectEvidenceAnswer(page, prepared);
2575
2600
  }, "readMeetingProjectEvidence");
2576
2601
 
2577
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2602
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2578
2603
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2579
- const { identityExternalId, ...fields } = p;
2604
+ const { identityExternalId, phone, ...fields } = p;
2580
2605
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
2581
2606
  return {
2582
2607
  ...fields,
@@ -2584,6 +2609,7 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
2584
2609
  provider,
2585
2610
  externalId,
2586
2611
  name: p.displayName,
2612
+ ...phone?.trim() ? { phone } : {},
2587
2613
  metadata: p.metadata,
2588
2614
  associatePerson: Boolean(identityExternalId?.trim() || p.email?.trim() || p.externalId?.trim())
2589
2615
  }
@@ -2608,6 +2634,19 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2608
2634
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2609
2635
  let failed = false;
2610
2636
  let firstFailed;
2637
+ const callers = /* @__PURE__ */ new Set();
2638
+ const linkCallers = /* @__PURE__ */ __name(async () => {
2639
+ if (callers.size === 0 || !store.linkCallers)
2640
+ return;
2641
+ try {
2642
+ await store.linkCallers(source.provider, [...callers]);
2643
+ } catch (error) {
2644
+ report.warnings.push({
2645
+ externalId: source.provider,
2646
+ message: `callers not linked to people: ${error instanceof Error ? error.message : "failed"}`
2647
+ });
2648
+ }
2649
+ }, "linkCallers");
2611
2650
  const from = timestamp2(since) - lookbackMs;
2612
2651
  const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
2613
2652
  for (const [index, m] of meetings.entries()) {
@@ -2618,6 +2657,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2618
2657
  const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
2619
2658
  if (Number.isFinite(reached) && reached > timestamp2(since))
2620
2659
  await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
2660
+ await linkCallers();
2621
2661
  return report;
2622
2662
  }
2623
2663
  const id3 = m.occurrence.id;
@@ -2651,6 +2691,8 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2651
2691
  const chat = await read("chat", () => source.chat(id3));
2652
2692
  const summary = await read("summary", () => source.summary(id3));
2653
2693
  const attachments = await read("files", () => source.files(id3));
2694
+ const listDocuments = source.documents?.bind(source);
2695
+ const documents = listDocuments ? await read("documents", () => listDocuments(id3)) : void 0;
2654
2696
  const startedAt = timestamp2(m.occurrence.startedAt);
2655
2697
  const endedAt = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
2656
2698
  if (endedAt !== null && endedAt < startedAt)
@@ -2712,6 +2754,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2712
2754
  }
2713
2755
  ] : void 0,
2714
2756
  attachments: attachments ?? void 0,
2757
+ documents: documents ?? void 0,
2715
2758
  now
2716
2759
  });
2717
2760
  if (lines && !linked && !details.transcripts.some((t) => t.transcript.source === source.name && t.transcript.supersededAt === null))
@@ -2721,7 +2764,10 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
2721
2764
  unlinked`, format)],
2722
2765
  now
2723
2766
  });
2724
- await linkEvent(store, details, now);
2767
+ await linkEvent(store, details, now, { create: source.createsEvents !== false });
2768
+ for (const p of participants)
2769
+ if (p.identity.phone)
2770
+ callers.add(p.identity.externalId);
2725
2771
  report.meetings++;
2726
2772
  report.participants += participants.length;
2727
2773
  report.transcriptRows += lines?.length ?? 0;
@@ -2731,12 +2777,13 @@ unlinked`, format)],
2731
2777
  report.warnings.push({ externalId: id3, message: error instanceof Error ? error.message : "Meeting pull failed" });
2732
2778
  }
2733
2779
  }
2780
+ await linkCallers();
2734
2781
  if (!failed)
2735
2782
  await store.setCursor(options.accountId, new Date(now).toISOString(), now);
2736
2783
  return report;
2737
2784
  }, "pull");
2738
2785
 
2739
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2786
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2740
2787
  var text3 = string();
2741
2788
  var count4 = pipe(number(), integer(), minValue(0));
2742
2789
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2824,7 +2871,8 @@ var meetingParticipants = strictObject({
2824
2871
  meeting_id: id2,
2825
2872
  identity_id: id2,
2826
2873
  display_name: nullable(text3),
2827
- email: nullable(text3)
2874
+ email: nullable(text3),
2875
+ person: nullable(strictObject({ ref: text3, name: nullable(text3) }))
2828
2876
  })),
2829
2877
  /** Several identities on one page are observations, never speaker attribution or person links. */
2830
2878
  ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id2) }),
@@ -2930,10 +2978,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2930
2978
  updated_at: new Date(one.updatedAt).toISOString()
2931
2979
  }), "eventItem");
2932
2980
 
2933
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2981
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2934
2982
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2935
2983
 
2936
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2984
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2937
2985
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2938
2986
  if (!original || typeof original !== "object" || Array.isArray(original))
2939
2987
  throw new CliError("validation_error", "related history request is required");
@@ -2963,7 +3011,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2963
3011
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2964
3012
  }, "validateMeetingRelatedHistory");
2965
3013
 
2966
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
3014
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2967
3015
  var text4 = string();
2968
3016
  var identifier = pipe(text4, minLength(1));
2969
3017
  var nullableText = nullable(text4);
@@ -3097,14 +3145,14 @@ var MEETING_RESULT_ENTITIES = {
3097
3145
  meeting_repair: repair
3098
3146
  };
3099
3147
 
3100
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/review.js
3148
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/review.js
3101
3149
  var REVIEW_LIMIT = { default: 50, most: 200 };
3102
3150
 
3103
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3151
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3104
3152
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3105
3153
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3106
3154
 
3107
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3155
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3108
3156
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3109
3157
  input.signal?.throwIfAborted();
3110
3158
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3125,10 +3173,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3125
3173
  return { ...input, limit, maxReadBytes };
3126
3174
  }, "validateMeetingSeriesHistory");
3127
3175
 
3128
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3176
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3129
3177
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
3130
3178
 
3131
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3179
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3132
3180
  function invalid4(field, response = false) {
3133
3181
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3134
3182
  }
@@ -3157,7 +3205,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
3157
3205
  cursorDetails(value);
3158
3206
  }, "validateMeetingSeriesInventoryCursor");
3159
3207
 
3160
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3208
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3161
3209
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3162
3210
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3163
3211
  const zone = timeZone ?? "UTC";
@@ -3292,10 +3340,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3292
3340
  };
3293
3341
  }, "aggregateMeetingStats");
3294
3342
 
3295
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/store.js
3296
- var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
3297
-
3298
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/locator.js
3343
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/locator.js
3299
3344
  var SCHEME = "msg:";
3300
3345
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
3301
3346
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -3309,7 +3354,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
3309
3354
  return { provider, account, chat, message };
3310
3355
  }, "parseLocator");
3311
3356
 
3312
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/references.js
3357
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/references.js
3313
3358
  var SIMPLE_REFERENCES = [
3314
3359
  "note",
3315
3360
  "document",
@@ -3465,7 +3510,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text5) => {
3465
3510
  return match !== null && byPrefix.has(match[1]);
3466
3511
  }, "looksLikeReference");
3467
3512
 
3468
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/providers.js
3513
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/providers.js
3469
3514
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
3470
3515
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
3471
3516
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -3482,8 +3527,13 @@ var PROVIDERS = [
3482
3527
  { name: "obsidian", kind: "notes", aliases: [] },
3483
3528
  { name: "added", kind: "notes", aliases: [] },
3484
3529
  { name: "zoom", kind: "meetings", aliases: [] },
3530
+ { name: "google-meet", kind: "meetings", aliases: [], command: "meet" },
3531
+ // Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
3532
+ { name: "telemost", kind: "meetings", aliases: [] },
3485
3533
  // A phone export's records: its SMS and its calls in the one account the import names.
3486
- { name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true }
3534
+ { name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
3535
+ // Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
3536
+ { name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
3487
3537
  ];
3488
3538
  var LABELS = {
3489
3539
  telegram: "Telegram",
@@ -3493,8 +3543,10 @@ var LABELS = {
3493
3543
  whatsapp: "WhatsApp",
3494
3544
  "whatsapp-bot": "WhatsApp bot",
3495
3545
  "google-drive": "Google Drive",
3546
+ "google-meet": "Google Meet",
3496
3547
  added: "added by hand",
3497
- email: "mail"
3548
+ email: "mail",
3549
+ telemost: "Telemost"
3498
3550
  };
3499
3551
  var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
3500
3552
  var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
@@ -3612,7 +3664,9 @@ var kindsIn = /* @__PURE__ */ __name((provider) => {
3612
3664
  if (isFolderProvider(provider))
3613
3665
  return ["notes"];
3614
3666
  const entry = registry.find(({ name }) => name === provider);
3615
- return entry ? kindsOfEntry(entry) : [];
3667
+ if (!entry)
3668
+ return [];
3669
+ return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
3616
3670
  }, "kindsIn");
3617
3671
  var importedOf = /* @__PURE__ */ __name((entry, held) => {
3618
3672
  const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
@@ -3632,7 +3686,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
3632
3686
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
3633
3687
  var kindOf2 = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
3634
3688
 
3635
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/money.js
3689
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/money.js
3636
3690
  var CURRENCY_SCALES = {
3637
3691
  AED: 2,
3638
3692
  AMD: 2,
@@ -3726,7 +3780,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
3726
3780
  }, "quantityOf");
3727
3781
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3728
3782
 
3729
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/deals.js
3783
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/deals.js
3730
3784
  var DEAL_KINDS = ["deal", "lead"];
3731
3785
  var DEAL_STATUSES = ["open", "won", "lost"];
3732
3786
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -3736,7 +3790,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
3736
3790
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
3737
3791
  }, "dealLine");
3738
3792
 
3739
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/finance.js
3793
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/finance.js
3740
3794
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
3741
3795
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3742
3796
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -3765,7 +3819,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
3765
3819
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3766
3820
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3767
3821
 
3768
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/orders.js
3822
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/orders.js
3769
3823
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3770
3824
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3771
3825
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -3776,7 +3830,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
3776
3830
  }, "orderLine");
3777
3831
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3778
3832
 
3779
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/relations.js
3833
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/relations.js
3780
3834
  var ORGANIZATION_ROLES = [
3781
3835
  "employee",
3782
3836
  "contractor",
@@ -3883,7 +3937,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
3883
3937
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
3884
3938
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
3885
3939
 
3886
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/crm.js
3940
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/crm.js
3887
3941
  var CRM_KINDS = ["organization", "person", "deal", "lead"];
3888
3942
  var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
3889
3943
  var isCrmUserId = /* @__PURE__ */ __name((id3) => /^\d{1,20}$/.test(id3), "isCrmUserId");
@@ -3893,7 +3947,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id3) => {
3893
3947
  }, "normalCrmUserId");
3894
3948
  var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
3895
3949
 
3896
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/business.js
3950
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/business.js
3897
3951
  var CATALOG_KINDS = ["product", "service"];
3898
3952
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
3899
3953
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -3922,7 +3976,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
3922
3976
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
3923
3977
  var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
3924
3978
 
3925
- // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/tags.js
3979
+ // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/tags.js
3926
3980
  var TAG_TYPES = ["chat", "contact", "message", "task"];
3927
3981
  var TAG = /^[a-z0-9-]{1,32}$/;
3928
3982
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -3964,6 +4018,8 @@ export {
3964
4018
  canonicalMeetingReference,
3965
4019
  meeting,
3966
4020
  MEETING_QUERY,
4021
+ MEETING_DOCUMENT_ROLES,
4022
+ READ_BUDGET_EXCEEDED,
3967
4023
  meetingHit,
3968
4024
  meetingTranscript,
3969
4025
  meetingSummary,
@@ -4041,7 +4097,6 @@ export {
4041
4097
  validateMeetingSeriesInventoryCursor,
4042
4098
  aggregateMeetingCounts,
4043
4099
  aggregateMeetingStats,
4044
- READ_BUDGET_EXCEEDED,
4045
4100
  formatLocator,
4046
4101
  isLocator,
4047
4102
  parseLocator,