@wirecat/tg-cli 0.112.0 → 0.114.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 (108) hide show
  1. package/dist/bin/tg.js +6 -2
  2. package/dist/bundle/{adapter-ILDV2YSZ.js → adapter-YAEHX3QB.js} +45 -45
  3. package/dist/bundle/{all-profiles-4SH2Q4WV.js → all-profiles-R5CW42HQ.js} +8 -8
  4. package/dist/bundle/{anthropic-64SM23YO.js → anthropic-F25RHYV2.js} +5 -5
  5. package/dist/bundle/{app-server-SSYZWCDJ.js → app-server-FAG6FNXR.js} +43 -42
  6. package/dist/bundle/{bot-api-OHAGQMES.js → bot-api-KOIAXTQR.js} +46 -46
  7. package/dist/bundle/{bot-history-AUFO7UL2.js → bot-history-PRAOZEWC.js} +16 -15
  8. package/dist/bundle/{bun-AHZX63TR.js → bun-XIMM6EHD.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-KBIIODPV.js → bun-sqlite-DSUCO4TR.js} +4 -4
  10. package/dist/bundle/{chunk-JYOQMYNJ.js → chunk-2PAKHXIV.js} +31 -30
  11. package/dist/bundle/{chunk-KLNQXUDX.js → chunk-34USFPBF.js} +20 -18
  12. package/dist/bundle/{chunk-QMJGHSGN.js → chunk-3EZ43DAF.js} +3 -3
  13. package/dist/bundle/{chunk-NKACHGB2.js → chunk-3R43O3GG.js} +74 -15
  14. package/dist/bundle/{chunk-KYYAHIG2.js → chunk-4JOKO4IW.js} +6992 -5870
  15. package/dist/bundle/{chunk-XSYJKEA5.js → chunk-5HKMEXVQ.js} +35 -35
  16. package/dist/bundle/{chunk-NQKPXVLX.js → chunk-6SPLZI5P.js} +2 -2
  17. package/dist/bundle/{chunk-BIERCQVG.js → chunk-7FOT4XD2.js} +2232 -922
  18. package/dist/bundle/{chunk-4JXZKMXV.js → chunk-AL36NHO6.js} +5122 -949
  19. package/dist/bundle/{chunk-4IDJ7QCG.js → chunk-ALHKUQDZ.js} +4 -4
  20. package/dist/bundle/{chunk-2IGZLBTE.js → chunk-C34IDOA5.js} +2 -2
  21. package/dist/bundle/{chunk-KGYPSBTI.js → chunk-C7K7AP6G.js} +81 -33
  22. package/dist/bundle/{chunk-PDVSMGWO.js → chunk-CDCBFMEI.js} +2 -2
  23. package/dist/bundle/{chunk-TOBJGMMA.js → chunk-CS5DQ6KM.js} +15 -14
  24. package/dist/bundle/{chunk-DNYGJAEP.js → chunk-DQQEN3X4.js} +4 -4
  25. package/dist/bundle/{chunk-SC2DUQAK.js → chunk-E2IRSRTB.js} +1 -1
  26. package/dist/bundle/{chunk-QL4WBCL5.js → chunk-EARO464A.js} +13 -7
  27. package/dist/bundle/{chunk-5BNYW5RA.js → chunk-EQJG44KE.js} +4 -4
  28. package/dist/bundle/{chunk-WWKXTKCE.js → chunk-HA35XN2Z.js} +6 -4
  29. package/dist/bundle/{chunk-EO7PQE3J.js → chunk-I6BKSGZQ.js} +364 -178
  30. package/dist/bundle/{chunk-TUJEJ4D5.js → chunk-IN25CJ3D.js} +13 -13
  31. package/dist/bundle/{chunk-MCXVGHL6.js → chunk-J5U2HKGZ.js} +41 -28
  32. package/dist/bundle/{chunk-3GL4AOOG.js → chunk-KIZT2MI6.js} +1 -1
  33. package/dist/bundle/{chunk-3AJO4GER.js → chunk-KZQXOZFC.js} +5 -5
  34. package/dist/bundle/chunk-L4CMCC3V.js +34 -0
  35. package/dist/bundle/{chunk-COTC7HF3.js → chunk-LPUFOWL3.js} +1 -1
  36. package/dist/bundle/{chunk-ICEJKOKO.js → chunk-M3IWROIF.js} +7 -7
  37. package/dist/bundle/{chunk-K7VOCHVS.js → chunk-MQTTVQ3V.js} +6 -6
  38. package/dist/bundle/{chunk-D5JP2YWG.js → chunk-NJ2I4KFZ.js} +2 -2
  39. package/dist/bundle/{chunk-PXUHQO66.js → chunk-NKP3RUM4.js} +11 -11
  40. package/dist/bundle/{chunk-WI2S6INJ.js → chunk-NMVFFWF2.js} +6 -6
  41. package/dist/bundle/{chunk-GW7JRFTF.js → chunk-NTF34HJP.js} +3 -3
  42. package/dist/bundle/{chunk-EPAOLRUL.js → chunk-NUVBC3LJ.js} +8 -3
  43. package/dist/bundle/{chunk-7MFJFVUN.js → chunk-O7CBGHI7.js} +1 -1
  44. package/dist/bundle/{chunk-5W72OARG.js → chunk-OFDMD3YF.js} +8 -8
  45. package/dist/bundle/{chunk-RANORATG.js → chunk-OWHF6BON.js} +4 -4
  46. package/dist/bundle/{chunk-UXCWUEN7.js → chunk-P4YBABUC.js} +5 -40
  47. package/dist/bundle/{chunk-RPNRCFEE.js → chunk-QCXYJKPF.js} +2 -2
  48. package/dist/bundle/{chunk-6KGENDPF.js → chunk-RBC7JQ4Y.js} +2 -2
  49. package/dist/bundle/{chunk-GM44UNGL.js → chunk-RFRI2HFT.js} +1 -1
  50. package/dist/bundle/{chunk-UQOSZ2XX.js → chunk-TKNCJMYN.js} +1467 -707
  51. package/dist/bundle/{chunk-RHYMEHYK.js → chunk-TRRRRGMI.js} +2 -2
  52. package/dist/bundle/{chunk-UVRD447S.js → chunk-TTTDZOBW.js} +3 -3
  53. package/dist/bundle/{chunk-E4EJ2UTT.js → chunk-ULFTCR5W.js} +2 -2
  54. package/dist/bundle/{chunk-JPRYFDOJ.js → chunk-VHO66SMY.js} +174 -45
  55. package/dist/bundle/{chunk-GSGS62LX.js → chunk-VVKEWWSO.js} +1 -1
  56. package/dist/bundle/{chunk-JIGYVVWA.js → chunk-WIRDTH3J.js} +121 -31
  57. package/dist/bundle/{chunk-BTAET4U3.js → chunk-WOQGUIXE.js} +1 -1
  58. package/dist/bundle/{chunk-3W7BU2BL.js → chunk-XDOPONC3.js} +8 -13
  59. package/dist/bundle/{chunk-DFUTZGEV.js → chunk-Y3AQHPAJ.js} +1 -1
  60. package/dist/bundle/{chunk-JLB5LEXJ.js → chunk-Y4LCSCSH.js} +3 -3
  61. package/dist/bundle/{chunk-RC7EBLHM.js → chunk-YPABTT7A.js} +8 -8
  62. package/dist/bundle/{chunk-JXTYTAWE.js → chunk-YQ64ZNLD.js} +14 -13
  63. package/dist/bundle/{chunk-SFJFBIYP.js → chunk-ZFMOPKPT.js} +2 -2
  64. package/dist/bundle/command-contract-SOTDPG22.js +31 -0
  65. package/dist/bundle/{decode-FR3QHHJI.js → decode-7U4SXPAN.js} +4 -4
  66. package/dist/bundle/{echarts-VTV4C2OS.js → echarts-GKEZEAL7.js} +2 -2
  67. package/dist/bundle/{embed-US7X5P5D.js → embed-IDZDQMSW.js} +5 -5
  68. package/dist/bundle/{embedder-63Z7ZBYG.js → embedder-RY5R2PGO.js} +8 -8
  69. package/dist/bundle/{entry-B4J7IAG3.js → entry-P6YZ3ZV6.js} +8 -5
  70. package/dist/bundle/{first-run-MXPPUGII.js → first-run-66KTCVQK.js} +9 -9
  71. package/dist/bundle/first-screen-NY46X6QU.js +29 -0
  72. package/dist/bundle/{identity-AQWKU7SM.js → identity-GXVKGCNU.js} +3 -3
  73. package/dist/bundle/{instructions-GBR6DJTK.js → instructions-P5E34PQR.js} +1 -1
  74. package/dist/bundle/{mcp-YJEQYYTR.js → mcp-FUSDPAOL.js} +2 -2
  75. package/dist/bundle/{node-QXGPMDH2.js → node-GKPRXS5Y.js} +2 -2
  76. package/dist/bundle/{node-sqlite-L6CAMXQ2.js → node-sqlite-VUXFVPJ6.js} +10 -4
  77. package/dist/bundle/{oauth-5RK6J4SG.js → oauth-7SQIPMOY.js} +6 -6
  78. package/dist/bundle/{open-A3IAG7U6.js → open-W3BN2SIO.js} +4 -3
  79. package/dist/bundle/{openai-YKNGCHVV.js → openai-LQTK3ZMC.js} +13 -13
  80. package/dist/bundle/{process-CGLNXFIU.js → process-U2P5Z6UF.js} +1 -1
  81. package/dist/bundle/{program-AEDR6R5P.js → program-DIPSLR6O.js} +48 -48
  82. package/dist/bundle/{prompt-65CSCL2T.js → prompt-GESHKSM5.js} +4 -4
  83. package/dist/bundle/{proxy-transport-U3QOYMQF.js → proxy-transport-C2EUUT32.js} +4 -4
  84. package/dist/bundle/{recognize-ECRO6CFK.js → recognize-FEQTIJET.js} +3 -3
  85. package/dist/bundle/{remote-6IEFZFGO.js → remote-UXOPBPKS.js} +6 -6
  86. package/dist/bundle/{rerank-23GXWT2V.js → rerank-L4JM4REK.js} +6 -6
  87. package/dist/bundle/{serve-S65YTPZN.js → serve-DDWW44DB.js} +10 -9
  88. package/dist/bundle/{server-MVTBK7GV.js → server-UTWBIZHB.js} +32 -32
  89. package/dist/bundle/server-ZI7WDAW6.js +56 -0
  90. package/dist/bundle/{state-TH3UVQAW.js → state-EV7FGEK4.js} +5 -5
  91. package/dist/bundle/{store-2WFTUSNG.js → store-EXBUF4OG.js} +11 -10
  92. package/dist/bundle/store-maintenance-command-UBZE2Z6T.js +46 -0
  93. package/dist/bundle/tg.js +4 -4
  94. package/dist/commands/context.d.ts.map +1 -1
  95. package/dist/commands/context.js +6 -4
  96. package/dist/commands/context.js.map +1 -1
  97. package/dist/reasons.d.ts.map +1 -1
  98. package/dist/reasons.js +5 -0
  99. package/dist/reasons.js.map +1 -1
  100. package/dist/version.d.ts +1 -1
  101. package/dist/version.js +1 -1
  102. package/package.json +3 -3
  103. package/dist/bundle/chunk-B3Y2KZRS.js +0 -3588
  104. package/dist/bundle/command-contract-4KVJJZ46.js +0 -32
  105. package/dist/bundle/first-screen-GFYHUBBD.js +0 -30
  106. package/dist/bundle/server-IH24WEAC.js +0 -56
  107. package/dist/bundle/store-maintenance-command-PUOU2CL6.js +0 -45
  108. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-NUN6OGOV.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine,
5
5
  visibleControls
6
- } from "./chunk-KLNQXUDX.js";
6
+ } from "./chunk-34USFPBF.js";
7
7
  import {
8
8
  CliError,
9
9
  RegistryError,
@@ -36,26 +36,12 @@ import {
36
36
  string,
37
37
  union,
38
38
  variant
39
- } from "./chunk-QL4WBCL5.js";
39
+ } from "./chunk-EARO464A.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/tags.js
45
- var TAG_TYPES = ["chat", "contact", "message", "task"];
46
- var TAG = /^[a-z0-9-]{1,32}$/;
47
- var tagOf = /* @__PURE__ */ __name((value) => {
48
- const tag = value.trim().toLowerCase();
49
- return TAG.test(tag) ? tag : void 0;
50
- }, "tagOf");
51
- var normalizeTag = /* @__PURE__ */ __name((value) => {
52
- const tag = tagOf(value);
53
- if (tag === void 0)
54
- throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
55
- return tag;
56
- }, "normalizeTag");
57
-
58
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
44
+ // 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
59
45
  var QUERY_LIMITS = {
60
46
  bytes: 8192,
61
47
  depth: 32,
@@ -99,7 +85,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
99
85
  __name(queryError, "queryError");
100
86
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
101
87
 
102
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
88
+ // 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
103
89
  var timezoneOf = /* @__PURE__ */ __name((given) => {
104
90
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
105
91
  try {
@@ -244,7 +230,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
244
230
  };
245
231
  }, "dateRange");
246
232
 
247
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
233
+ // 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
248
234
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
249
235
  var OPERATORS_BY_TYPE = {
250
236
  kw: ["term", "phrase", "wildcard"],
@@ -294,11 +280,13 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
294
280
  const excluded = new Set(annotations.exclude ?? []);
295
281
  const words2 = new Set(annotations.text ?? []);
296
282
  const native = new Set(annotations.native ?? []);
283
+ const negatable = new Set(annotations.negatable ?? []);
297
284
  const finish = /* @__PURE__ */ __name((field) => ({
298
285
  ...field,
299
286
  operators: OPERATORS_BY_TYPE[field.type],
300
287
  example: annotations.examples?.[field.name] ?? field.example ?? exampleOf(field.name, field.type, field.values),
301
288
  ...native.has(field.name) ? { native: true } : {},
289
+ ...negatable.has(field.name) ? { negatable: true } : {},
302
290
  ...annotations.validate?.[field.name] ? { validate: annotations.validate[field.name] } : {}
303
291
  }), "finish");
304
292
  const own = Object.entries(entries).flatMap(([name, entry]) => {
@@ -321,7 +309,49 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
321
309
  return [...own, ...relations, ...states];
322
310
  }, "queryFieldsOf");
323
311
 
324
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
312
+ // 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
313
+ var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
314
+ var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
315
+ var leftOut = /* @__PURE__ */ __name((fields2) => fields2.filter((field) => field.negatable).map((field) => field.name), "leftOut");
316
+ var has = /* @__PURE__ */ __name((fields2, operator) => fields2.some((field) => field.operators.includes(operator)), "has");
317
+ var syntaxOf = /* @__PURE__ */ __name((shown, backend) => {
318
+ if (backend !== "native")
319
+ return QUERY_SYNTAX;
320
+ return [
321
+ "field:value",
322
+ ...has(shown, "phrase") ? ['"a phrase"'] : [],
323
+ ...has(shown, "wildcard") ? ["word*"] : [],
324
+ "terms joined by AND",
325
+ ...has(shown, "range") ? ["[a TO b] \xB7 > >= < <="] : []
326
+ ].join(" \xB7 ");
327
+ }, "syntaxOf");
328
+ var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
329
+ var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
330
+ const shown = shownOf(registry);
331
+ const negatable = leftOut(shown);
332
+ const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
333
+ const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
334
+ return [
335
+ "Fields:",
336
+ ...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
337
+ ...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
338
+ ...negatable.length > 0 ? [`Leave out: -${negatable[0]}:value or NOT ${negatable[0]}:value, for ${negatable.join(", ")}`] : [],
339
+ `Syntax: ${syntaxOf(shown, registry.backend)}`,
340
+ ...guide ? [`Guide: ${guide}`] : []
341
+ ].join("\n");
342
+ }, "fieldsHelp");
343
+ var queryDescription = /* @__PURE__ */ __name((registry) => {
344
+ const shown = shownOf(registry);
345
+ if (shown.length === 0)
346
+ return "field:value terms; this list filters by none yet, so any term is refused";
347
+ const negatable = leftOut(shown);
348
+ const terms = registry.backend === "native" ? `field:value terms joined by AND that narrow the list${negatable.length > 0 ? `; -field:value or NOT field:value leaves out what matches, for ${negatable.join(", ")} only` : ""}` : "field:value terms that narrow the list (Lucene: AND OR NOT, -field:value, [a TO b], > <)";
349
+ const fields2 = shown.map((field) => field.values ? `${field.name} (${field.values.join("|")})` : field.name);
350
+ const defaults = registry.defaults?.length ? `; unless named: ${registry.defaults.join(" ")}` : "";
351
+ return `${terms}; fields: ${fields2.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
352
+ }, "queryDescription");
353
+
354
+ // 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
325
355
  var inContext = /* @__PURE__ */ __name((context3, run2) => {
326
356
  try {
327
357
  run2();
@@ -396,7 +426,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
396
426
  }, "validateQuery");
397
427
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
398
428
 
399
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
429
+ // 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
400
430
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
401
431
  var reserved = /* @__PURE__ */ new Set([
402
432
  "+",
@@ -701,7 +731,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text6) => {
701
731
  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] : []));
702
732
  }, "implicitTextTerms");
703
733
 
704
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
734
+ // 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
705
735
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
706
736
  entity: registry.entity,
707
737
  backend: registry.backend,
@@ -772,7 +802,7 @@ var QUERY_REASONS = defineReasons([
772
802
  details: [...SPAN, ...details]
773
803
  })));
774
804
 
775
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
805
+ // 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
776
806
  var wordsOf = /* @__PURE__ */ __name((text6) => text6.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
777
807
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
778
808
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -827,23 +857,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
827
857
  }, "matches");
828
858
  var evaluate = /* @__PURE__ */ __name((ast, fields2, item, options = {}) => matches(ast.root, item, new Map(fields2.map((field) => [field.name, field])), options), "evaluate");
829
859
 
830
- // node_modules/.pnpm/@wirecat+cli-base@0.71.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
831
- var QUERY_SYNTAX = 'field:value \xB7 "a phrase" \xB7 word* \xB7 AND OR NOT \xB7 ( ) \xB7 [a TO b] \xB7 > >= < <=';
832
- var kindOf = /* @__PURE__ */ __name((field) => field.values ? `${field.type}: ${field.values.join("|")}` : `${field.type}: ${field.operators.join(", ")}`, "kindOf");
833
- var fieldsHelp = /* @__PURE__ */ __name((registry, guide) => {
834
- const shown = registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields;
835
- const rows = shown.map((field) => [field.name, kindOf(field), field.example]);
836
- const widths = [0, 1].map((at) => Math.max(...rows.map((row) => (row[at] ?? "").length)));
837
- return [
838
- "Fields:",
839
- ...rows.map(([name = "", kind = "", example = ""]) => ` ${name.padEnd(widths[0] ?? 0)} ${kind.padEnd(widths[1] ?? 0)} ${example}`.trimEnd()),
840
- ...registry.defaults && registry.defaults.length > 0 ? [`Defaults: ${registry.defaults.join(" ")} \u2014 name the field to change it`] : [],
841
- `Syntax: ${QUERY_SYNTAX}`,
842
- ...guide ? [`Guide: ${guide}`] : []
843
- ].join("\n");
844
- }, "fieldsHelp");
845
-
846
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/reference.js
860
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/reference.js
847
861
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
848
862
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
849
863
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -880,7 +894,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text6) => {
880
894
  }, "parseMeetingReference");
881
895
  var canonicalMeetingReference = /* @__PURE__ */ __name((text6) => formatMeetingReference(parseMeetingReference(text6)), "canonicalMeetingReference");
882
896
 
883
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/item.js
897
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/item.js
884
898
  var text = string();
885
899
  var count = pipe(number(), integer(), minValue(0));
886
900
  var MEETING_ISSUES = ["time_without_zone"];
@@ -945,7 +959,7 @@ var MEETING_QUERY = {
945
959
  })
946
960
  };
947
961
 
948
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
962
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
949
963
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
950
964
  const parsed = urlOf(url);
951
965
  if (!parsed)
@@ -979,7 +993,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
979
993
  }
980
994
  }, "urlOf");
981
995
 
982
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
996
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
983
997
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
984
998
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
985
999
  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");
@@ -1012,7 +1026,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1012
1026
  return kept;
1013
1027
  }, "entryMetadata");
1014
1028
 
1015
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1029
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1016
1030
  import { createHash } from "node:crypto";
1017
1031
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1018
1032
  reference: cue2.reference,
@@ -1026,7 +1040,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1026
1040
  text: cue2.text
1027
1041
  })).digest("hex"), "meetingCueFingerprint");
1028
1042
 
1029
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1043
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1030
1044
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1031
1045
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1032
1046
  if (entry.recurrenceEndsAt !== null)
@@ -1049,7 +1063,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1049
1063
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1050
1064
  }, "entryInWindow");
1051
1065
 
1052
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1066
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1053
1067
  var text2 = string();
1054
1068
  var count2 = pipe(number(), integer(), minValue(0));
1055
1069
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1063,6 +1077,11 @@ var meetingHit = strictObject({
1063
1077
  excerpt: text2,
1064
1078
  /** How far into the meeting the passage is. */
1065
1079
  offset_ms: nullable(count2),
1080
+ /** A transcript passage's transcript language (`ru`, `en`…), `null` when unknown. */
1081
+ language: optional(nullable(text2)),
1082
+ /** A transcript passage's line, from 1, of `lines_total`. */
1083
+ line: optional(pipe(count2, minValue(1))),
1084
+ lines_total: optional(count2),
1066
1085
  /** `corrected`: a query word matched only a garbled form of itself, listed in `corrections`. */
1067
1086
  match: optional(picklist(["words", "corrected"])),
1068
1087
  corrections: optional(array(strictObject({ from: text2, to: array(text2) }))),
@@ -1229,6 +1248,9 @@ var meetingHitItem = /* @__PURE__ */ __name((hit) => ({
1229
1248
  id: String(hit.id),
1230
1249
  excerpt: hit.text,
1231
1250
  offset_ms: hit.startMs,
1251
+ ...hit.language === void 0 ? {} : { language: hit.language },
1252
+ ...hit.line === void 0 ? {} : { line: hit.line },
1253
+ ...hit.linesTotal === void 0 ? {} : { lines_total: hit.linesTotal },
1232
1254
  untrusted: hit.source === void 0 ? ["excerpt"] : ["excerpt", "source.title"],
1233
1255
  ...hit.match === void 0 ? {} : { match: hit.match },
1234
1256
  ...hit.corrections === void 0 ? {} : { corrections: hit.corrections },
@@ -1276,7 +1298,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1276
1298
  };
1277
1299
  }, "meetingHitsList");
1278
1300
 
1279
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1301
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1280
1302
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text6) => text6.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1281
1303
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1282
1304
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1300,7 +1322,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1300
1322
  };
1301
1323
  }, "validateMeetingParticipantSearch");
1302
1324
 
1303
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1325
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1304
1326
  var MeetingError = class extends CliError {
1305
1327
  static {
1306
1328
  __name(this, "MeetingError");
@@ -1432,7 +1454,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1432
1454
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1433
1455
  }, "meetingSummaryAnswer");
1434
1456
 
1435
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/export.js
1457
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/export.js
1436
1458
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1437
1459
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1438
1460
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1528,10 +1550,89 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1528
1550
  };
1529
1551
  }, "exportMeeting");
1530
1552
 
1531
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1553
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/payment.js
1554
+ var FACT_TYPES = ["fact", "statement", "question", "decision", "promise", "payment"];
1555
+ var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
1556
+ var PAYMENT_STATES = ["expected", "paid", "cancelled"];
1557
+ var invalid2 = /* @__PURE__ */ __name((message) => {
1558
+ throw new CliError("validation_error", message);
1559
+ }, "invalid");
1560
+ var CURRENCIES = new Set(Intl.supportedValuesOf("currency"));
1561
+ var AMOUNT = /^(\d{1,15})(?:\.(\d{1,2}))?$/;
1562
+ var COUNTERPARTY = /^(person|organization|project):[1-9]\d*$/;
1563
+ var amountOf = /* @__PURE__ */ __name((value) => {
1564
+ const match = AMOUNT.exec(typeof value === "number" ? String(value) : typeof value === "string" ? value.trim() : "");
1565
+ if (!match)
1566
+ return invalid2("a payment's amount is a positive number with at most 2 decimals, such as 1200.50");
1567
+ const amount = `${BigInt(match[1] ?? "0")}.${(match[2] ?? "").padEnd(2, "0")}`;
1568
+ if (amount === "0.00")
1569
+ return invalid2("a payment's amount is more than 0");
1570
+ return amount;
1571
+ }, "amountOf");
1572
+ var dateOf = /* @__PURE__ */ __name((value) => {
1573
+ const date = typeof value === "string" ? value.trim() : "";
1574
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(date) || (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).toISOString().slice(0, 10) !== date)
1575
+ return invalid2("a payment's due date is an ISO date, such as 2026-10-31");
1576
+ return date;
1577
+ }, "dateOf");
1578
+ var optionalText = /* @__PURE__ */ __name((value, what, limit) => {
1579
+ if (value === void 0 || value === null)
1580
+ return null;
1581
+ if (typeof value !== "string" || !value.trim() || value.length > limit || value.includes("\0"))
1582
+ return invalid2(`a payment's ${what} takes 1\u2013${limit} characters`);
1583
+ return value.trim();
1584
+ }, "optionalText");
1585
+ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
1586
+ if (typeof value !== "string" || !allowed.includes(value))
1587
+ return invalid2(`a payment's ${what} is one of ${allowed.join(", ")}`);
1588
+ return value;
1589
+ }, "oneOf");
1590
+ var FIELDS = ["amount", "currency", "direction", "counterparty", "counterparty_name", "due_at", "state", "item"];
1591
+ var validatePayment = /* @__PURE__ */ __name((input) => {
1592
+ if (!input || typeof input !== "object" || Array.isArray(input))
1593
+ return invalid2("a payment is an object");
1594
+ const raw = input;
1595
+ const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
1596
+ if (unknown.length)
1597
+ return invalid2(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
1598
+ const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
1599
+ if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
1600
+ return invalid2("a payment's currency is an ISO 4217 code, such as EUR or RUB");
1601
+ const counterparty = optionalText(raw.counterparty, "counterparty", 80);
1602
+ if (counterparty !== null && !COUNTERPARTY.test(counterparty))
1603
+ return invalid2("a payment's counterparty is a person:, organization: or project: reference");
1604
+ return {
1605
+ amount: amountOf(raw.amount),
1606
+ currency,
1607
+ direction: oneOf(raw.direction, PAYMENT_DIRECTIONS, "direction"),
1608
+ counterparty,
1609
+ counterparty_name: optionalText(raw.counterparty_name, "counterparty name", 200),
1610
+ due_at: raw.due_at === void 0 || raw.due_at === null ? null : dateOf(raw.due_at),
1611
+ state: oneOf(raw.state, PAYMENT_STATES, "state"),
1612
+ item: optionalText(raw.item, "item", 200)
1613
+ };
1614
+ }, "validatePayment");
1615
+ var grouped = /* @__PURE__ */ __name((amount) => {
1616
+ const [whole = "0", cents = "00"] = amount.split(".");
1617
+ const digits = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
1618
+ return cents === "00" ? digits : `${digits}.${cents}`;
1619
+ }, "grouped");
1620
+ var paymentTitle = /* @__PURE__ */ __name((fact) => {
1621
+ const payment = fact.payment;
1622
+ if (!payment)
1623
+ return "";
1624
+ const who = payment.counterparty_name ?? payment.counterparty;
1625
+ const way = payment.direction === "to_us" ? "to us" : "from us";
1626
+ const party = who === null ? "" : payment.direction === "to_us" ? ` from ${who}` : ` to ${who}`;
1627
+ const due = payment.due_at === null ? "" : `, due ${payment.due_at.slice(8, 10)}.${payment.due_at.slice(5, 7)}`;
1628
+ const item = payment.item === null ? "" : ` for ${payment.item}`;
1629
+ return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
1630
+ }, "paymentTitle");
1631
+
1632
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1532
1633
  import { createHash as createHash2 } from "node:crypto";
1533
1634
 
1534
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1635
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1535
1636
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1536
1637
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1537
1638
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
@@ -1542,115 +1643,61 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1542
1643
  return new Date(value).toISOString();
1543
1644
  }, "meetingTimestamp");
1544
1645
 
1545
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1546
- var nonempty = /* @__PURE__ */ __name((value, name) => {
1547
- if (typeof value !== "string" || !value.trim())
1548
- throw new CliError("validation_error", `${name} must be nonempty`);
1549
- return value;
1550
- }, "nonempty");
1551
- var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
1552
- if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
1553
- throw new CliError("validation_error", "unsupported meeting change field");
1554
- const result = {};
1555
- if (change.title !== void 0)
1556
- result.title = nonempty(change.title, "meeting title");
1557
- if (create && result.title === void 0)
1558
- throw new CliError("validation_error", "meeting title is required");
1559
- if (change.kind !== void 0) {
1560
- if (change.kind !== "instant" && change.kind !== "scheduled")
1561
- throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
1562
- result.kind = change.kind;
1563
- }
1564
- if (change.startTime !== void 0) {
1565
- result.startTime = meetingTimestamp(change.startTime, "meeting start");
1566
- }
1567
- if (change.durationMinutes !== void 0) {
1568
- if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
1569
- throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
1570
- result.durationMinutes = change.durationMinutes;
1571
- }
1572
- if (change.timezone !== void 0) {
1573
- if (typeof change.timezone !== "string" || !change.timezone.trim())
1574
- throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
1575
- try {
1576
- new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
1577
- } catch {
1578
- throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
1579
- }
1580
- result.timezone = change.timezone;
1581
- }
1582
- if (change.agenda !== void 0) {
1583
- if (typeof change.agenda !== "string")
1584
- throw new CliError("validation_error", "meeting agenda must be text");
1585
- result.agenda = change.agenda;
1586
- }
1587
- if (create) {
1588
- result.kind ??= "scheduled";
1589
- if (result.kind === "scheduled" && result.startTime === void 0)
1590
- throw new CliError("validation_error", "scheduled meeting start is required");
1591
- } else if (!Object.keys(result).length)
1592
- throw new CliError("validation_error", "at least one meeting change is required");
1593
- return Object.freeze(result);
1594
- }, "validateMeetingChange");
1595
-
1596
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1597
- var MEETING_FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
1598
-
1599
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1646
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1600
1647
  var TASK_TYPES = ["bug", "feature", "chore"];
1601
- var invalid2 = /* @__PURE__ */ __name((message) => {
1648
+ var invalid3 = /* @__PURE__ */ __name((message) => {
1602
1649
  throw new CliError("validation_error", message);
1603
1650
  }, "invalid");
1604
1651
  var text3 = /* @__PURE__ */ __name((value, limit) => {
1605
1652
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
1606
- return invalid2(`finding text must contain 1\u2013${limit} characters without NUL`);
1653
+ return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
1607
1654
  return value.trim();
1608
1655
  }, "text");
1609
1656
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
1610
1657
  var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
1611
1658
  if (Object.keys(value).some((key) => !allowed.includes(key)))
1612
- invalid2(`unknown ${noun} field`);
1659
+ invalid3(`unknown ${noun} field`);
1613
1660
  }, "fields");
1614
1661
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
1615
1662
  var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1616
1663
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
1617
- return invalid2(`${rules.plural} take at most 65536 UTF-8 bytes`);
1664
+ return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
1618
1665
  fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1619
1666
  if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > 16)
1620
- return invalid2(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
1667
+ return invalid3(`schemaVersion 1 takes 1\u201316 ${rules.plural}`);
1621
1668
  const key = text3(input.key, 64);
1622
1669
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
1623
- return invalid2("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1670
+ return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1624
1671
  const ids2 = /* @__PURE__ */ new Set();
1625
1672
  const findings = input.findings.map((finding) => {
1626
1673
  if (!finding || typeof finding !== "object")
1627
- return invalid2("a finding is an object");
1674
+ return invalid3("a finding is an object");
1628
1675
  const id3 = text3(finding.id, 64);
1629
1676
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id3) || ids2.has(id3))
1630
- return invalid2("finding IDs must be unique simple keys");
1677
+ return invalid3("finding IDs must be unique simple keys");
1631
1678
  ids2.add(id3);
1632
1679
  const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
1633
1680
  if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1634
- return invalid2("a finding names a project reference");
1681
+ return invalid3("a finding names a project reference");
1635
1682
  if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
1636
- return invalid2("a finding's subject is a person:, organization:, task: or project: reference");
1683
+ return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
1637
1684
  if (finding.kind === "task" && project === void 0)
1638
- return invalid2("a task finding names the project the task goes in");
1685
+ return invalid3("a task finding names the project the task goes in");
1639
1686
  if (!Array.isArray(finding.evidence) || finding.evidence.length < 1 || finding.evidence.length > 8)
1640
- return invalid2(`a finding requires 1\u20138 cited ${rules.cited}s`);
1687
+ return invalid3(`a finding requires 1\u20138 cited ${rules.cited}s`);
1641
1688
  const evidence = finding.evidence.map((item) => {
1642
1689
  if (!item || typeof item !== "object")
1643
- return invalid2("finding evidence is a reference and fingerprint");
1690
+ return invalid3("finding evidence is a reference and fingerprint");
1644
1691
  fields(item, ["reference", "fingerprint"], rules.singular);
1645
1692
  if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
1646
- return invalid2("evidence requires a reference and fingerprint");
1693
+ return invalid3("evidence requires a reference and fingerprint");
1647
1694
  const reference2 = rules.reference(item.reference);
1648
1695
  if (!/^[a-f0-9]{64}$/.test(item.fingerprint))
1649
- return invalid2(`finding evidence requires exact ${rules.cited} references and fingerprints`);
1696
+ return invalid3(`finding evidence requires exact ${rules.cited} references and fingerprints`);
1650
1697
  return { reference: reference2, fingerprint: item.fingerprint };
1651
1698
  }).sort((a, b) => a.reference.localeCompare(b.reference));
1652
1699
  if (new Set(evidence.map((item) => item.reference)).size !== evidence.length)
1653
- return invalid2(`duplicate evidence ${rules.cited}`);
1700
+ return invalid3(`duplicate evidence ${rules.cited}`);
1654
1701
  const base = {
1655
1702
  id: id3,
1656
1703
  ...project === void 0 ? {} : { project },
@@ -1659,12 +1706,26 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1659
1706
  };
1660
1707
  if (finding.kind === "fact") {
1661
1708
  fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1662
- if (!MEETING_FACT_TYPES.includes(finding.type))
1663
- return invalid2("unknown fact finding type");
1709
+ if (finding.type === "payment")
1710
+ return invalid3("a payment is a finding of kind payment");
1711
+ if (!FACT_TYPES.includes(finding.type))
1712
+ return invalid3("unknown fact finding type");
1664
1713
  return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
1665
1714
  }
1715
+ if (finding.kind === "payment" && rules.payments) {
1716
+ fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1717
+ if (finding.supersedes !== void 0 && !/^fact:[1-9]\d*$/.test(String(finding.supersedes)))
1718
+ return invalid3("a payment finding supersedes a fact: reference");
1719
+ return {
1720
+ ...base,
1721
+ kind: "payment",
1722
+ ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
1723
+ payment: validatePayment(finding.payment),
1724
+ ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1725
+ };
1726
+ }
1666
1727
  if (finding.kind !== "task")
1667
- return invalid2("a finding is a fact or task");
1728
+ return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1668
1729
  fields(finding, [
1669
1730
  "id",
1670
1731
  "project",
@@ -1680,18 +1741,18 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1680
1741
  "assigneeEvidence"
1681
1742
  ], rules.singular);
1682
1743
  if (!TASK_TYPES.includes(finding.type))
1683
- return invalid2("a task finding type is bug, chore or feature");
1744
+ return invalid3("a task finding type is bug, chore or feature");
1684
1745
  if (!["explicit", "inferred"].includes(finding.commitment))
1685
- return invalid2("task commitment must be explicit or inferred");
1746
+ return invalid3("task commitment must be explicit or inferred");
1686
1747
  const support = /* @__PURE__ */ __name((value) => {
1687
1748
  if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1688
- return invalid2("date and assignee support must cite the finding's evidence");
1749
+ return invalid3("date and assignee support must cite the finding's evidence");
1689
1750
  return [...new Set(value)].sort();
1690
1751
  }, "support");
1691
1752
  if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1692
- return invalid2("optional dates and assignees require their supporting evidence");
1753
+ return invalid3("optional dates and assignees require their supporting evidence");
1693
1754
  if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1694
- return invalid2("an assignee must be a person reference");
1755
+ return invalid3("an assignee must be a person reference");
1695
1756
  return {
1696
1757
  ...base,
1697
1758
  kind: "task",
@@ -1707,7 +1768,7 @@ var validateFindings = /* @__PURE__ */ __name((input, rules) => {
1707
1768
  }, "validateFindings");
1708
1769
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1709
1770
 
1710
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1771
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1711
1772
  var MEETING_FINDINGS_KIND = "meeting_findings";
1712
1773
  var cue = /* @__PURE__ */ __name((raw) => {
1713
1774
  const reference2 = canonicalMeetingReference(raw);
@@ -1718,7 +1779,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1718
1779
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1719
1780
  var meetingFindingFingerprint = findingFingerprint;
1720
1781
 
1721
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1782
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
1722
1783
  var text4 = string();
1723
1784
  var identifier = pipe(text4, minLength(1));
1724
1785
  var nullableText = nullable(text4);
@@ -1836,15 +1897,22 @@ var embedding = union([
1836
1897
  })
1837
1898
  })
1838
1899
  ]);
1900
+ var repair = strictObject({
1901
+ account_id: identifier,
1902
+ applied: flag,
1903
+ transcripts: count3,
1904
+ languages: array(strictObject({ language: nullableText, transcripts: count3 }))
1905
+ });
1839
1906
  var MEETING_RESULT_ENTITIES = {
1840
1907
  meeting_ingestion: run,
1841
1908
  meeting_export: exported,
1842
1909
  meeting_association: meetingChange,
1843
1910
  meeting_transcription: transcription,
1844
- meeting_embedding: embedding
1911
+ meeting_embedding: embedding,
1912
+ meeting_repair: repair
1845
1913
  };
1846
1914
 
1847
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1915
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1848
1916
  var EVENT_QUERY = defineQuery({
1849
1917
  entity: "event",
1850
1918
  backend: "sql",
@@ -1860,7 +1928,7 @@ var EVENT_QUERY = defineQuery({
1860
1928
  ]
1861
1929
  });
1862
1930
 
1863
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/events.js
1931
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/events.js
1864
1932
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1865
1933
  const current = await store.meeting(details.meeting.id);
1866
1934
  if (!current)
@@ -1903,7 +1971,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1903
1971
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1904
1972
  }, "linkEvent");
1905
1973
 
1906
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1974
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1907
1975
  var context = {
1908
1976
  command: "search meetings",
1909
1977
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1966,7 +2034,56 @@ var MEETING_FIELDS = defineQuery({
1966
2034
  });
1967
2035
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1968
2036
 
1969
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2037
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/language.js
2038
+ var LATIN_WORDS = {
2039
+ en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
2040
+ es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
2041
+ de: ["der", "und", "ist", "nicht", "das", "ich", "wir", "mit", "auch", "ein"],
2042
+ fr: ["le", "les", "est", "une", "pas", "je", "vous", "nous", "avec", "mais"],
2043
+ it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
2044
+ pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
2045
+ };
2046
+ var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word) => [word, language])));
2047
+ var UKRAINIAN = /[іїєґ]/giu;
2048
+ var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
2049
+ var LATIN = new RegExp("\\p{Script=Latin}", "gu");
2050
+ var MIN_LETTERS = 20;
2051
+ var DOMINANT = 0.75;
2052
+ var countOf = /* @__PURE__ */ __name((text6, pattern2) => text6.match(pattern2)?.length ?? 0, "countOf");
2053
+ var latinLanguage = /* @__PURE__ */ __name((texts) => {
2054
+ const votes = /* @__PURE__ */ new Map();
2055
+ for (const text6 of texts)
2056
+ for (const word of text6.toLowerCase().split(/[^\p{L}]+/u)) {
2057
+ const language = LATIN_LANGUAGE.get(word);
2058
+ if (language)
2059
+ votes.set(language, (votes.get(language) ?? 0) + 1);
2060
+ }
2061
+ const [first, second] = [...votes].sort((a, b) => b[1] - a[1]);
2062
+ if (!first || first[1] < 3 || second && first[1] < 2 * second[1])
2063
+ return null;
2064
+ return first[0];
2065
+ }, "latinLanguage");
2066
+ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
2067
+ const all = [...texts];
2068
+ let cyrillic = 0;
2069
+ let latin = 0;
2070
+ let ukrainian = 0;
2071
+ for (const text6 of all) {
2072
+ cyrillic += countOf(text6, CYRILLIC);
2073
+ latin += countOf(text6, LATIN);
2074
+ ukrainian += countOf(text6, UKRAINIAN);
2075
+ }
2076
+ const letters = cyrillic + latin;
2077
+ if (letters < MIN_LETTERS)
2078
+ return null;
2079
+ if (cyrillic / letters >= DOMINANT)
2080
+ return ukrainian / cyrillic >= 0.01 ? "uk" : "ru";
2081
+ if (latin / letters >= DOMINANT)
2082
+ return latinLanguage(all);
2083
+ return null;
2084
+ }, "transcriptLanguage");
2085
+
2086
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1970
2087
  var contentHash = /* @__PURE__ */ __name(async (text6) => {
1971
2088
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text6));
1972
2089
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1980,7 +2097,7 @@ var speakerPosition = /* @__PURE__ */ __name((name, participants) => {
1980
2097
  var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source, hashText = JSON.stringify(lines), format = null) => ({
1981
2098
  source,
1982
2099
  format,
1983
- language: null,
2100
+ language: transcriptLanguage(lines.map((line2) => line2.text)),
1984
2101
  contentHash: await contentHash(hashText),
1985
2102
  externalCreatedAt: null,
1986
2103
  metadata: null,
@@ -2003,7 +2120,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2003
2120
  return time;
2004
2121
  }, "timestamp");
2005
2122
 
2006
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2123
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2007
2124
  var TranscriptTextError = class extends Error {
2008
2125
  static {
2009
2126
  __name(this, "TranscriptTextError");
@@ -2058,7 +2175,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2058
2175
  return { header, lines };
2059
2176
  }, "parseTranscriptText");
2060
2177
 
2061
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2178
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2062
2179
  var VttError = class extends Error {
2063
2180
  static {
2064
2181
  __name(this, "VttError");
@@ -2110,7 +2227,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2110
2227
  return cues;
2111
2228
  }, "parseVtt");
2112
2229
 
2113
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/import.js
2230
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/import.js
2114
2231
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2115
2232
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2116
2233
  for (const file of files) {
@@ -2143,10 +2260,61 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2143
2260
  return report;
2144
2261
  }, "importFiles");
2145
2262
 
2146
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/links.js
2263
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/links.js
2147
2264
  var CHAT_MESSAGES_READ = 1e5;
2148
2265
 
2149
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2266
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2267
+ var nonempty = /* @__PURE__ */ __name((value, name) => {
2268
+ if (typeof value !== "string" || !value.trim())
2269
+ throw new CliError("validation_error", `${name} must be nonempty`);
2270
+ return value;
2271
+ }, "nonempty");
2272
+ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2273
+ if (!change || typeof change !== "object" || Array.isArray(change) || Object.keys(change).some((key) => !["title", "kind", "startTime", "durationMinutes", "timezone", "agenda"].includes(key)))
2274
+ throw new CliError("validation_error", "unsupported meeting change field");
2275
+ const result = {};
2276
+ if (change.title !== void 0)
2277
+ result.title = nonempty(change.title, "meeting title");
2278
+ if (create && result.title === void 0)
2279
+ throw new CliError("validation_error", "meeting title is required");
2280
+ if (change.kind !== void 0) {
2281
+ if (change.kind !== "instant" && change.kind !== "scheduled")
2282
+ throw new CliError("validation_error", "only instant or scheduled meeting kinds are supported");
2283
+ result.kind = change.kind;
2284
+ }
2285
+ if (change.startTime !== void 0) {
2286
+ result.startTime = meetingTimestamp(change.startTime, "meeting start");
2287
+ }
2288
+ if (change.durationMinutes !== void 0) {
2289
+ if (!Number.isSafeInteger(change.durationMinutes) || change.durationMinutes <= 0 || change.durationMinutes > 1440)
2290
+ throw new CliError("validation_error", "meeting duration must be an integer from 1 to 1440 minutes");
2291
+ result.durationMinutes = change.durationMinutes;
2292
+ }
2293
+ if (change.timezone !== void 0) {
2294
+ if (typeof change.timezone !== "string" || !change.timezone.trim())
2295
+ throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
2296
+ try {
2297
+ new Intl.DateTimeFormat("en", { timeZone: change.timezone }).format();
2298
+ } catch {
2299
+ throw new CliError("validation_error", "meeting timezone must be a valid IANA timezone");
2300
+ }
2301
+ result.timezone = change.timezone;
2302
+ }
2303
+ if (change.agenda !== void 0) {
2304
+ if (typeof change.agenda !== "string")
2305
+ throw new CliError("validation_error", "meeting agenda must be text");
2306
+ result.agenda = change.agenda;
2307
+ }
2308
+ if (create) {
2309
+ result.kind ??= "scheduled";
2310
+ if (result.kind === "scheduled" && result.startTime === void 0)
2311
+ throw new CliError("validation_error", "scheduled meeting start is required");
2312
+ } else if (!Object.keys(result).length)
2313
+ throw new CliError("validation_error", "at least one meeting change is required");
2314
+ return Object.freeze(result);
2315
+ }, "validateMeetingChange");
2316
+
2317
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2150
2318
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2151
2319
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2152
2320
  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)))
@@ -2159,7 +2327,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2159
2327
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2160
2328
  }, "validateMeetingPassage");
2161
2329
 
2162
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2330
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2163
2331
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2164
2332
  if (!original || typeof original !== "object" || Array.isArray(original))
2165
2333
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2184,7 +2352,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2184
2352
  return { ...input, limit, maxReadBytes };
2185
2353
  }, "validateMeetingPreparationContext");
2186
2354
 
2187
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2355
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2188
2356
  var count4 = pipe(number(), integer(), minValue(0));
2189
2357
  var id = pipe(string(), minLength(1));
2190
2358
  var meetingProjectEvidence = strictObject({
@@ -2305,7 +2473,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2305
2473
  };
2306
2474
  }, "meetingProjectEvidenceAnswer");
2307
2475
 
2308
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2476
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2309
2477
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2310
2478
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2311
2479
  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) || [
@@ -2325,7 +2493,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2325
2493
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2326
2494
  }, "validateMeetingHitSearch");
2327
2495
 
2328
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2496
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2329
2497
  var ids = {
2330
2498
  meeting_id: "meetingId",
2331
2499
  identity_id: "participantIdentityId",
@@ -2416,7 +2584,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2416
2584
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2417
2585
  }, "prepareMeetingProjectEvidence");
2418
2586
 
2419
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2587
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2420
2588
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2421
2589
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2422
2590
  const page = await read(prepared.project, prepared.options);
@@ -2424,7 +2592,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2424
2592
  return meetingProjectEvidenceAnswer(page, prepared);
2425
2593
  }, "readMeetingProjectEvidence");
2426
2594
 
2427
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2595
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2428
2596
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2429
2597
  const { identityExternalId, ...fields2 } = p;
2430
2598
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2563,7 +2731,7 @@ unlinked`, format)],
2563
2731
  return report;
2564
2732
  }, "pull");
2565
2733
 
2566
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2734
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2567
2735
  var text5 = string();
2568
2736
  var count5 = pipe(number(), integer(), minValue(0));
2569
2737
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2740,10 +2908,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2740
2908
  updated_at: new Date(one.updatedAt).toISOString()
2741
2909
  }), "eventItem");
2742
2910
 
2743
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2911
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2744
2912
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2745
2913
 
2746
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2914
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2747
2915
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2748
2916
  if (!original || typeof original !== "object" || Array.isArray(original))
2749
2917
  throw new CliError("validation_error", "related history request is required");
@@ -2773,14 +2941,14 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2773
2941
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2774
2942
  }, "validateMeetingRelatedHistory");
2775
2943
 
2776
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/review.js
2944
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/review.js
2777
2945
  var REVIEW_LIMIT = { default: 50, most: 200 };
2778
2946
 
2779
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2947
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2780
2948
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2781
2949
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2782
2950
 
2783
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2951
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2784
2952
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2785
2953
  input.signal?.throwIfAborted();
2786
2954
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -2801,39 +2969,39 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2801
2969
  return { ...input, limit, maxReadBytes };
2802
2970
  }, "validateMeetingSeriesHistory");
2803
2971
 
2804
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2972
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2805
2973
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
2806
2974
 
2807
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2808
- function invalid3(field, response = false) {
2975
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2976
+ function invalid4(field, response = false) {
2809
2977
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
2810
2978
  }
2811
- __name(invalid3, "invalid");
2979
+ __name(invalid4, "invalid");
2812
2980
  var object2 = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
2813
2981
  if (!value || typeof value !== "object" || Array.isArray(value))
2814
- invalid3(field, response);
2982
+ invalid4(field, response);
2815
2983
  for (const key of Object.keys(value))
2816
2984
  if (!fields2.includes(key))
2817
- invalid3(`${field}.${key}`, response);
2985
+ invalid4(`${field}.${key}`, response);
2818
2986
  }, "object");
2819
2987
  var cursorDetails = /* @__PURE__ */ __name((value) => {
2820
2988
  if (typeof value !== "string" || value.length > 4096 || !/^[A-Za-z0-9_-]+$/.test(value))
2821
- invalid3("cursor");
2989
+ invalid4("cursor");
2822
2990
  try {
2823
2991
  const decoded = JSON.parse(new TextDecoder("utf8", { fatal: true }).decode(Buffer.from(value, "base64url")));
2824
2992
  object2(decoded, ["version", "selection", "cursor"], "cursor");
2825
2993
  if (decoded.version !== 1 || typeof decoded.selection !== "string" || !/^[a-f0-9]{64}$/.test(decoded.selection) || !occurrenceId(decoded.cursor))
2826
- invalid3("cursor");
2994
+ invalid4("cursor");
2827
2995
  return decoded;
2828
2996
  } catch {
2829
- return invalid3("cursor");
2997
+ return invalid4("cursor");
2830
2998
  }
2831
2999
  }, "cursorDetails");
2832
3000
  var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
2833
3001
  cursorDetails(value);
2834
3002
  }, "validateMeetingSeriesInventoryCursor");
2835
3003
 
2836
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3004
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2837
3005
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
2838
3006
  const zone = timeZone ?? "UTC";
2839
3007
  try {
@@ -2912,7 +3080,21 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
2912
3080
  };
2913
3081
  }, "aggregateMeetingStats");
2914
3082
 
2915
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
3083
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/tags.js
3084
+ var TAG_TYPES = ["chat", "contact", "message", "task"];
3085
+ var TAG = /^[a-z0-9-]{1,32}$/;
3086
+ var tagOf = /* @__PURE__ */ __name((value) => {
3087
+ const tag = value.trim().toLowerCase();
3088
+ return TAG.test(tag) ? tag : void 0;
3089
+ }, "tagOf");
3090
+ var normalizeTag = /* @__PURE__ */ __name((value) => {
3091
+ const tag = tagOf(value);
3092
+ if (tag === void 0)
3093
+ throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
3094
+ return tag;
3095
+ }, "normalizeTag");
3096
+
3097
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
2916
3098
  var LINK_KINDS = [
2917
3099
  "links-to",
2918
3100
  "blocked-by",
@@ -2933,7 +3115,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
2933
3115
  var RELATION_KINDS = ["member-of", "related-to"];
2934
3116
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
2935
3117
 
2936
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/model.js
3118
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/model.js
2937
3119
  var TASK_KINDS = ["question", "request", "mention", "promise"];
2938
3120
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
2939
3121
  var CLOSED_STATES = ["done", "dismissed"];
@@ -2948,13 +3130,13 @@ function closeTask(task, state, by, at, reason) {
2948
3130
  }
2949
3131
  __name(closeTask, "closeTask");
2950
3132
 
2951
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/store.js
3133
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/store.js
2952
3134
  function matches2(task, filter) {
2953
3135
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
2954
3136
  }
2955
3137
  __name(matches2, "matches");
2956
3138
 
2957
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/priority.js
3139
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
2958
3140
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
2959
3141
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
2960
3142
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -2983,7 +3165,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
2983
3165
  }, "priorityOf");
2984
3166
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
2985
3167
 
2986
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/tasks/service.js
3168
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/tasks/service.js
2987
3169
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
2988
3170
  async function find(id3) {
2989
3171
  const task = await store.get(id3);
@@ -3043,8 +3225,7 @@ function median(values) {
3043
3225
  }
3044
3226
  __name(median, "median");
3045
3227
 
3046
- // node_modules/.pnpm/@wirecat+cli-core@0.531.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.71.0_commander@15._cfa5eacb532b7a1817693c3848e83d75/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
3047
- var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
3228
+ // node_modules/.pnpm/@wirecat+cli-core@0.553.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.75.0_commander@15._c8fb11a0c49a39da33a9d557d170ff7b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
3048
3229
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
3049
3230
  var MEMORY_KINDS = ["summary", "digest", "preference"];
3050
3231
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -3053,9 +3234,6 @@ var WORK_TASK_TYPES = ["bug", "feature", "chore"];
3053
3234
  var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
3054
3235
 
3055
3236
  export {
3056
- TAG_TYPES,
3057
- tagOf,
3058
- normalizeTag,
3059
3237
  QUERY_LIMITS,
3060
3238
  queryAstSchema,
3061
3239
  queryError,
@@ -3063,7 +3241,6 @@ export {
3063
3241
  timezoneOf,
3064
3242
  dayBoundary,
3065
3243
  zonedMoment,
3066
- dateEndpoint,
3067
3244
  dateRange,
3068
3245
  evaluate,
3069
3246
  FIELD_TYPES,
@@ -3071,6 +3248,7 @@ export {
3071
3248
  QUERY_BACKENDS,
3072
3249
  queryFieldsOf,
3073
3250
  fieldsHelp,
3251
+ queryDescription,
3074
3252
  parseLucene,
3075
3253
  implicitTextTerms,
3076
3254
  validateQuery,
@@ -3107,7 +3285,11 @@ export {
3107
3285
  meetingTranscriptAnswer,
3108
3286
  meetingSummaryAnswer,
3109
3287
  exportMeeting,
3110
- validateMeetingChange,
3288
+ FACT_TYPES,
3289
+ PAYMENT_DIRECTIONS,
3290
+ PAYMENT_STATES,
3291
+ validatePayment,
3292
+ paymentTitle,
3111
3293
  findingHash,
3112
3294
  validateFindings,
3113
3295
  findingFingerprint,
@@ -3115,8 +3297,10 @@ export {
3115
3297
  validateMeetingFindings,
3116
3298
  meetingFindingFingerprint,
3117
3299
  parseMeetingQuery,
3300
+ transcriptLanguage,
3118
3301
  importFiles,
3119
3302
  CHAT_MESSAGES_READ,
3303
+ validateMeetingChange,
3120
3304
  validateMeetingPassage,
3121
3305
  validateMeetingPreparationContext,
3122
3306
  meetingProjectEvidence,
@@ -3142,6 +3326,9 @@ export {
3142
3326
  validateMeetingSeriesHistory,
3143
3327
  validateMeetingSeriesInventoryCursor,
3144
3328
  aggregateMeetingStats,
3329
+ TAG_TYPES,
3330
+ tagOf,
3331
+ normalizeTag,
3145
3332
  LINK_KINDS,
3146
3333
  LINK_ORIGINS,
3147
3334
  LINK_SOURCES,
@@ -3160,7 +3347,6 @@ export {
3160
3347
  priorityOption,
3161
3348
  createTaskService,
3162
3349
  matches2 as matches,
3163
- FACT_TYPES,
3164
3350
  FACT_STATUSES,
3165
3351
  MEMORY_KINDS,
3166
3352
  MEMORY_STATUSES,