@wirecat/mail-cli 0.12.0 → 0.14.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 (115) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -0
  3. package/dist/bin/mail.js +6 -2
  4. package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
  5. package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
  6. package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
  7. package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
  9. package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
  10. package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
  11. package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
  12. package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
  13. package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
  14. package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
  15. package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
  16. package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
  17. package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
  18. package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
  19. package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
  20. package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
  21. package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
  22. package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
  23. package/dist/bundle/chunk-DIP3ENSY.js +34 -0
  24. package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
  25. package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
  26. package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
  27. package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
  28. package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
  29. package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
  30. package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
  31. package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
  32. package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
  33. package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
  34. package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
  35. package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
  36. package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
  37. package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
  38. package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
  39. package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
  40. package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
  41. package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
  42. package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
  43. package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
  44. package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
  45. package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
  46. package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
  47. package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
  48. package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
  49. package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
  50. package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
  51. package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
  52. package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
  53. package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
  54. package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
  55. package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
  56. package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
  57. package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
  58. package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
  59. package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
  60. package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
  61. package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
  62. package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
  63. package/dist/bundle/chunk-X5XIFNTI.js +35 -0
  64. package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
  65. package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
  66. package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
  67. package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
  68. package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
  69. package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
  70. package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
  71. package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
  72. package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
  73. package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
  74. package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
  75. package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
  76. package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
  77. package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
  78. package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
  81. package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
  83. package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
  84. package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
  85. package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
  86. package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
  87. package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
  88. package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
  89. package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
  90. package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
  91. package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
  92. package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
  93. package/dist/bundle/server-244FHPY4.js +64 -0
  94. package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
  95. package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
  96. package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
  97. package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
  98. package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
  99. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
  100. package/dist/commands/session.js +1 -1
  101. package/dist/commands/session.js.map +1 -1
  102. package/dist/commands/status.d.ts.map +1 -1
  103. package/dist/commands/status.js +12 -7
  104. package/dist/commands/status.js.map +1 -1
  105. package/dist/config.d.ts +2 -0
  106. package/dist/config.d.ts.map +1 -1
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +3 -3
  110. package/dist/bundle/chunk-MDIRW3AT.js +0 -18
  111. package/dist/bundle/command-contract-TW44FY47.js +0 -33
  112. package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
  113. package/dist/bundle/server-XHWSCXVX.js +0 -62
  114. package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
  115. /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
@@ -30,18 +30,18 @@ import {
30
30
  string,
31
31
  union,
32
32
  variant
33
- } from "./chunk-NSDOYHIS.js";
33
+ } from "./chunk-IVDUR5Y4.js";
34
34
  import {
35
35
  CliError,
36
36
  isCliError,
37
37
  singleLine,
38
38
  visibleControls
39
- } from "./chunk-4DPICEPQ.js";
39
+ } from "./chunk-CCHHEMPM.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/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,101 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
78
78
  }, "parseMeetingReference");
79
79
  var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/payment.js
82
+ var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
83
+ var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
84
+ var PAYMENT_STATES = ["expected", "paid", "cancelled"];
85
+ var invalid2 = /* @__PURE__ */ __name((message) => {
86
+ throw new CliError("validation_error", message);
87
+ }, "invalid");
88
+ var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
89
+ var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
90
+ var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
91
+ var amountOf = /* @__PURE__ */ __name((value) => {
92
+ const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
93
+ if (!match)
94
+ return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
95
+ const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
96
+ if (amount === "0.00")
97
+ return invalid2("a payment's amount is more than 0");
98
+ return amount;
99
+ }, "amountOf");
100
+ var dateOf = /* @__PURE__ */ __name((value) => {
101
+ const date = typeof value === "string" ? value.trim() : "";
102
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
103
+ return invalid2("a payment's dates are ISO dates, such as 2026-10-31");
104
+ return date;
105
+ }, "dateOf");
106
+ var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
107
+ if (value === void 0 || value === null)
108
+ return null;
109
+ if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
110
+ return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
111
+ return value.trim();
112
+ }, "optionalText");
113
+ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
114
+ if (typeof value !== "string" || !allowed.includes(value))
115
+ return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
116
+ return value;
117
+ }, "oneOf");
118
+ var FIELDS = [
119
+ "amount",
120
+ "currency",
121
+ "direction",
122
+ "counterparty",
123
+ "counterparty_name",
124
+ "due_at",
125
+ "state",
126
+ "item",
127
+ "paid_at"
128
+ ];
129
+ var validatePayment = /* @__PURE__ */ __name((input) => {
130
+ if (!input || typeof input !== "object" || Array.isArray(input))
131
+ return invalid2("a payment is an object");
132
+ const raw = input;
133
+ const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
134
+ if (unknown.length)
135
+ return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
136
+ const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
137
+ if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
138
+ return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
139
+ const counterparty = optionalText(raw.counterparty, "counterparty", 80);
140
+ if (counterparty !== null && !COUNTERPARTY.test(counterparty))
141
+ return invalid2("a payment's counterparty is a person:, organization: or project: reference");
142
+ const state = oneOf(raw.state, PAYMENT_STATES, "state");
143
+ if (raw.paid_at != null && state !== "paid")
144
+ return invalid2("only a paid payment has paid_at");
145
+ return {
146
+ amount: amountOf(raw.amount),
147
+ currency,
148
+ direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
149
+ counterparty,
150
+ counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
151
+ due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
152
+ state,
153
+ item: optionalText(raw.item, "item", 200),
154
+ // Left out when absent, so a finding staged before the field keeps its fingerprint.
155
+ ...raw.paid_at == null ? {} : { paid_at: dateOf(raw.paid_at) }
156
+ };
157
+ }, "validatePayment");
158
+ var grouped = /* @__PURE__ */ __name((amount) => {
159
+ const [whole = "0", cents = "00"] = amount.split(".");
160
+ const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
161
+ return cents === "00" ? digits : `${digits}.${cents}`;
162
+ }, "grouped");
163
+ var paymentTitle = /* @__PURE__ */ __name((fact) => {
164
+ const payment = fact.payment;
165
+ if (!payment)
166
+ return "";
167
+ const who = payment.counterparty_name ?? payment.counterparty;
168
+ const way = payment.direction === "to_us" ? "to us" : "from us";
169
+ const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
170
+ const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
171
+ const item = payment.item === null ? "" : ` for ${payment.item}`;
172
+ return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
173
+ }, "paymentTitle");
174
+
175
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.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
82
176
  var QUERY_LIMITS = {
83
177
  bytes: 8192,
84
178
  depth: 32,
@@ -122,7 +216,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
122
216
  __name(queryError, "queryError");
123
217
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
124
218
 
125
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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.75.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
126
220
  var timezoneOf = /* @__PURE__ */ __name((given) => {
127
221
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
128
222
  try {
@@ -267,7 +361,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
267
361
  };
268
362
  }, "dateRange");
269
363
 
270
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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.75.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
271
365
  var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
272
366
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
273
367
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -322,7 +416,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
322
416
  }, "matches");
323
417
  var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
324
418
 
325
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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.75.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
326
420
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
327
421
  var OPERATORS_BY_TYPE = {
328
422
  kw: ["term", "phrase", "wildcard"],
@@ -401,10 +495,22 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
401
495
  return [...own, ...relations, ...states];
402
496
  }, "queryFieldsOf");
403
497
 
404
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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.75.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
405
499
  var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
406
500
  var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
407
501
  var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
502
+ var has = /* @__PURE__ */ __name((fields2, operator) => fields2.some((field) => field.operators.includes(operator)), "has");
503
+ var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
504
+ if (backend !== "native")
505
+ return QUERY_SYNTAX;
506
+ return [
507
+ "field:value",
508
+ ...has(shown, "phrase") ? ['"a phrase"'] : [],
509
+ ...has(shown, "wildcard") ? ["word*"] : [],
510
+ "terms joined by AND",
511
+ ...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
512
+ ].join(" \xB7 ");
513
+ }, "syntaxOf");
408
514
  var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
409
515
  var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
410
516
  const shown = shownOf(registry);
@@ -416,7 +522,7 @@ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
416
522
  ...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
417
523
  ...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
418
524
  ...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
419
- `Syntax: ${QUERY_SYNTAX}`,
525
+ `Syntax: ${syntaxOf(shown, registry.backend)}`,
420
526
  ...guide ? [`Guide: ${guide}`] : []
421
527
  ].join("\n");
422
528
  }, "fieldsHelp");
@@ -431,7 +537,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
431
537
  return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
432
538
  }, "queryDescription");
433
539
 
434
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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
540
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.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
435
541
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
436
542
  var reserved = /* @__PURE__ */ new Set([
437
543
  "+",
@@ -736,7 +842,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
736
842
  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] : []));
737
843
  }, "implicitTextTerms");
738
844
 
739
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.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
740
846
  var inContext = /* @__PURE__ */ __name((context3, run2) => {
741
847
  try {
742
848
  run2();
@@ -811,7 +917,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
811
917
  }, "validateQuery");
812
918
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
813
919
 
814
- // node_modules/.pnpm/@wirecat+cli-base@0.74.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
+ // node_modules/.pnpm/@wirecat+cli-base@0.75.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
815
921
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
816
922
  entity: registry.entity,
817
923
  backend: registry.backend,
@@ -882,7 +988,7 @@ var QUERY_REASONS = defineReasons([
882
988
  details: [...SPAN, ...details]
883
989
  })));
884
990
 
885
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/item.js
991
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/item.js
886
992
  var text = string();
887
993
  var count = pipe(number(), integer(), minValue(0));
888
994
  var MEETING_ISSUES = ["time_without_zone"];
@@ -947,7 +1053,7 @@ var MEETING_QUERY = {
947
1053
  })
948
1054
  };
949
1055
 
950
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1056
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/answers.js
951
1057
  var text2 = string();
952
1058
  var count2 = pipe(number(), integer(), minValue(0));
953
1059
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -961,6 +1067,11 @@ var meetingHit = strictObject({
961
1067
  excerpt: text2,
962
1068
  /** How far into the meeting the passage is. */
963
1069
  offset_ms: nullable(count2),
1070
+ /** A transcript passage's transcript language (`ru`, `en`…), `null` when unknown. */
1071
+ language: optional(nullable(text2)),
1072
+ /** A transcript passage's line, from 1, of `lines_total`. */
1073
+ line: optional(pipe(count2, minValue(1))),
1074
+ lines_total: optional(count2),
964
1075
  /** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
965
1076
  match: optional(picklist(["words", "corrected"])),
966
1077
  corrections: optional(array(strictObject({ from: text2, to: array(text2) }))),
@@ -1127,6 +1238,9 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
1127
1238
  id: String(hit.id),
1128
1239
  excerpt: hit.text,
1129
1240
  offset_ms: hit.startMs,
1241
+ ...hit.language === void 0 ? {} : { language: hit.language },
1242
+ ...hit.line === void 0 ? {} : { line: hit.line },
1243
+ ...hit.linesTotal === void 0 ? {} : { lines_total: hit.linesTotal },
1130
1244
  untrusted: hit.source === void 0 ? ["excerpt"] : ["excerpt", "source.title"],
1131
1245
  ...hit.match === void 0 ? {} : { match: hit.match },
1132
1246
  ...hit.corrections === void 0 ? {} : { corrections: hit.corrections },
@@ -1174,7 +1288,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1174
1288
  };
1175
1289
  }, "meetingHitsList");
1176
1290
 
1177
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1291
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1178
1292
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
1179
1293
  const parsed = urlOf(url);
1180
1294
  if (!parsed)
@@ -1208,7 +1322,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
1208
1322
  }
1209
1323
  }, "urlOf");
1210
1324
 
1211
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1325
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1212
1326
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1213
1327
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1214
1328
  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");
@@ -1241,7 +1355,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1241
1355
  return kept;
1242
1356
  }, "entryMetadata");
1243
1357
 
1244
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1358
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1245
1359
  import { createHash } from "node:crypto";
1246
1360
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1247
1361
  reference: cue2.reference,
@@ -1255,7 +1369,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1255
1369
  text: cue2.text
1256
1370
  })).digest("hex"), "meetingCueFingerprint");
1257
1371
 
1258
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1372
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1259
1373
  var EVENT_QUERY = defineQuery({
1260
1374
  entity: "event",
1261
1375
  backend: "sql",
@@ -1271,7 +1385,7 @@ var EVENT_QUERY = defineQuery({
1271
1385
  ]
1272
1386
  });
1273
1387
 
1274
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1388
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1275
1389
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1276
1390
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1277
1391
  if (entry.recurrenceEndsAt !== null)
@@ -1294,7 +1408,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1294
1408
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1295
1409
  }, "entryInWindow");
1296
1410
 
1297
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/events.js
1411
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/events.js
1298
1412
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1299
1413
  const current = await store.meeting(details.meeting.id);
1300
1414
  if (!current)
@@ -1337,7 +1451,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1337
1451
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1338
1452
  }, "linkEvent");
1339
1453
 
1340
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1454
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1341
1455
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1342
1456
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1343
1457
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1361,7 +1475,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1361
1475
  };
1362
1476
  }, "validateMeetingParticipantSearch");
1363
1477
 
1364
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1478
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1365
1479
  var MeetingError = class extends CliError {
1366
1480
  static {
1367
1481
  __name(this, "MeetingError");
@@ -1493,7 +1607,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1493
1607
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1494
1608
  }, "meetingSummaryAnswer");
1495
1609
 
1496
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/export.js
1610
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/export.js
1497
1611
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1498
1612
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1499
1613
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1589,10 +1703,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1589
1703
  };
1590
1704
  }, "exportMeeting");
1591
1705
 
1592
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1706
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1593
1707
  import { createHash as createHash2 } from "node:crypto";
1594
1708
 
1595
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1709
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1596
1710
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1597
1711
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1598
1712
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
@@ -1603,172 +1717,154 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1603
1717
  return new Date(value).toISOString();
1604
1718
  }, "meetingTimestamp");
1605
1719
 
1606
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1607
- var nonempty = /* @__PURE__ */ __name((value, name) => {
1608
- if (typeof value !== "string" || !value.trim())
1609
- throw new CliError("validation_error", `${name} must be nonempty`);
1610
- return value;
1611
- }, "nonempty");
1612
- var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
1613
- if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
1614
- throw new CliError("validation_error", "unsupported meeting change field");
1615
- const result = {};
1616
- if (change.title !== void 0)
1617
- result.title = nonempty(change.title, "meeting title");
1618
- if (create && result.title === void 0)
1619
- throw new CliError("validation_error", "meeting title is required");
1620
- if (change.kind !== void 0) {
1621
- if (change.kind !== "instant" && change.kind !== "scheduled")
1622
- throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
1623
- result.kind = change.kind;
1624
- }
1625
- if (change.startTime !== void 0) {
1626
- result.startTime = meetingTimestamp(change.startTime, "meeting start");
1627
- }
1628
- if (change.durationMinutes !== void 0) {
1629
- if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
1630
- throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
1631
- result.durationMinutes = change.durationMinutes;
1632
- }
1633
- if (change.timezone !== void 0) {
1634
- if (typeof change.timezone !== "string" || !change.timezone.trim())
1635
- throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
1636
- try {
1637
- new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
1638
- } catch {
1639
- throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
1640
- }
1641
- result.timezone = change.timezone;
1642
- }
1643
- if (change.agenda !== void 0) {
1644
- if (typeof change.agenda !== "string")
1645
- throw new CliError("validation_error", "meeting agenda must be text");
1646
- result.agenda = change.agenda;
1647
- }
1648
- if (create) {
1649
- result.kind ??= "scheduled";
1650
- if (result.kind === "scheduled" && result.startTime === void 0)
1651
- throw new CliError("validation_error", "scheduled meeting start is required");
1652
- } else if (!Object.keys(result).length)
1653
- throw new CliError("validation_error", "at least one meeting change is required");
1654
- return Object.freeze(result);
1655
- }, "validateMeetingChange");
1656
-
1657
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1658
- var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
1659
-
1660
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1720
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1661
1721
  var TASK_TYPES = ["bug", "feature", "chore"];
1662
- var invalid2 = /* @__PURE__ */ __name((message) => {
1722
+ var invalid3 = /* @__PURE__ */ __name((message) => {
1663
1723
  throw new CliError("validation_error", message);
1664
1724
  }, "invalid");
1665
1725
  var text3 = /* @__PURE__ */ __name((value, limit) => {
1666
1726
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
1667
- return invalid2(`finding text must contain 1\u2013${limit} characters without NUL`);
1727
+ return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
1668
1728
  return value.trim();
1669
1729
  }, "text");
1670
1730
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
1671
1731
  var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
1672
1732
  if (Object.keys(value).some((key) => !allowed.includes(key)))
1673
- invalid2(`unknown ${noun} field`);
1733
+ invalid3(`unknown ${noun} field`);
1674
1734
  }, "fields");
1675
1735
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
1676
- var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1736
+ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
1737
+ if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
1738
+ return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
1739
+ const evidence = raw.map((item) => {
1740
+ if (!item || typeof item !== "object")
1741
+ return invalid3("finding evidence is a reference and fingerprint");
1742
+ fields(item, ["reference", "fingerprint"], rules.singular);
1743
+ if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
1744
+ return invalid3("evidence requires a reference and fingerprint");
1745
+ const reference2 = rules.reference(item.reference);
1746
+ if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
1747
+ return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
1748
+ return { reference: reference2, fingerprint: item.fingerprint };
1749
+ }).sort((a, b) => a.reference.localeCompare(b.reference));
1750
+ if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
1751
+ return invalid3(`duplicate evidence ${rules.cited}`);
1752
+ return evidence;
1753
+ }, "validEvidence");
1754
+ var findingId = /* @__PURE__ */ __name((raw, ids2) => {
1755
+ const id3 = findingText(raw, 64);
1756
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
1757
+ return invalid3("finding IDs must be unique simple keys");
1758
+ ids2.add(id3);
1759
+ return id3;
1760
+ }, "findingId");
1761
+ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1762
+ if (!finding || typeof finding !== "object")
1763
+ return invalid3("a finding is an object");
1764
+ const id3 = findingId(finding.id, ids2);
1765
+ const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
1766
+ if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1767
+ return invalid3("a finding names a project reference");
1768
+ if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
1769
+ return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
1770
+ if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
1771
+ return invalid3("a task finding names the project the task goes in");
1772
+ const evidence = validEvidence(finding.evidence, rules);
1773
+ const base = {
1774
+ id: id3,
1775
+ ...project === void 0 ? {} : { project },
1776
+ ...finding.subject === void 0 ? {} : { subject: finding.subject },
1777
+ evidence
1778
+ };
1779
+ if (finding.kind === "fact") {
1780
+ fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1781
+ if (finding.type === "payment")
1782
+ return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
1783
+ if (!FACT_TYPES.includes(finding.type))
1784
+ return invalid3("unknown fact finding type");
1785
+ return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
1786
+ }
1787
+ if (finding.kind === "payment" && rules.payments) {
1788
+ fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1789
+ if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
1790
+ return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
1791
+ const payment = validatePayment(finding.payment);
1792
+ if (payment.state === "expected" && finding.supersedes !== void 0)
1793
+ return invalid3("an expected payment supersedes nothing; a paid or cancelled one supersedes its invoice");
1794
+ if (payment.state === "cancelled" && finding.supersedes === void 0)
1795
+ return invalid3("a cancelled payment names the invoice: it cancels in supersedes");
1796
+ if (payment.state === "expected" && !/^(person|organization):/.test(payment.counterparty ?? ""))
1797
+ return invalid3("an expected payment becomes an invoice, which names its counterparty as a person: or organization:");
1798
+ return {
1799
+ ...base,
1800
+ kind: "payment",
1801
+ ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
1802
+ payment,
1803
+ ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1804
+ };
1805
+ }
1806
+ if (finding.kind !== "task")
1807
+ return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1808
+ fields(finding, [
1809
+ "id",
1810
+ "project",
1811
+ "evidence",
1812
+ "kind",
1813
+ "type",
1814
+ "title",
1815
+ "reason",
1816
+ "commitment",
1817
+ "dueAt",
1818
+ "dueEvidence",
1819
+ "assignee",
1820
+ "assigneeEvidence"
1821
+ ], rules.singular);
1822
+ if (!TASK_TYPES.includes(finding.type))
1823
+ return invalid3("a task finding type is bug, chore or feature");
1824
+ if (!["explicit", "inferred"].includes(finding.commitment))
1825
+ return invalid3("task commitment must be explicit or inferred");
1826
+ if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1827
+ return invalid3("optional dates and assignees require their supporting evidence");
1828
+ if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1829
+ return invalid3("an assignee must be a person reference");
1830
+ return {
1831
+ ...base,
1832
+ kind: "task",
1833
+ type: finding.type,
1834
+ title: text3(finding.title, 300),
1835
+ reason: text3(finding.reason, 2e3),
1836
+ commitment: finding.commitment,
1837
+ ...finding.dueAt === void 0 ? {} : {
1838
+ dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
1839
+ dueEvidence: support(finding.dueEvidence, evidence)
1840
+ },
1841
+ ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence, evidence) }
1842
+ };
1843
+ }, "validateFinding");
1844
+ var support = /* @__PURE__ */ __name((value, evidence) => {
1845
+ if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1846
+ return invalid3("date and assignee support must cite the finding's evidence");
1847
+ return [...new Set(value)].sort();
1848
+ }, "support");
1849
+ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1677
1850
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
1678
- return invalid2(`${rules.plural} take at most 65536 UTF-8 bytes`);
1851
+ return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
1679
1852
  fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1680
- if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > 16)
1681
- return invalid2(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
1853
+ if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
1854
+ return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
1682
1855
  const key = text3(input.key, 64);
1683
1856
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
1684
- return invalid2("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1857
+ return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1685
1858
  const ids2 = /* @__PURE__ */ new Set();
1686
- const findings = input.findings.map((finding) => {
1687
- if (!finding || typeof finding !== "object")
1688
- return invalid2("a finding is an object");
1689
- const id3 = text3(finding.id, 64);
1690
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
1691
- return invalid2("finding IDs must be unique simple keys");
1692
- ids2.add(id3);
1693
- const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
1694
- if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1695
- return invalid2("a finding names a project reference");
1696
- if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
1697
- return invalid2("a finding's subject is a person:, organization:, task: or project: reference");
1698
- if (finding.kind === "task" && project === void 0)
1699
- return invalid2("a task finding names the project the task goes in");
1700
- if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
1701
- return invalid2(`a finding requires 1\u20138 cited ${rules.cited}s`);
1702
- const evidence = finding.evidence.map((item) => {
1703
- if (!item || typeof item !== "object")
1704
- return invalid2("finding evidence is a reference and fingerprint");
1705
- fields(item, ["reference", "fingerprint"], rules.singular);
1706
- if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
1707
- return invalid2("evidence requires a reference and fingerprint");
1708
- const reference2 = rules.reference(item.reference);
1709
- if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
1710
- return invalid2(`finding evidence requires exact ${rules.cited} references and fingerprints`);
1711
- return { reference: reference2, fingerprint: item.fingerprint };
1712
- }).sort((a, b) => a.reference.localeCompare(b.reference));
1713
- if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
1714
- return invalid2(`duplicate evidence ${rules.cited}`);
1715
- const base = {
1716
- id: id3,
1717
- ...project === void 0 ? {} : { project },
1718
- ...finding.subject === void 0 ? {} : { subject: finding.subject },
1719
- evidence
1720
- };
1721
- if (finding.kind === "fact") {
1722
- fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1723
- if (!MEETING_FACT_TYPES.includes(finding.type))
1724
- return invalid2("unknown fact finding type");
1725
- return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
1726
- }
1727
- if (finding.kind !== "task")
1728
- return invalid2("a finding is a fact or task");
1729
- fields(finding, [
1730
- "id",
1731
- "project",
1732
- "evidence",
1733
- "kind",
1734
- "type",
1735
- "title",
1736
- "reason",
1737
- "commitment",
1738
- "dueAt",
1739
- "dueEvidence",
1740
- "assignee",
1741
- "assigneeEvidence"
1742
- ], rules.singular);
1743
- if (!TASK_TYPES.includes(finding.type))
1744
- return invalid2("a task finding type is bug, chore or feature");
1745
- if (!["explicit", "inferred"].includes(finding.commitment))
1746
- return invalid2("task commitment must be explicit or inferred");
1747
- const support = /* @__PURE__ */ __name((value) => {
1748
- if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1749
- return invalid2("date and assignee support must cite the finding's evidence");
1750
- return [...new Set(value)].sort();
1751
- }, "support");
1752
- if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1753
- return invalid2("optional dates and assignees require their supporting evidence");
1754
- if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1755
- return invalid2("an assignee must be a person reference");
1756
- return {
1757
- ...base,
1758
- kind: "task",
1759
- type: finding.type,
1760
- title: text3(finding.title, 300),
1761
- reason: text3(finding.reason, 2e3),
1762
- commitment: finding.commitment,
1763
- ...finding.dueAt === void 0 ? {} : { dueAt: meetingTimestamp(finding.dueAt, "finding due date"), dueEvidence: support(finding.dueEvidence) },
1764
- ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence) }
1765
- };
1766
- });
1859
+ const findings = input.findings.map((finding) => one(finding, ids2));
1767
1860
  return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
1768
- }, "validateFindings");
1861
+ }, "validateBatch");
1862
+ var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1863
+ var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit), "findingText");
1864
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
1769
1865
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1770
1866
 
1771
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1867
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1772
1868
  var MEETING_FINDINGS_KIND = "meeting_findings";
1773
1869
  var cue = /* @__PURE__ */ __name((raw) => {
1774
1870
  const reference2 = canonicalMeetingReference(raw);
@@ -1779,7 +1875,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1779
1875
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1780
1876
  var meetingFindingFingerprint = findingFingerprint;
1781
1877
 
1782
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1878
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1783
1879
  var context = {
1784
1880
  command: "search meetings",
1785
1881
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1842,7 +1938,56 @@ var MEETING_FIELDS = defineQuery({
1842
1938
  });
1843
1939
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1844
1940
 
1845
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1941
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/language.js
1942
+ var LATIN_WORDS = {
1943
+ en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1944
+ es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
1945
+ de: ["der", "und", "ist", "nicht", "das", "ich", "wir", "mit", "auch", "ein"],
1946
+ fr: ["le", "les", "est", "une", "pas", "je", "vous", "nous", "avec", "mais"],
1947
+ it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
1948
+ pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
1949
+ };
1950
+ var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word) => [word, language])));
1951
+ var UKRAINIAN = /[іїєґ]/giu;
1952
+ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
1953
+ var LATIN = new RegExp("\\p{Script=Latin}", "gu");
1954
+ var MIN_LETTERS = 20;
1955
+ var DOMINANT = 0.75;
1956
+ var countOf = /* @__PURE__ */ __name((text6, pattern2) => text6.match(pattern2)?.length ?? 0, "countOf");
1957
+ var latinLanguage = /* @__PURE__ */ __name((texts) => {
1958
+ const votes = /* @__PURE__ */ new Map();
1959
+ for (const text6 of texts)
1960
+ for (const word of text6.toLowerCase().split(/[^\p{L}]+/u)) {
1961
+ const language = LATIN_LANGUAGE.get(word);
1962
+ if (language)
1963
+ votes.set(language, (votes.get(language) ?? 0) + 1);
1964
+ }
1965
+ const [first, second] = [...votes].sort((a, b) => b[1] - a[1]);
1966
+ if (!first || first[1] < 3 || second && first[1] < 2 * second[1])
1967
+ return null;
1968
+ return first[0];
1969
+ }, "latinLanguage");
1970
+ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1971
+ const all = [...texts];
1972
+ let cyrillic = 0;
1973
+ let latin = 0;
1974
+ let ukrainian = 0;
1975
+ for (const text6 of all) {
1976
+ cyrillic += countOf(text6, CYRILLIC);
1977
+ latin += countOf(text6, LATIN);
1978
+ ukrainian += countOf(text6, UKRAINIAN);
1979
+ }
1980
+ const letters = cyrillic + latin;
1981
+ if (letters < MIN_LETTERS)
1982
+ return null;
1983
+ if (cyrillic / letters >= DOMINANT)
1984
+ return ukrainian / cyrillic >= 0.01 ? "uk" : "ru";
1985
+ if (latin / letters >= DOMINANT)
1986
+ return latinLanguage(all);
1987
+ return null;
1988
+ }, "transcriptLanguage");
1989
+
1990
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1846
1991
  var contentHash = /* @__PURE__ */ __name(async (text6) => {
1847
1992
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
1848
1993
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1856,7 +2001,7 @@ var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
1856
2001
  var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source, hashText = JSON.stringify(lines), format = null) => ({
1857
2002
  source,
1858
2003
  format,
1859
- language: null,
2004
+ language: transcriptLanguage(lines.map((line2) => line2.text)),
1860
2005
  contentHash: await contentHash(hashText),
1861
2006
  externalCreatedAt: null,
1862
2007
  metadata: null,
@@ -1879,7 +2024,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1879
2024
  return time;
1880
2025
  }, "timestamp");
1881
2026
 
1882
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2027
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1883
2028
  var TranscriptTextError = class extends Error {
1884
2029
  static {
1885
2030
  __name(this, "TranscriptTextError");
@@ -1934,7 +2079,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1934
2079
  return { header, lines };
1935
2080
  }, "parseTranscriptText");
1936
2081
 
1937
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2082
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1938
2083
  var VttError = class extends Error {
1939
2084
  static {
1940
2085
  __name(this, "VttError");
@@ -1986,7 +2131,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1986
2131
  return cues;
1987
2132
  }, "parseVtt");
1988
2133
 
1989
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/import.js
2134
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/import.js
1990
2135
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1991
2136
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1992
2137
  for (const file of files) {
@@ -2019,10 +2164,61 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2019
2164
  return report;
2020
2165
  }, "importFiles");
2021
2166
 
2022
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/links.js
2167
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/links.js
2023
2168
  var CHAT_MESSAGES_READ = 1e5;
2024
2169
 
2025
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2170
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2171
+ var nonempty = /* @__PURE__ */ __name((value, name) => {
2172
+ if (typeof value !== "string" || !value.trim())
2173
+ throw new CliError("validation_error", `${name} must be nonempty`);
2174
+ return value;
2175
+ }, "nonempty");
2176
+ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2177
+ if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
2178
+ throw new CliError("validation_error", "unsupported meeting change field");
2179
+ const result = {};
2180
+ if (change.title !== void 0)
2181
+ result.title = nonempty(change.title, "meeting title");
2182
+ if (create && result.title === void 0)
2183
+ throw new CliError("validation_error", "meeting title is required");
2184
+ if (change.kind !== void 0) {
2185
+ if (change.kind !== "instant" && change.kind !== "scheduled")
2186
+ throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
2187
+ result.kind = change.kind;
2188
+ }
2189
+ if (change.startTime !== void 0) {
2190
+ result.startTime = meetingTimestamp(change.startTime, "meeting start");
2191
+ }
2192
+ if (change.durationMinutes !== void 0) {
2193
+ if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
2194
+ throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
2195
+ result.durationMinutes = change.durationMinutes;
2196
+ }
2197
+ if (change.timezone !== void 0) {
2198
+ if (typeof change.timezone !== "string" || !change.timezone.trim())
2199
+ throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
2200
+ try {
2201
+ new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
2202
+ } catch {
2203
+ throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
2204
+ }
2205
+ result.timezone = change.timezone;
2206
+ }
2207
+ if (change.agenda !== void 0) {
2208
+ if (typeof change.agenda !== "string")
2209
+ throw new CliError("validation_error", "meeting agenda must be text");
2210
+ result.agenda = change.agenda;
2211
+ }
2212
+ if (create) {
2213
+ result.kind ??= "scheduled";
2214
+ if (result.kind === "scheduled" && result.startTime === void 0)
2215
+ throw new CliError("validation_error", "scheduled meeting start is required");
2216
+ } else if (!Object.keys(result).length)
2217
+ throw new CliError("validation_error", "at least one meeting change is required");
2218
+ return Object.freeze(result);
2219
+ }, "validateMeetingChange");
2220
+
2221
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2026
2222
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2027
2223
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2028
2224
  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)))
@@ -2035,7 +2231,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2035
2231
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2036
2232
  }, "validateMeetingPassage");
2037
2233
 
2038
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2234
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2039
2235
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2040
2236
  if (!original || typeof original !== "object" || Array.isArray(original))
2041
2237
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2060,7 +2256,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2060
2256
  return { ...input, limit, maxReadBytes };
2061
2257
  }, "validateMeetingPreparationContext");
2062
2258
 
2063
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2259
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2064
2260
  var count3 = pipe(number(), integer(), minValue(0));
2065
2261
  var id = pipe(string(), minLength(1));
2066
2262
  var meetingProjectEvidence = strictObject({
@@ -2181,7 +2377,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2181
2377
  };
2182
2378
  }, "meetingProjectEvidenceAnswer");
2183
2379
 
2184
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2380
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2185
2381
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2186
2382
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2187
2383
  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) || [
@@ -2201,7 +2397,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2201
2397
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2202
2398
  }, "validateMeetingHitSearch");
2203
2399
 
2204
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2400
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2205
2401
  var ids = {
2206
2402
  meeting_id: "meetingId",
2207
2403
  identity_id: "participantIdentityId",
@@ -2292,7 +2488,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2292
2488
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2293
2489
  }, "prepareMeetingProjectEvidence");
2294
2490
 
2295
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2491
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2296
2492
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2297
2493
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2298
2494
  const page = await read(prepared.project, prepared.options);
@@ -2300,7 +2496,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2300
2496
  return meetingProjectEvidenceAnswer(page, prepared);
2301
2497
  }, "readMeetingProjectEvidence");
2302
2498
 
2303
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2499
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2304
2500
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2305
2501
  const { identityExternalId, ...fields2 } = p;
2306
2502
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2439,7 +2635,7 @@ unlinked`, format)],
2439
2635
  return report;
2440
2636
  }, "pull");
2441
2637
 
2442
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2638
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2443
2639
  var text4 = string();
2444
2640
  var count4 = pipe(number(), integer(), minValue(0));
2445
2641
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2616,10 +2812,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2616
2812
  updated_at: new Date(one.updatedAt).toISOString()
2617
2813
  }), "eventItem");
2618
2814
 
2619
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2815
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2620
2816
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2621
2817
 
2622
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2818
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2623
2819
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2624
2820
  if (!original || typeof original !== "object" || Array.isArray(original))
2625
2821
  throw new CliError("validation_error", "related history request is required");
@@ -2649,7 +2845,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2649
2845
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2650
2846
  }, "validateMeetingRelatedHistory");
2651
2847
 
2652
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2848
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2653
2849
  var text5 = string();
2654
2850
  var identifier = pipe(text5, minLength(1));
2655
2851
  var nullableText = nullable(text5);
@@ -2767,22 +2963,29 @@ var embedding = union([
2767
2963
  })
2768
2964
  })
2769
2965
  ]);
2966
+ var repair = strictObject({
2967
+ account_id: identifier,
2968
+ applied: flag,
2969
+ transcripts: count5,
2970
+ languages: array(strictObject({ language: nullableText, transcripts: count5 }))
2971
+ });
2770
2972
  var MEETING_RESULT_ENTITIES = {
2771
2973
  meeting_ingestion: run,
2772
2974
  meeting_export: exported,
2773
2975
  meeting_association: meetingChange,
2774
2976
  meeting_transcription: transcription,
2775
- meeting_embedding: embedding
2977
+ meeting_embedding: embedding,
2978
+ meeting_repair: repair
2776
2979
  };
2777
2980
 
2778
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/review.js
2981
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/review.js
2779
2982
  var REVIEW_LIMIT = { default: 50, most: 200 };
2780
2983
 
2781
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2984
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2782
2985
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2783
2986
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2784
2987
 
2785
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2988
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2786
2989
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2787
2990
  input.signal?.throwIfAborted();
2788
2991
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -2803,39 +3006,39 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2803
3006
  return { ...input, limit, maxReadBytes };
2804
3007
  }, "validateMeetingSeriesHistory");
2805
3008
 
2806
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3009
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2807
3010
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
2808
3011
 
2809
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2810
- function invalid3(field, response = false) {
3012
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3013
+ function invalid4(field, response = false) {
2811
3014
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
2812
3015
  }
2813
- __name(invalid3, "invalid");
3016
+ __name(invalid4, "invalid");
2814
3017
  var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
2815
3018
  if (!value || typeof value !== "object" || Array.isArray(value))
2816
- invalid3(field, response);
3019
+ invalid4(field, response);
2817
3020
  for (const key of Object.keys(value))
2818
3021
  if (!fields2.includes(key))
2819
- invalid3(`${field}.${key}`, response);
3022
+ invalid4(`${field}.${key}`, response);
2820
3023
  }, "object");
2821
3024
  var cursorDetails = /* @__PURE__ */ __name((value) => {
2822
3025
  if (typeof value !== "string" || value.length > 4096 || !/^[A-Za-z0-9_-]+$/.test(value))
2823
- invalid3("cursor");
3026
+ invalid4("cursor");
2824
3027
  try {
2825
3028
  const decoded = JSON.parse(new TextDecoder("utf8", { fatal: true }).decode(Buffer.from(value, "base64url")));
2826
3029
  object2(decoded, ["version", "selection", "cursor"], "cursor");
2827
3030
  if (decoded.version !== 1 || typeof decoded.selection !== "string" || !/^[a-f0-9]{64}$/.test(decoded.selection) || !occurrenceId(decoded.cursor))
2828
- invalid3("cursor");
3031
+ invalid4("cursor");
2829
3032
  return decoded;
2830
3033
  } catch {
2831
- return invalid3("cursor");
3034
+ return invalid4("cursor");
2832
3035
  }
2833
3036
  }, "cursorDetails");
2834
3037
  var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
2835
3038
  cursorDetails(value);
2836
3039
  }, "validateMeetingSeriesInventoryCursor");
2837
3040
 
2838
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3041
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2839
3042
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
2840
3043
  const zone = timeZone ?? "UTC";
2841
3044
  try {
@@ -2914,7 +3117,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
2914
3117
  };
2915
3118
  }, "aggregateMeetingStats");
2916
3119
 
2917
- // node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/domain/tags.js
3120
+ // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/tags.js
2918
3121
  var TAG_TYPES = ["chat", "contact", "message", "task"];
2919
3122
  var TAG = /^[a-z0-9-]{1,32}$/;
2920
3123
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -2980,16 +3183,29 @@ export {
2980
3183
  meetingTranscriptAnswer,
2981
3184
  meetingSummaryAnswer,
2982
3185
  exportMeeting,
2983
- validateMeetingChange,
3186
+ FACT_TYPES,
3187
+ PAYMENT_DIRECTIONS,
3188
+ PAYMENT_STATES,
3189
+ validatePayment,
3190
+ paymentTitle,
3191
+ meetingTimestamp,
2984
3192
  findingHash,
3193
+ validEvidence,
3194
+ findingId,
3195
+ validateFinding,
3196
+ validateBatch,
2985
3197
  validateFindings,
3198
+ findingText,
3199
+ findingFields,
2986
3200
  findingFingerprint,
2987
3201
  MEETING_FINDINGS_KIND,
2988
3202
  validateMeetingFindings,
2989
3203
  meetingFindingFingerprint,
2990
3204
  parseMeetingQuery,
3205
+ transcriptLanguage,
2991
3206
  importFiles,
2992
3207
  CHAT_MESSAGES_READ,
3208
+ validateMeetingChange,
2993
3209
  validateMeetingPassage,
2994
3210
  validateMeetingPreparationContext,
2995
3211
  meetingProjectEvidence,