@wirecat/mail-cli 0.24.0 → 0.25.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 (106) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-QEV2PSOR.js} +9 -9
  4. package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-5NKQXIHM.js} +16 -9
  5. package/dist/bundle/{app-server-HU3LVU42.js → app-server-G2CJNT4R.js} +56 -45
  6. package/dist/bundle/{bun-QLFX47WZ.js → bun-6HBYWQIX.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-DXIQ7BVR.js} +8 -4
  8. package/dist/bundle/{chunk-U6MMQNNK.js → chunk-37F6QYTO.js} +5 -5
  9. package/dist/bundle/{chunk-5NLHDK7P.js → chunk-3XVR2ROR.js} +30 -30
  10. package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-434YOD6A.js} +3 -3
  11. package/dist/bundle/{chunk-NCRSE647.js → chunk-5QYK3LWS.js} +57 -25
  12. package/dist/bundle/{chunk-WOX7FZJP.js → chunk-5ZYFV6FD.js} +82 -61
  13. package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
  14. package/dist/bundle/{chunk-XBEO472U.js → chunk-A6BPOX5O.js} +11804 -10024
  15. package/dist/bundle/{chunk-VVL4MKYH.js → chunk-ADKMBXY4.js} +1 -1
  16. package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-B7SWTH5O.js} +2 -2
  17. package/dist/bundle/{chunk-64ZG5ERD.js → chunk-BC7PFQL7.js} +2 -2
  18. package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-CBYBZCQP.js} +1 -1
  19. package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-CIWWNBVW.js} +7 -7
  20. package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-DIA56CS7.js} +7 -6
  21. package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-EXVY76VO.js} +36 -30
  22. package/dist/bundle/{chunk-RNZKQMFY.js → chunk-FZZD4AFY.js} +11 -11
  23. package/dist/bundle/{chunk-5X3GU5LI.js → chunk-G5LHHAW2.js} +5 -5
  24. package/dist/bundle/{chunk-YI544LHI.js → chunk-GJRYZXBN.js} +8 -8
  25. package/dist/bundle/{chunk-NSIN5IM4.js → chunk-GY4XCLCO.js} +9 -14
  26. package/dist/bundle/{chunk-IRUN4XOV.js → chunk-HEIDAHRC.js} +2 -2
  27. package/dist/bundle/{chunk-4QNHAM3J.js → chunk-HEYVMAAQ.js} +1 -1
  28. package/dist/bundle/{chunk-RLQZFZLK.js → chunk-HJSJBNCJ.js} +61 -6
  29. package/dist/bundle/{chunk-H5FJTHVA.js → chunk-HLXVUMZJ.js} +2 -2
  30. package/dist/bundle/{chunk-DW3F6DUW.js → chunk-IACWKZWS.js} +1 -1
  31. package/dist/bundle/{chunk-JOQGJUFT.js → chunk-IXO4SCKE.js} +1 -1
  32. package/dist/bundle/{chunk-X7J3TTDO.js → chunk-IZOYW4Z4.js} +24 -0
  33. package/dist/bundle/{chunk-6PWCQKMD.js → chunk-J4OYK4WL.js} +13 -13
  34. package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-JG4MNYG2.js} +1 -1
  35. package/dist/bundle/{chunk-JMLIKXFO.js → chunk-K2OGF7KC.js} +1 -1
  36. package/dist/bundle/chunk-K6HR6HCO.js +32 -0
  37. package/dist/bundle/{chunk-FKWUUCX2.js → chunk-KFB2X6KE.js} +385 -178
  38. package/dist/bundle/{chunk-3FD3IATT.js → chunk-KK4HD3SI.js} +5 -5
  39. package/dist/bundle/{chunk-HBZAJINU.js → chunk-L4QVOEOB.js} +2 -2
  40. package/dist/bundle/chunk-LGZPKKBN.js +53 -0
  41. package/dist/bundle/{chunk-O373QEAJ.js → chunk-MBFPFWCO.js} +25 -25
  42. package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-MWGH3M46.js} +2 -2
  43. package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-ND5H5ADM.js} +3 -3
  44. package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-NMZQTYKJ.js} +1 -1
  45. package/dist/bundle/{chunk-RUASZW3M.js → chunk-OLKCJBZY.js} +4 -4
  46. package/dist/bundle/{chunk-MTO6YVMN.js → chunk-OLLIWNFG.js} +3 -3
  47. package/dist/bundle/{chunk-X47BL4M5.js → chunk-P6GXNT7Z.js} +12 -12
  48. package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-PGC5TRH6.js} +3 -3
  49. package/dist/bundle/{chunk-RN7OI5KL.js → chunk-PHHH2NQP.js} +14 -8
  50. package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-PP3YOAWG.js} +2 -2
  51. package/dist/bundle/{chunk-YA45XV6G.js → chunk-PQMJ5BXH.js} +4 -4
  52. package/dist/bundle/{chunk-NWKKPDZV.js → chunk-QB3DP2TN.js} +1 -1
  53. package/dist/bundle/{chunk-BFQQV22T.js → chunk-QQUY4MZY.js} +1 -1
  54. package/dist/bundle/{chunk-VNKWSCN7.js → chunk-S2QRAKQI.js} +16 -16
  55. package/dist/bundle/{chunk-6VV7J2TN.js → chunk-SMTBV62X.js} +31 -26
  56. package/dist/bundle/{chunk-A6J4MPTI.js → chunk-T27IMG6X.js} +1 -1
  57. package/dist/bundle/{chunk-FNLUKODV.js → chunk-TY644DKQ.js} +1 -1
  58. package/dist/bundle/{chunk-3KSK5BBB.js → chunk-U6IQ6YQ2.js} +1 -1
  59. package/dist/bundle/{chunk-PT6MF2VU.js → chunk-VFU7PVPQ.js} +336 -106
  60. package/dist/bundle/{chunk-QVMOEB3I.js → chunk-VL6H2BND.js} +13 -13
  61. package/dist/bundle/{chunk-OQW6GHUA.js → chunk-WOAYHCM2.js} +1 -1
  62. package/dist/bundle/{chunk-TLEBSMC7.js → chunk-WX6OYVCH.js} +3968 -3527
  63. package/dist/bundle/{chunk-C3NYJW6B.js → chunk-XMDEM6BZ.js} +631 -79
  64. package/dist/bundle/{chunk-AUTX2MLF.js → chunk-XQYKIZMG.js} +11 -9
  65. package/dist/bundle/{chunk-KV4VTKF3.js → chunk-YNS2YVUR.js} +68 -5
  66. package/dist/bundle/{chunk-JWMLMAHP.js → chunk-Z5T6OW3V.js} +13 -4
  67. package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
  68. package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-XMSSY5ID.js} +23 -22
  69. package/dist/bundle/{decode-AVWV7SVZ.js → decode-RYGB4PGT.js} +4 -4
  70. package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-PLQOIZG5.js} +1 -1
  71. package/dist/bundle/{dist-PIOOKBWT.js → dist-GY2AQETI.js} +23 -16
  72. package/dist/bundle/{echarts-7K6YQV52.js → echarts-7CM2MCMW.js} +2 -2
  73. package/dist/bundle/{embed-4NT76GJK.js → embed-FTBDPOPT.js} +5 -5
  74. package/dist/bundle/{embedder-ITQFF7EN.js → embedder-B43WGNBD.js} +8 -8
  75. package/dist/bundle/{failure-3Q65JOPD.js → failure-XP5QYV2T.js} +1 -1
  76. package/dist/bundle/{first-run-PM74YU4X.js → first-run-XIIUARNM.js} +9 -8
  77. package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
  78. package/dist/bundle/{instructions-JDSITYHV.js → instructions-R7OHVAWH.js} +1 -1
  79. package/dist/bundle/mail.js +5 -5
  80. package/dist/bundle/{node-D6YIJOJI.js → node-3N2JGZ7V.js} +2 -2
  81. package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-WFJXW3CZ.js} +9 -5
  82. package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-SVJLQTWV.js} +6 -6
  83. package/dist/bundle/{open-FIAKKZMW.js → open-ZDONVKSX.js} +4 -4
  84. package/dist/bundle/{openai-QL54VVLC.js → openai-XVEW6XOU.js} +17 -13
  85. package/dist/bundle/{process-AYHK7WRC.js → process-YAHHUFR5.js} +1 -1
  86. package/dist/bundle/{program-6FKWOTBK.js → program-HU2UVMJE.js} +5742 -5008
  87. package/dist/bundle/{prompt-XJZCBELC.js → prompt-JAJ2CUJI.js} +4 -4
  88. package/dist/bundle/{recognize-OQKWAHBY.js → recognize-UFBWUNFR.js} +3 -3
  89. package/dist/bundle/{remote-NLVUZ5WK.js → remote-2GFOVLCR.js} +8 -6
  90. package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-BGPSMXTL.js} +6 -6
  91. package/dist/bundle/{serve-O4YUI7F6.js → serve-CB3XJTH3.js} +8 -8
  92. package/dist/bundle/server-34GEF22R.js +68 -0
  93. package/dist/bundle/{server-WAL3M4OO.js → server-M7FQY7TX.js} +38 -36
  94. package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-AEV6PGDR.js} +5 -5
  95. package/dist/bundle/{state-WYYOJ7KK.js → state-YLBEQLBI.js} +5 -5
  96. package/dist/bundle/{store-6BJO3F2J.js → store-CDUL3HKK.js} +17 -14
  97. package/dist/bundle/{store-X72GOJHD.js → store-EKWKY6GG.js} +22 -17
  98. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +2 -2
  102. package/dist/bundle/chunk-B72343TK.js +0 -35
  103. package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
  104. package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
  105. package/dist/bundle/server-6OT5ZEWL.js +0 -66
  106. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
@@ -30,7 +30,7 @@ import {
30
30
  string,
31
31
  union,
32
32
  variant
33
- } from "./chunk-X7J3TTDO.js";
33
+ } from "./chunk-IZOYW4Z4.js";
34
34
  import {
35
35
  CliError,
36
36
  isCliError,
@@ -41,7 +41,7 @@ import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/reference.js
45
45
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
46
46
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
47
47
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -78,7 +78,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
78
78
  }, "parseMeetingReference");
79
79
  var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/payment.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/payment.js
82
82
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
83
83
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
84
84
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -987,7 +987,7 @@ var QUERY_REASONS = defineReasons([
987
987
  details: [...SPAN, ...details]
988
988
  })));
989
989
 
990
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/item.js
990
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/item.js
991
991
  var text = string();
992
992
  var count = pipe(number(), integer(), minValue(0));
993
993
  var MEETING_ISSUES = ["time_without_zone"];
@@ -1052,7 +1052,7 @@ var MEETING_QUERY = {
1052
1052
  })
1053
1053
  };
1054
1054
 
1055
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1055
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1056
1056
  var text2 = string();
1057
1057
  var count2 = pipe(number(), integer(), minValue(0));
1058
1058
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1287,7 +1287,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1287
1287
  };
1288
1288
  }, "meetingHitsList");
1289
1289
 
1290
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1290
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1291
1291
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
1292
1292
  const parsed = urlOf(url);
1293
1293
  if (!parsed)
@@ -1321,7 +1321,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
1321
1321
  }
1322
1322
  }, "urlOf");
1323
1323
 
1324
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1324
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1325
1325
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1326
1326
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1327
1327
  var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
@@ -1358,7 +1358,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1358
1358
  return kept;
1359
1359
  }, "entryMetadata");
1360
1360
 
1361
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1361
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1362
1362
  import { createHash } from "node:crypto";
1363
1363
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1364
1364
  reference: cue2.reference,
@@ -1372,7 +1372,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1372
1372
  text: cue2.text
1373
1373
  })).digest("hex"), "meetingCueFingerprint");
1374
1374
 
1375
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1375
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1376
1376
  var EVENT_QUERY = defineQuery({
1377
1377
  entity: "event",
1378
1378
  backend: "sql",
@@ -1388,7 +1388,7 @@ var EVENT_QUERY = defineQuery({
1388
1388
  ]
1389
1389
  });
1390
1390
 
1391
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1391
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1392
1392
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1393
1393
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1394
1394
  if (entry.recurrenceEndsAt !== null)
@@ -1411,7 +1411,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1411
1411
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1412
1412
  }, "entryInWindow");
1413
1413
 
1414
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/events.js
1414
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/events.js
1415
1415
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1416
1416
  const current = await store.meeting(details.meeting.id);
1417
1417
  if (!current)
@@ -1454,7 +1454,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1454
1454
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1455
1455
  }, "linkEvent");
1456
1456
 
1457
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1457
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1458
1458
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1459
1459
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1460
1460
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1478,7 +1478,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1478
1478
  };
1479
1479
  }, "validateMeetingParticipantSearch");
1480
1480
 
1481
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1481
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1482
1482
  var MeetingError = class extends CliError {
1483
1483
  static {
1484
1484
  __name(this, "MeetingError");
@@ -1524,7 +1524,7 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
1524
1524
  if (store.participantCandidates && accountId === void 0)
1525
1525
  throw new MeetingError("configuration_error", "select an account for bounded participant lookup");
1526
1526
  if (accountId !== void 0 && store.participantCandidates) {
1527
- const { limit, has_more, next_cursor, ...packet } = await store.participantCandidates(query, {
1527
+ const { limit, hasMore: has_more, nextCursor: next_cursor, ...packet } = await store.participantCandidates(query, {
1528
1528
  ...options,
1529
1529
  accountId
1530
1530
  });
@@ -1553,11 +1553,11 @@ var meetingPeople = /* @__PURE__ */ __name(async (store, query, accountId, optio
1553
1553
  return listed(await store.participants(query, accountId));
1554
1554
  }, "meetingPeople");
1555
1555
  var PAGE_NEXT2 = STEPS.find((step) => step.id === "page.next");
1556
- var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}, page = 1) => {
1556
+ var meetingsList = /* @__PURE__ */ __name(async (store, filter = {}) => {
1557
1557
  validateFilter(filter);
1558
- positiveInteger(page);
1559
1558
  const limit = positiveInteger(filter.limit ?? 100);
1560
- const offset = (page - 1) * limit;
1559
+ const offset = filter.offset ?? 0;
1560
+ const page = Math.floor(offset / limit) + 1;
1561
1561
  if (!Number.isSafeInteger(offset + limit + 1))
1562
1562
  throw new MeetingError("validation_error", "pagination exceeds safe integer range");
1563
1563
  const rows = await store.meetings({ ...filter, limit: limit + 1, offset });
@@ -1610,7 +1610,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1610
1610
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1611
1611
  }, "meetingSummaryAnswer");
1612
1612
 
1613
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/export.js
1613
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/export.js
1614
1614
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1615
1615
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1616
1616
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1706,10 +1706,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1706
1706
  };
1707
1707
  }, "exportMeeting");
1708
1708
 
1709
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1709
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1710
1710
  import { createHash as createHash2 } from "node:crypto";
1711
1711
 
1712
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1712
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1713
1713
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1714
1714
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1715
1715
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -1720,7 +1720,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1720
1720
  return new Date(value).toISOString();
1721
1721
  }, "meetingTimestamp");
1722
1722
 
1723
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1723
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1724
1724
  var TASK_TYPES = ["bug", "feature", "chore"];
1725
1725
  var invalid3 = /* @__PURE__ */ __name((message) => {
1726
1726
  throw new CliError("validation_error", message);
@@ -1895,7 +1895,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1895
1895
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1896
1896
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1897
1897
 
1898
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1898
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1899
1899
  var MEETING_FINDINGS_KIND = "meeting_findings";
1900
1900
  var cue = /* @__PURE__ */ __name((raw) => {
1901
1901
  const reference2 = canonicalMeetingReference(raw);
@@ -1906,7 +1906,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1906
1906
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1907
1907
  var meetingFindingFingerprint = findingFingerprint;
1908
1908
 
1909
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1909
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1910
1910
  var context = {
1911
1911
  command: "search meetings",
1912
1912
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -2016,7 +2016,7 @@ var liftMeetingFields = /* @__PURE__ */ __name((query, request, now, timezone) =
2016
2016
  }, "liftMeetingFields");
2017
2017
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
2018
2018
 
2019
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/language.js
2019
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/language.js
2020
2020
  var LATIN_WORDS = {
2021
2021
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
2022
2022
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -2065,7 +2065,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
2065
2065
  return null;
2066
2066
  }, "transcriptLanguage");
2067
2067
 
2068
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2068
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2069
2069
  var contentHash = /* @__PURE__ */ __name(async (text5) => {
2070
2070
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
2071
2071
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -2102,7 +2102,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2102
2102
  return time;
2103
2103
  }, "timestamp");
2104
2104
 
2105
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2105
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2106
2106
  var TranscriptTextError = class extends Error {
2107
2107
  static {
2108
2108
  __name(this, "TranscriptTextError");
@@ -2157,7 +2157,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2157
2157
  return { header, lines };
2158
2158
  }, "parseTranscriptText");
2159
2159
 
2160
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2160
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2161
2161
  var VttError = class extends Error {
2162
2162
  static {
2163
2163
  __name(this, "VttError");
@@ -2209,7 +2209,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2209
2209
  return cues;
2210
2210
  }, "parseVtt");
2211
2211
 
2212
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/import.js
2212
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/import.js
2213
2213
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2214
2214
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2215
2215
  for (const file of files) {
@@ -2242,10 +2242,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2242
2242
  return report;
2243
2243
  }, "importFiles");
2244
2244
 
2245
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/links.js
2245
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/links.js
2246
2246
  var CHAT_MESSAGES_READ = 1e5;
2247
2247
 
2248
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2248
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2249
2249
  var nonempty = /* @__PURE__ */ __name((value, name) => {
2250
2250
  if (typeof value !== "string" || !value.trim())
2251
2251
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -2296,7 +2296,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2296
2296
  return Object.freeze(result);
2297
2297
  }, "validateMeetingChange");
2298
2298
 
2299
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2299
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2300
2300
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2301
2301
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2302
2302
  if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
@@ -2309,7 +2309,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2309
2309
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2310
2310
  }, "validateMeetingPassage");
2311
2311
 
2312
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2312
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2313
2313
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2314
2314
  if (!original || typeof original !== "object" || Array.isArray(original))
2315
2315
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2334,7 +2334,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2334
2334
  return { ...input, limit, maxReadBytes };
2335
2335
  }, "validateMeetingPreparationContext");
2336
2336
 
2337
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2337
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2338
2338
  var count3 = pipe(number(), integer(), minValue(0));
2339
2339
  var id = pipe(string(), minLength(1));
2340
2340
  var meetingProjectEvidence = strictObject({
@@ -2406,7 +2406,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2406
2406
  kind: page.term.kind,
2407
2407
  ...page.term.aliasId === void 0 ? {} : { alias_id: page.term.aliasId }
2408
2408
  },
2409
- hits: page.hits.map(meetingHitItem),
2409
+ hits: page.items.map(meetingHitItem),
2410
2410
  association: page.association,
2411
2411
  vocabulary_fingerprint: page.vocabularyFingerprint,
2412
2412
  selection,
@@ -2448,14 +2448,14 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2448
2448
  limit: page.limits.limit,
2449
2449
  max_read_bytes: page.limits.maxReadBytes
2450
2450
  },
2451
- values: { shown: page.hits.length }
2451
+ values: { shown: page.items.length }
2452
2452
  })
2453
2453
  ]
2454
2454
  }
2455
2455
  };
2456
2456
  }, "meetingProjectEvidenceAnswer");
2457
2457
 
2458
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2458
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2459
2459
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2460
2460
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2461
2461
  if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer3(options.limit ?? 100, 1, 1e3) || !integer3(options.maxReadBytes ?? 4194304, 1, 67108864) || [
@@ -2475,7 +2475,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2475
2475
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2476
2476
  }, "validateMeetingHitSearch");
2477
2477
 
2478
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2478
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2479
2479
  var ids = {
2480
2480
  meeting_id: "meetingId",
2481
2481
  identity_id: "participantIdentityId",
@@ -2566,7 +2566,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2566
2566
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2567
2567
  }, "prepareMeetingProjectEvidence");
2568
2568
 
2569
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2569
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2570
2570
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2571
2571
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2572
2572
  const page = await read(prepared.project, prepared.options);
@@ -2574,7 +2574,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2574
2574
  return meetingProjectEvidenceAnswer(page, prepared);
2575
2575
  }, "readMeetingProjectEvidence");
2576
2576
 
2577
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2577
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2578
2578
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2579
2579
  const { identityExternalId, ...fields } = p;
2580
2580
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2736,7 +2736,7 @@ unlinked`, format)],
2736
2736
  return report;
2737
2737
  }, "pull");
2738
2738
 
2739
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2739
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2740
2740
  var text3 = string();
2741
2741
  var count4 = pipe(number(), integer(), minValue(0));
2742
2742
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2930,10 +2930,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2930
2930
  updated_at: new Date(one.updatedAt).toISOString()
2931
2931
  }), "eventItem");
2932
2932
 
2933
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2933
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2934
2934
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2935
2935
 
2936
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2936
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2937
2937
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2938
2938
  if (!original || typeof original !== "object" || Array.isArray(original))
2939
2939
  throw new CliError("validation_error", "related history request is required");
@@ -2963,7 +2963,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2963
2963
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2964
2964
  }, "validateMeetingRelatedHistory");
2965
2965
 
2966
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2966
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2967
2967
  var text4 = string();
2968
2968
  var identifier = pipe(text4, minLength(1));
2969
2969
  var nullableText = nullable(text4);
@@ -3097,14 +3097,14 @@ var MEETING_RESULT_ENTITIES = {
3097
3097
  meeting_repair: repair
3098
3098
  };
3099
3099
 
3100
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/review.js
3100
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/review.js
3101
3101
  var REVIEW_LIMIT = { default: 50, most: 200 };
3102
3102
 
3103
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3103
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3104
3104
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3105
3105
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3106
3106
 
3107
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3107
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3108
3108
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3109
3109
  input.signal?.throwIfAborted();
3110
3110
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3125,10 +3125,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3125
3125
  return { ...input, limit, maxReadBytes };
3126
3126
  }, "validateMeetingSeriesHistory");
3127
3127
 
3128
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3128
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3129
3129
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
3130
3130
 
3131
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3131
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3132
3132
  function invalid4(field, response = false) {
3133
3133
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3134
3134
  }
@@ -3157,7 +3157,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
3157
3157
  cursorDetails(value);
3158
3158
  }, "validateMeetingSeriesInventoryCursor");
3159
3159
 
3160
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3160
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3161
3161
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3162
3162
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3163
3163
  const zone = timeZone ?? "UTC";
@@ -3292,10 +3292,10 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3292
3292
  };
3293
3293
  }, "aggregateMeetingStats");
3294
3294
 
3295
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/meetings/store.js
3295
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/meetings/store.js
3296
3296
  var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
3297
3297
 
3298
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/locator.js
3298
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/locator.js
3299
3299
  var SCHEME = "msg:";
3300
3300
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
3301
3301
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -3309,7 +3309,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
3309
3309
  return { provider, account, chat, message };
3310
3310
  }, "parseLocator");
3311
3311
 
3312
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/references.js
3312
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/references.js
3313
3313
  var SIMPLE_REFERENCES = [
3314
3314
  "note",
3315
3315
  "document",
@@ -3465,7 +3465,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text5) => {
3465
3465
  return match !== null && byPrefix.has(match[1]);
3466
3466
  }, "looksLikeReference");
3467
3467
 
3468
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/providers.js
3468
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/providers.js
3469
3469
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm"];
3470
3470
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
3471
3471
  var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
@@ -3632,7 +3632,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
3632
3632
  var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
3633
3633
  var kindOf2 = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
3634
3634
 
3635
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/money.js
3635
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/money.js
3636
3636
  var CURRENCY_SCALES = {
3637
3637
  AED: 2,
3638
3638
  AMD: 2,
@@ -3726,7 +3726,7 @@ var quantityOf = /* @__PURE__ */ __name((text5) => {
3726
3726
  }, "quantityOf");
3727
3727
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3728
3728
 
3729
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/deals.js
3729
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/deals.js
3730
3730
  var DEAL_KINDS = ["deal", "lead"];
3731
3731
  var DEAL_STATUSES = ["open", "won", "lost"];
3732
3732
  var STAGE_OUTCOMES = DEAL_STATUSES;
@@ -3736,7 +3736,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
3736
3736
  return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
3737
3737
  }, "dealLine");
3738
3738
 
3739
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/finance.js
3739
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/finance.js
3740
3740
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
3741
3741
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3742
3742
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -3765,7 +3765,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
3765
3765
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3766
3766
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3767
3767
 
3768
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/orders.js
3768
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/orders.js
3769
3769
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3770
3770
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3771
3771
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -3776,7 +3776,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
3776
3776
  }, "orderLine");
3777
3777
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3778
3778
 
3779
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/relations.js
3779
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/relations.js
3780
3780
  var ORGANIZATION_ROLES = [
3781
3781
  "employee",
3782
3782
  "contractor",
@@ -3788,6 +3788,7 @@ var ORGANIZATION_ROLES = [
3788
3788
  ];
3789
3789
  var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
3790
3790
  var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
3791
+ var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
3791
3792
  var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
3792
3793
  var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
3793
3794
  var checkEngagement = /* @__PURE__ */ __name((kind2, from, to, level) => {
@@ -3836,6 +3837,7 @@ var checkEnds = /* @__PURE__ */ __name((kind2, from, to) => {
3836
3837
  throw new CliError("validation_error", `${kind2} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
3837
3838
  return spec;
3838
3839
  }, "checkEnds");
3840
+ var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
3839
3841
  var rolesOf = /* @__PURE__ */ __name((kind2, from, to) => {
3840
3842
  const spec = specOf(kind2);
3841
3843
  if (kind2 === "member-of" && from !== "person")
@@ -3846,9 +3848,12 @@ var ROLE_LISTS = {
3846
3848
  organization: ORGANIZATION_ROLES,
3847
3849
  project: PROJECT_ROLES,
3848
3850
  deal: DEAL_ROLES,
3849
- contract: CONTRACT_ROLES
3851
+ contract: CONTRACT_ROLES,
3852
+ related: RELATED_ROLES
3850
3853
  };
3851
3854
  var roleListOf = /* @__PURE__ */ __name((kind2, from, to) => {
3855
+ if (kind2 === "related-to" && isParty(from) && isParty(to))
3856
+ return "related";
3852
3857
  const roles = rolesOf(kind2, from, to);
3853
3858
  return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
3854
3859
  }, "roleListOf");
@@ -3878,7 +3883,17 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
3878
3883
  var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
3879
3884
  var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
3880
3885
 
3881
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/business.js
3886
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/crm.js
3887
+ var CRM_KINDS = ["organization", "person", "deal", "lead"];
3888
+ var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
3889
+ var isCrmUserId = /* @__PURE__ */ __name((id3) => /^\d{1,20}$/.test(id3), "isCrmUserId");
3890
+ var normalCrmUserId = /* @__PURE__ */ __name((id3) => {
3891
+ const text5 = id3.trim();
3892
+ return /^\d+$/.test(text5) ? text5.replace(/^0+(?=\d)/, "") : text5;
3893
+ }, "normalCrmUserId");
3894
+ var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
3895
+
3896
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/business.js
3882
3897
  var CATALOG_KINDS = ["product", "service"];
3883
3898
  var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
3884
3899
  var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
@@ -3907,7 +3922,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
3907
3922
  var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
3908
3923
  var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
3909
3924
 
3910
- // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/tags.js
3925
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/domain/tags.js
3911
3926
  var TAG_TYPES = ["chat", "contact", "message", "task"];
3912
3927
  var TAG = /^[a-z0-9-]{1,32}$/;
3913
3928
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -4100,6 +4115,7 @@ export {
4100
4115
  ORGANIZATION_ROLES,
4101
4116
  PROJECT_ROLES,
4102
4117
  CONTRACT_ROLES,
4118
+ RELATED_ROLES,
4103
4119
  ENGAGEMENT_LEVELS,
4104
4120
  isEngagement,
4105
4121
  checkEngagement,
@@ -4122,6 +4138,11 @@ export {
4122
4138
  KEYED,
4123
4139
  notOverriddenSql,
4124
4140
  usableLinkSql,
4141
+ CRM_KINDS,
4142
+ CRM_ACTIVITY_KINDS,
4143
+ isCrmUserId,
4144
+ normalCrmUserId,
4145
+ isItemKind,
4125
4146
  CATALOG_KINDS,
4126
4147
  BUSINESS_KINDS,
4127
4148
  CONTRACT_KINDS,
@@ -0,0 +1,16 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ __name
5
+ } from "./chunk-ZVVMGPBJ.js";
6
+
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/normalize.js
8
+ var NORMALIZER_VERSION = 1;
9
+ var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
+ var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
11
+
12
+ export {
13
+ NORMALIZER_VERSION,
14
+ fold,
15
+ normalize
16
+ };