@wirecat/drive-cli 0.61.0 → 0.63.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 (152) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/browse.d.ts +20 -0
  3. package/dist/browse.d.ts.map +1 -0
  4. package/dist/browse.js +146 -0
  5. package/dist/browse.js.map +1 -0
  6. package/dist/bundle/{all-profiles-H4L3Z5UM.js → all-profiles-GZJS3UKC.js} +13 -14
  7. package/dist/bundle/{anthropic-PPGFISVP.js → anthropic-RGV3WXX5.js} +9 -9
  8. package/dist/bundle/{app-server-YXVK2FUZ.js → app-server-AA2PJ7PV.js} +57 -55
  9. package/dist/bundle/{bun-DKZAL6ML.js → bun-OXZYIA3R.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-MTZY36QK.js → bun-sqlite-D45NSDM3.js} +8 -8
  11. package/dist/bundle/{chunk-KV4267S4.js → chunk-27YUUGXQ.js} +1 -1
  12. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-2HF2MRXI.js} +1 -1
  13. package/dist/bundle/{chunk-HGOYQUT7.js → chunk-2NIC72HH.js} +4 -2
  14. package/dist/bundle/{chunk-XZBR2O63.js → chunk-2TDUGC5D.js} +1501 -781
  15. package/dist/bundle/{chunk-DEPMQHXQ.js → chunk-2TFXK3R4.js} +4 -4
  16. package/dist/bundle/{chunk-JVBLXSAA.js → chunk-33MGFUED.js} +652 -249
  17. package/dist/bundle/{chunk-S4YK6TTG.js → chunk-3BZRKLJ6.js} +13 -13
  18. package/dist/bundle/{chunk-6SUGANRJ.js → chunk-3HK5WMI5.js} +6 -6
  19. package/dist/bundle/{chunk-YWIU4HOT.js → chunk-3QINVLZI.js} +1 -1
  20. package/dist/bundle/{chunk-XYCCGGKN.js → chunk-44SBK6KB.js} +1207 -643
  21. package/dist/bundle/{chunk-LARQTWIL.js → chunk-4CIZWCXV.js} +1 -1
  22. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-4OSSOWDM.js} +1 -1
  23. package/dist/bundle/{chunk-XGNC5OJG.js → chunk-4S4JMW6I.js} +1 -1
  24. package/dist/bundle/{chunk-WIU733D2.js → chunk-534OBX5Y.js} +1 -1
  25. package/dist/bundle/{chunk-UO2IUDVK.js → chunk-5PPL7JDM.js} +2 -2
  26. package/dist/bundle/{chunk-OFFA54TW.js → chunk-6EY46GAN.js} +2 -2
  27. package/dist/bundle/{chunk-RFRCOAWS.js → chunk-6KQJSFYF.js} +22 -22
  28. package/dist/bundle/{chunk-6DN4VPA7.js → chunk-6MQSQ4LX.js} +33 -31
  29. package/dist/bundle/{chunk-NIX2MWHZ.js → chunk-7EMQ26BA.js} +39 -25
  30. package/dist/bundle/{chunk-X2CXW4HM.js → chunk-ABYGSJZ4.js} +7 -7
  31. package/dist/bundle/{chunk-I26VL4W7.js → chunk-AEX37ETW.js} +2 -2
  32. package/dist/bundle/{chunk-36CWGEVX.js → chunk-BKYMKVHT.js} +2 -2
  33. package/dist/bundle/{chunk-3WZH3WV3.js → chunk-CE2TJBLP.js} +3 -3
  34. package/dist/bundle/{chunk-YMBFZA3H.js → chunk-DJ3SDJZY.js} +8 -8
  35. package/dist/bundle/{chunk-DXPOVLQC.js → chunk-DJHLVUL6.js} +227 -90
  36. package/dist/bundle/{chunk-VPDAH7PJ.js → chunk-E4SDKMBJ.js} +59 -1
  37. package/dist/bundle/{chunk-NZ2EIZLX.js → chunk-EOOGWUTP.js} +10 -10
  38. package/dist/bundle/{chunk-VYXVPYA3.js → chunk-FEZF3TII.js} +6 -6
  39. package/dist/bundle/{chunk-Q4XVBKX4.js → chunk-FRIJUILO.js} +3 -3
  40. package/dist/bundle/{chunk-OLPJRD4S.js → chunk-FUITWY7O.js} +1 -1
  41. package/dist/bundle/{chunk-AM4RIWOZ.js → chunk-HZZCEQTH.js} +18 -4
  42. package/dist/bundle/{chunk-2RJA4BQB.js → chunk-J24ZFCWM.js} +39 -26
  43. package/dist/bundle/{chunk-QSGT4ZH4.js → chunk-J4DIHPZ6.js} +1 -1
  44. package/dist/bundle/{chunk-ZHYRHERD.js → chunk-L37LMMRJ.js} +2 -2
  45. package/dist/bundle/{chunk-XLFJLZJL.js → chunk-LMAVCYLQ.js} +22 -14
  46. package/dist/bundle/{chunk-E6J5YH2N.js → chunk-LZEOQW7S.js} +36 -36
  47. package/dist/bundle/{chunk-FE5JJXKA.js → chunk-MOTRI3SY.js} +2 -2
  48. package/dist/bundle/{chunk-PJTX2MOI.js → chunk-ND6LLYGF.js} +98 -81
  49. package/dist/bundle/{chunk-3I2D5TK2.js → chunk-NEFSGCVA.js} +10 -10
  50. package/dist/bundle/{chunk-OGNOQDWB.js → chunk-O2XOX4HB.js} +34 -10
  51. package/dist/bundle/{chunk-DCBFNBEB.js → chunk-OD4U7GUY.js} +20 -20
  52. package/dist/bundle/{chunk-BXR7BKM3.js → chunk-OTROVC4E.js} +1 -1
  53. package/dist/bundle/{chunk-UKOYQC5O.js → chunk-OXY6SSZG.js} +184 -29
  54. package/dist/bundle/{chunk-ZMNYK3FC.js → chunk-PDCCYHCH.js} +5 -5
  55. package/dist/bundle/{chunk-J5UDQD5S.js → chunk-PO5RQQIG.js} +5 -5
  56. package/dist/bundle/{chunk-PY7LKNOS.js → chunk-Q5DJTRKV.js} +2 -2
  57. package/dist/bundle/{chunk-E5EXJ2XS.js → chunk-QCKZ3GAA.js} +4 -4
  58. package/dist/bundle/{chunk-3SJQNS72.js → chunk-RKELRWH7.js} +5 -5
  59. package/dist/bundle/{chunk-6Y2FWJZ4.js → chunk-S4RXABDR.js} +3 -3
  60. package/dist/bundle/{chunk-BQMIDYBA.js → chunk-SXM6MHRR.js} +12 -12
  61. package/dist/bundle/chunk-TF23BZW5.js +64 -0
  62. package/dist/bundle/{chunk-N2RLJTIW.js → chunk-TWUH22Z5.js} +4 -4
  63. package/dist/bundle/chunk-UPOSDTPT.js +87 -0
  64. package/dist/bundle/{chunk-J4HQVHMN.js → chunk-UQLWMGSD.js} +5 -5
  65. package/dist/bundle/{chunk-K7LS3NGM.js → chunk-V3NVXIQR.js} +736 -230
  66. package/dist/bundle/{chunk-TKGAYKXW.js → chunk-VAUMOZU5.js} +228 -66
  67. package/dist/bundle/{chunk-BF6TQMNB.js → chunk-VJEOGKAN.js} +8 -10
  68. package/dist/bundle/{chunk-XGMDWIUP.js → chunk-VKPCONDQ.js} +4 -4
  69. package/dist/bundle/{chunk-73WSULMI.js → chunk-WYGWWHZP.js} +2 -2
  70. package/dist/bundle/{chunk-5W56YMQS.js → chunk-XDC3TWTL.js} +60 -51
  71. package/dist/bundle/{chunk-5W7D5H2R.js → chunk-XIUDS3OK.js} +1 -1
  72. package/dist/bundle/{chunk-3UPIJ7DW.js → chunk-XNVFKMVR.js} +21868 -4533
  73. package/dist/bundle/{chunk-O5CUFS7T.js → chunk-XR6ESRU6.js} +2 -2
  74. package/dist/bundle/{chunk-EPCJUL6M.js → chunk-Y6GNA7HE.js} +3 -3
  75. package/dist/bundle/{chunk-67HS46KM.js → chunk-YGU6ULU5.js} +12 -12
  76. package/dist/bundle/{chunk-HFM653T3.js → chunk-YIP7ELON.js} +768 -131
  77. package/dist/bundle/{chunk-3252WXOL.js → chunk-YUWPNG7B.js} +1 -1
  78. package/dist/bundle/{chunk-QR5VQXQ5.js → chunk-Z42YYLTS.js} +59 -37
  79. package/dist/bundle/{chunk-AWN22PJK.js → chunk-Z5KC7XBR.js} +3 -3
  80. package/dist/bundle/{chunk-ECEYAQGN.js → chunk-ZM5J6ZMB.js} +4 -2
  81. package/dist/bundle/{chunk-YPF6OS37.js → chunk-ZMOUUOT2.js} +1 -1
  82. package/dist/bundle/{chunk-CACYL36O.js → chunk-ZOJU7ZFI.js} +8 -8
  83. package/dist/bundle/command-contract-BRW3AP44.js +38 -0
  84. package/dist/bundle/{decode-62A3HGPW.js → decode-G5YEIPNC.js} +8 -8
  85. package/dist/bundle/{dispatch-IE7PBEQC.js → dispatch-GEFIXA6X.js} +9 -9
  86. package/dist/bundle/drive.js +11 -11
  87. package/dist/bundle/{echarts-BGBPRGR5.js → echarts-W2CWHNXR.js} +2 -2
  88. package/dist/bundle/{embed-J3IBVV2V.js → embed-OBFFPVF4.js} +9 -9
  89. package/dist/bundle/{embedder-QFPMDRT2.js → embedder-NGCBQHIG.js} +12 -12
  90. package/dist/bundle/entry-ET6HGM7A.js +22 -0
  91. package/dist/bundle/{failure-BKOGBMIC.js → failure-GV77W3CD.js} +4 -4
  92. package/dist/bundle/first-run-JG52UZVO.js +30 -0
  93. package/dist/bundle/first-screen-CIL3GFAA.js +36 -0
  94. package/dist/bundle/{google-RXM2XEPD.js → google-CIWUVJ5C.js} +13 -13
  95. package/dist/bundle/{google-api-NC65BZO4.js → google-api-Z3NSTBBR.js} +56 -57
  96. package/dist/bundle/grants-3S4RL3WB.js +104 -0
  97. package/dist/bundle/{identity-PI6F2GWA.js → identity-OM6GFZ7T.js} +6 -6
  98. package/dist/bundle/{instructions-6LPDSKAD.js → instructions-YQBQSYSS.js} +1 -1
  99. package/dist/bundle/{login-HTY7GT2S.js → login-7RYSDVN3.js} +62 -63
  100. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-GWDA3HOA.js} +2 -2
  101. package/dist/bundle/{node-IB246NCQ.js → node-IVU33RL7.js} +2 -2
  102. package/dist/bundle/{node-sqlite-G2Y5SFJM.js → node-sqlite-SIH5BEW2.js} +9 -9
  103. package/dist/bundle/oauth-PT4JEHLL.js +22 -0
  104. package/dist/bundle/{open-WD4GFSJD.js → open-IAO2SNII.js} +8 -8
  105. package/dist/bundle/{openai-QVM4PMY7.js → openai-SGOUBHXP.js} +17 -17
  106. package/dist/bundle/{process-SWPJGPQC.js → process-BPBMV3AT.js} +1 -1
  107. package/dist/bundle/{program-WHYFAMXR.js → program-MYKKJ4F6.js} +231 -87
  108. package/dist/bundle/prompt-3ZM64DCB.js +17 -0
  109. package/dist/bundle/{reasons-Q34DQWB6.js → reasons-57J2D77K.js} +5 -5
  110. package/dist/bundle/{recognize-DM3YWHSE.js → recognize-A5C5RPB3.js} +7 -7
  111. package/dist/bundle/{remote-KXVWRK7J.js → remote-VWYFLRGO.js} +10 -10
  112. package/dist/bundle/{rerank-TINXM3MY.js → rerank-4NGQWREA.js} +10 -10
  113. package/dist/bundle/{serve-IY2WL656.js → serve-Y6LQTFH5.js} +12 -12
  114. package/dist/bundle/{server-VPY3OWPC.js → server-6AUHIIUA.js} +43 -44
  115. package/dist/bundle/server-PFHI35HA.js +69 -0
  116. package/dist/bundle/{services-PXNBOCOC.js → services-2W4J7EMW.js} +47 -32
  117. package/dist/bundle/{sqlite-runtime-5ZK2CV7Y.js → sqlite-runtime-P6BBDX2H.js} +9 -9
  118. package/dist/bundle/{start-LDVCN3DK.js → start-AFFA3LKM.js} +9 -7
  119. package/dist/bundle/{state-3MKTT3VS.js → state-PXKKXR3R.js} +9 -9
  120. package/dist/bundle/{store-4VQOT5IJ.js → store-CN6JEUC4.js} +28 -18
  121. package/dist/bundle/{store-7M4MSUJV.js → store-IVV2BAGZ.js} +78 -28
  122. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
  123. package/dist/bundle/tokens-P4LPNUFW.js +102 -0
  124. package/dist/commands/config.d.ts.map +1 -1
  125. package/dist/commands/config.js +5 -1
  126. package/dist/commands/config.js.map +1 -1
  127. package/dist/commands/folders.d.ts +2 -1
  128. package/dist/commands/folders.d.ts.map +1 -1
  129. package/dist/commands/folders.js +16 -3
  130. package/dist/commands/folders.js.map +1 -1
  131. package/dist/program.js +1 -1
  132. package/dist/program.js.map +1 -1
  133. package/dist/tokens.d.ts.map +1 -1
  134. package/dist/tokens.js +15 -6
  135. package/dist/tokens.js.map +1 -1
  136. package/dist/version.d.ts +1 -1
  137. package/dist/version.js +1 -1
  138. package/package.json +3 -3
  139. package/dist/bundle/chunk-BCWUDTYQ.js +0 -22
  140. package/dist/bundle/chunk-W767AUNR.js +0 -132
  141. package/dist/bundle/chunk-WUP2MJDN.js +0 -42
  142. package/dist/bundle/command-contract-T3EO5AYD.js +0 -39
  143. package/dist/bundle/entry-YQSYER66.js +0 -22
  144. package/dist/bundle/first-run-ZIFPVZAI.js +0 -30
  145. package/dist/bundle/first-screen-L5U26EY7.js +0 -37
  146. package/dist/bundle/grants-SEWUYYH3.js +0 -105
  147. package/dist/bundle/oauth-MWBKBI4T.js +0 -22
  148. package/dist/bundle/prompt-OVYCGZB7.js +0 -17
  149. package/dist/bundle/server-EMWVVT2C.js +0 -70
  150. package/dist/bundle/store-maintenance-command-NRATYBWD.js +0 -60
  151. package/dist/bundle/tokens-XUKLM3SL.js +0 -103
  152. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-ZQ3GWKDQ.js} +0 -0
@@ -8,11 +8,18 @@ import {
8
8
  queryFieldsOf,
9
9
  timezoneOf,
10
10
  validateQuery
11
- } from "./chunk-NZ2EIZLX.js";
11
+ } from "./chunk-EOOGWUTP.js";
12
+ import {
13
+ isCliFailure,
14
+ isStoreDamage
15
+ } from "./chunk-E4SDKMBJ.js";
16
+ import {
17
+ refuseOwnerStoreInTests
18
+ } from "./chunk-AEX37ETW.js";
12
19
  import {
13
20
  singleLine,
14
21
  visibleControls
15
- } from "./chunk-6IBM4Z3V.js";
22
+ } from "./chunk-2HF2MRXI.js";
16
23
  import {
17
24
  STEPS,
18
25
  array,
@@ -20,6 +27,7 @@ import {
20
27
  defineSteps,
21
28
  integer,
22
29
  isoTime,
30
+ isoTimestamp,
23
31
  literal,
24
32
  maxValue,
25
33
  minLength,
@@ -30,21 +38,23 @@ import {
30
38
  pageSchema,
31
39
  picklist,
32
40
  pipe,
41
+ record,
33
42
  reference,
34
43
  safeParse,
35
44
  stepOf,
36
45
  strictObject,
37
46
  string,
38
- union
39
- } from "./chunk-VYXVPYA3.js";
47
+ union,
48
+ unknown
49
+ } from "./chunk-FEZF3TII.js";
40
50
  import {
41
51
  CliError
42
- } from "./chunk-WZ5XK74U.js";
52
+ } from "./chunk-4OSSOWDM.js";
43
53
  import {
44
54
  __name
45
55
  } from "./chunk-ZVVMGPBJ.js";
46
56
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/payment.js
57
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/payment.js
48
58
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
49
59
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
50
60
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -96,9 +106,9 @@ var validatePayment = /* @__PURE__ */ __name((input) => {
96
106
  if (!input || typeof input !== "object" || Array.isArray(input))
97
107
  return invalid("a payment is an object");
98
108
  const raw = input;
99
- const unknown = Object.keys(raw).filter((key) => !FIELDS.includes(key));
100
- if (unknown.length)
101
- return invalid(`a payment has no field ${unknown.join(", ")}; its fields are ${FIELDS.join(", ")}`);
109
+ const unknown2 = Object.keys(raw).filter((key) => !FIELDS.includes(key));
110
+ if (unknown2.length)
111
+ return invalid(`a payment has no field ${unknown2.join(", ")}; its fields are ${FIELDS.join(", ")}`);
102
112
  const currency = typeof raw.currency === "string" ? raw.currency.trim().toUpperCase() : "";
103
113
  if (!/^[A-Z]{3}$/.test(currency) || !CURRENCIES.has(currency))
104
114
  return invalid("a payment's currency is an ISO 4217 code, such as EUR or RUB");
@@ -138,7 +148,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
138
148
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
139
149
  }, "paymentTitle");
140
150
 
141
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/passage.js
151
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/passage.js
142
152
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
143
153
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
144
154
  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)))
@@ -151,7 +161,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
151
161
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
152
162
  }, "validateMeetingPassage");
153
163
 
154
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/reference.js
164
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/reference.js
155
165
  var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
156
166
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
157
167
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -188,7 +198,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
188
198
  }, "parseMeetingReference");
189
199
  var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
190
200
 
191
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/item.js
201
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/item.js
192
202
  var text = string();
193
203
  var count = pipe(number(), integer(), minValue(0));
194
204
  var MEETING_ISSUES = ["time_without_zone"];
@@ -253,7 +263,7 @@ var MEETING_QUERY = {
253
263
  })
254
264
  };
255
265
 
256
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/answers.js
266
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/answers.js
257
267
  var text2 = string();
258
268
  var count2 = pipe(number(), integer(), minValue(0));
259
269
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -488,7 +498,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
488
498
  };
489
499
  }, "meetingHitsList");
490
500
 
491
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
501
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
492
502
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
493
503
  const parsed = urlOf(url);
494
504
  if (!parsed)
@@ -522,7 +532,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
522
532
  }
523
533
  }, "urlOf");
524
534
 
525
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
535
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
526
536
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
527
537
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
528
538
  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");
@@ -541,7 +551,11 @@ var ENTRY_METADATA_KEYS = [
541
551
  "guestsCanSeeOtherGuests",
542
552
  "hangoutLink",
543
553
  "locked",
544
- "privateCopy"
554
+ "privateCopy",
555
+ // A phone call's, from a records import: the entry's other columns have no place for them.
556
+ "callDirection",
557
+ "callSeconds",
558
+ "callNumber"
545
559
  ];
546
560
  var entryMetadata = /* @__PURE__ */ __name((metadata) => {
547
561
  const kept = {};
@@ -555,7 +569,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
555
569
  return kept;
556
570
  }, "entryMetadata");
557
571
 
558
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
572
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
559
573
  import { createHash } from "node:crypto";
560
574
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
561
575
  reference: cue2.reference,
@@ -569,7 +583,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
569
583
  text: cue2.text
570
584
  })).digest("hex"), "meetingCueFingerprint");
571
585
 
572
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
586
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
573
587
  var EVENT_QUERY = defineQuery({
574
588
  entity: "event",
575
589
  backend: "sql",
@@ -585,7 +599,7 @@ var EVENT_QUERY = defineQuery({
585
599
  ]
586
600
  });
587
601
 
588
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
602
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
589
603
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
590
604
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
591
605
  if (entry.recurrenceEndsAt !== null)
@@ -608,7 +622,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
608
622
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
609
623
  }, "entryInWindow");
610
624
 
611
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/events.js
625
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/events.js
612
626
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
613
627
  const current = await store.meeting(details.meeting.id);
614
628
  if (!current)
@@ -623,7 +637,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
623
637
  endsAt: meeting2.endedAt ?? meeting2.startedAt
624
638
  });
625
639
  if (candidates.length > 1) {
626
- await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id: id4 }) => id4), now);
640
+ await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id: id5 }) => id5), now);
627
641
  return null;
628
642
  }
629
643
  let event2 = candidates[0];
@@ -651,7 +665,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
651
665
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
652
666
  }, "linkEvent");
653
667
 
654
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
668
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
655
669
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
656
670
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
657
671
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -675,7 +689,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
675
689
  };
676
690
  }, "validateMeetingParticipantSearch");
677
691
 
678
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/reads.js
692
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/reads.js
679
693
  var MeetingError = class extends CliError {
680
694
  static {
681
695
  __name(this, "MeetingError");
@@ -702,8 +716,8 @@ var validateFilter = /* @__PURE__ */ __name((filter) => {
702
716
  if (value !== void 0 && (!Number.isSafeInteger(value) || value < 0))
703
717
  throw new MeetingError("validation_error", "expected a nonnegative integer");
704
718
  }, "validateFilter");
705
- var meetingShow = /* @__PURE__ */ __name(async (store, id4, accountId) => {
706
- const details = await store.meeting(positiveInteger(id4));
719
+ var meetingShow = /* @__PURE__ */ __name(async (store, id5, accountId) => {
720
+ const details = await store.meeting(positiveInteger(id5));
707
721
  if (!details || accountId !== void 0 && details.meeting.accountId !== accountId)
708
722
  throw new MeetingError("not_found", "meeting not found");
709
723
  return details;
@@ -794,20 +808,20 @@ var ownerOf = /* @__PURE__ */ __name(async (store, accountId) => {
794
808
  throw new MeetingError("not_found", `meeting account ${accountId} is not in the store`);
795
809
  return owner;
796
810
  }, "ownerOf");
797
- var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store, id4, accountId) => {
798
- const details = await meetingShow(store, id4, accountId);
811
+ var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
812
+ const details = await meetingShow(store, id5, accountId);
799
813
  return { item: meetingDetailsItem(details, await ownerOf(store, details.meeting.accountId)) };
800
814
  }, "meetingDetailsAnswer");
801
- var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store, id4, accountId, options = {}) => {
802
- const details = await meetingShow(store, id4, accountId);
815
+ var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store, id5, accountId, options = {}) => {
816
+ const details = await meetingShow(store, id5, accountId);
803
817
  return wholeList(details.transcripts.filter((t) => (options.history || t.transcript.supersededAt === null) && t.transcript.deletedAt === null).map((t) => meetingTranscriptItem(details.meeting.accountId, t.transcript, t.rows)));
804
818
  }, "meetingTranscriptAnswer");
805
- var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id4, accountId) => {
806
- const details = await meetingShow(store, id4, accountId);
819
+ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
820
+ const details = await meetingShow(store, id5, accountId);
807
821
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
808
822
  }, "meetingSummaryAnswer");
809
823
 
810
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/export.js
824
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/export.js
811
825
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
812
826
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
813
827
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -850,10 +864,10 @@ var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
850
864
  }
851
865
  return details.transcripts.filter((part) => part.transcript.supersededAt === null && part.transcript.deletedAt === null);
852
866
  }, "transcriptsOf");
853
- var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
867
+ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
854
868
  if (options.format !== "markdown" && options.format !== "vtt")
855
869
  throw new MeetingError("validation_error", "export format must be markdown or vtt");
856
- const details = await meetingShow(store, id4, options.accountId);
870
+ const details = await meetingShow(store, id5, options.accountId);
857
871
  const transcripts = transcriptsOf(details, options.transcriptId);
858
872
  let content;
859
873
  if (options.format === "vtt") {
@@ -903,13 +917,13 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
903
917
  };
904
918
  }, "exportMeeting");
905
919
 
906
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
920
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
907
921
  import { createHash as createHash2 } from "node:crypto";
908
922
 
909
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
923
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
910
924
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
911
925
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
912
- throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
926
+ throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
913
927
  const date = value.slice(0, 10);
914
928
  const instant = Date.parse(`${date}T00:00:00Z`);
915
929
  if (!Number.isFinite(instant) || new Date(instant).toISOString().slice(0, 10) !== date)
@@ -917,21 +931,44 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
917
931
  return new Date(value).toISOString();
918
932
  }, "meetingTimestamp");
919
933
 
920
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
934
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
921
935
  var TASK_TYPES = ["bug", "feature", "chore"];
922
936
  var invalid3 = /* @__PURE__ */ __name((message) => {
923
937
  throw new CliError("validation_error", message);
924
938
  }, "invalid");
925
- var text3 = /* @__PURE__ */ __name((value, limit) => {
939
+ var findingText = /* @__PURE__ */ __name((value, limit) => {
926
940
  if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > limit)
927
941
  return invalid3(`finding text must contain 1\u2013${limit} characters without NUL`);
928
942
  return value.trim();
929
- }, "text");
943
+ }, "findingText");
930
944
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
931
- var fields = /* @__PURE__ */ __name((value, allowed, noun) => {
932
- if (Object.keys(value).some((key) => !allowed.includes(key)))
933
- invalid3(`unknown ${noun} field`);
934
- }, "fields");
945
+ var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
946
+ var findingWhere = /* @__PURE__ */ __name((of) => {
947
+ const id5 = typeof of.id === "string" ? of.id : null;
948
+ const kind = typeof of.kind === "string" ? of.kind : null;
949
+ return {
950
+ where: id5 || kind ? ` in ${[id5, kind && `(${kind})`].filter(Boolean).join(" ")}` : "",
951
+ named: { ...id5 ? { finding: id5 } : {}, ...kind ? { kind } : {} }
952
+ };
953
+ }, "findingWhere");
954
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
955
+ const unknown2 = Object.keys(value).filter((key) => !allowed.includes(key));
956
+ if (!unknown2.length)
957
+ return;
958
+ const fields2 = unknown2.map(snakeCase);
959
+ const takes = allowed.map(snakeCase);
960
+ const { where, named } = findingWhere(of);
961
+ throw new CliError("validation_error", `unknown ${noun} field${fields2.length > 1 ? "s" : ""} ${fields2.join(", ")}${where}; it takes ${takes.join(", ")}`, { reason: "finding.unknown-field", fields: fields2, allowed: takes, ...named });
962
+ }, "findingFields");
963
+ var findingNeeds = /* @__PURE__ */ __name((value, needed, noun) => {
964
+ const missing = needed.filter((key) => value[key] === void 0);
965
+ if (!missing.length)
966
+ return;
967
+ const fields2 = missing.map(snakeCase);
968
+ const needs = needed.map(snakeCase);
969
+ const { where, named } = findingWhere(value);
970
+ throw new CliError("validation_error", `missing ${noun} field${fields2.length > 1 ? "s" : ""} ${fields2.join(", ")}${where}; it needs ${needs.join(", ")}`, { reason: "finding.missing-field", fields: fields2, needs, ...named });
971
+ }, "findingNeeds");
935
972
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
936
973
  var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
937
974
  if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
@@ -939,7 +976,7 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
939
976
  const evidence = raw.map((item) => {
940
977
  if (!item || typeof item !== "object")
941
978
  return invalid3("finding evidence is a reference and fingerprint");
942
- fields(item, ["reference", "fingerprint"], rules.singular);
979
+ findingFields(item, ["reference", "fingerprint"], rules.singular);
943
980
  if (typeof item.reference !== "string" || typeof item.fingerprint !== "string")
944
981
  return invalid3("evidence requires a reference and fingerprint");
945
982
  const reference2 = rules.reference(item.reference);
@@ -952,40 +989,40 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
952
989
  return evidence;
953
990
  }, "validEvidence");
954
991
  var findingId = /* @__PURE__ */ __name((raw, ids2) => {
955
- const id4 = findingText(raw, 64);
956
- if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id4) || ids2.has(id4))
992
+ const id5 = findingText(raw, 64);
993
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id5) || ids2.has(id5))
957
994
  return invalid3("finding IDs must be unique simple keys");
958
- ids2.add(id4);
959
- return id4;
995
+ ids2.add(id5);
996
+ return id5;
960
997
  }, "findingId");
961
998
  var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
962
999
  if (!finding || typeof finding !== "object")
963
1000
  return invalid3("a finding is an object");
964
- const id4 = findingId(finding.id, ids2);
965
- const project = finding.project === void 0 && rules.anySubject ? void 0 : text3(finding.project, 64);
966
- if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
1001
+ const id5 = findingId(finding.id, ids2);
1002
+ const project2 = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
1003
+ if (project2 !== void 0 && !/^project:[1-9]\d*$/.test(project2))
967
1004
  return invalid3("a finding names a project reference");
968
- if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(text3(finding.subject, 80))))
1005
+ if (finding.subject !== void 0 && (!rules.anySubject || !SUBJECT.test(findingText(finding.subject, 80))))
969
1006
  return invalid3("a finding's subject is a person:, organization:, task: or project: reference");
970
- if (finding.kind === "task" && project === void 0 && !rules.inboxTasks)
1007
+ if (finding.kind === "task" && project2 === void 0 && !rules.inboxTasks)
971
1008
  return invalid3("a task finding names the project the task goes in");
972
1009
  const evidence = validEvidence(finding.evidence, rules);
973
1010
  const base = {
974
- id: id4,
975
- ...project === void 0 ? {} : { project },
1011
+ id: id5,
1012
+ ...project2 === void 0 ? {} : { project: project2 },
976
1013
  ...finding.subject === void 0 ? {} : { subject: finding.subject },
977
1014
  evidence
978
1015
  };
979
1016
  if (finding.kind === "fact") {
980
- fields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
1017
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "type", "statement"], rules.singular);
981
1018
  if (finding.type === "payment")
982
1019
  return invalid3("a payment is a finding of kind payment; money is a payments row, not a fact");
983
1020
  if (!FACT_TYPES.includes(finding.type))
984
1021
  return invalid3("unknown fact finding type");
985
- return { ...base, kind: "fact", type: finding.type, statement: text3(finding.statement, 2e3) };
1022
+ return { ...base, kind: "fact", type: finding.type, statement: findingText(finding.statement, 2e3) };
986
1023
  }
987
1024
  if (finding.kind === "payment" && rules.payments) {
988
- fields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
1025
+ findingFields(finding, ["id", "project", "subject", "evidence", "kind", "statement", "payment", "supersedes"], rules.singular);
989
1026
  if (finding.supersedes !== void 0 && !/^invoice:[1-9]\d*$/.test(String(finding.supersedes)))
990
1027
  return invalid3("a payment finding supersedes an invoice: reference, the expected payment it settles or voids");
991
1028
  const payment = validatePayment(finding.payment);
@@ -998,14 +1035,14 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
998
1035
  return {
999
1036
  ...base,
1000
1037
  kind: "payment",
1001
- ...finding.statement === void 0 ? {} : { statement: text3(finding.statement, 2e3) },
1038
+ ...finding.statement === void 0 ? {} : { statement: findingText(finding.statement, 2e3) },
1002
1039
  payment,
1003
1040
  ...finding.supersedes === void 0 ? {} : { supersedes: finding.supersedes }
1004
1041
  };
1005
1042
  }
1006
1043
  if (finding.kind !== "task")
1007
1044
  return invalid3(`a finding is a fact${rules.payments ? ", payment" : ""} or task`);
1008
- fields(finding, [
1045
+ findingFields(finding, [
1009
1046
  "id",
1010
1047
  "project",
1011
1048
  "evidence",
@@ -1023,48 +1060,51 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1023
1060
  return invalid3("a task finding type is bug, chore or feature");
1024
1061
  if (!["explicit", "inferred"].includes(finding.commitment))
1025
1062
  return invalid3("task commitment must be explicit or inferred");
1026
- if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1027
- return invalid3("optional dates and assignees require their supporting evidence");
1063
+ if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0))
1064
+ return invalid3(`due_at comes with due_evidence: the ${rules.cited} references of this finding's evidence that give the date, as a list of strings such as ["<reference>"]`);
1065
+ if (finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1066
+ return invalid3(`assignee comes with assignee_evidence: the ${rules.cited} references of this finding's evidence that name them, as a list of strings such as ["<reference>"]`);
1028
1067
  if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1029
1068
  return invalid3("an assignee must be a person reference");
1030
1069
  return {
1031
1070
  ...base,
1032
1071
  kind: "task",
1033
1072
  type: finding.type,
1034
- title: text3(finding.title, 300),
1035
- reason: text3(finding.reason, 2e3),
1073
+ title: findingText(finding.title, 300),
1074
+ reason: findingText(finding.reason, 2e3),
1036
1075
  commitment: finding.commitment,
1037
1076
  ...finding.dueAt === void 0 ? {} : {
1038
- dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
1039
- dueEvidence: support(finding.dueEvidence, evidence)
1077
+ dueAt: meetingTimestamp(finding.dueAt, "a task's due_at"),
1078
+ dueEvidence: support(finding.dueEvidence, evidence, "due_evidence")
1040
1079
  },
1041
- ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence, evidence) }
1080
+ ...finding.assignee === void 0 ? {} : {
1081
+ assignee: finding.assignee,
1082
+ assigneeEvidence: support(finding.assigneeEvidence, evidence, "assignee_evidence")
1083
+ }
1042
1084
  };
1043
1085
  }, "validateFinding");
1044
- var support = /* @__PURE__ */ __name((value, evidence) => {
1086
+ var support = /* @__PURE__ */ __name((value, evidence, field) => {
1045
1087
  if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1046
- return invalid3("date and assignee support must cite the finding's evidence");
1088
+ return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
1047
1089
  return [...new Set(value)].sort();
1048
1090
  }, "support");
1049
1091
  var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1050
1092
  if (!input || typeof input !== "object" || Buffer.byteLength(JSON.stringify(input), "utf8") > 65536)
1051
1093
  return invalid3(`${rules.plural} take at most 65536 UTF-8 bytes`);
1052
- fields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1094
+ findingFields(input, ["schemaVersion", "key", "extractor", "findings"], rules.singular);
1053
1095
  if (input.schemaVersion !== 1 || !Array.isArray(input.findings) || input.findings.length < 1 || input.findings.length > most)
1054
1096
  return invalid3(`schemaVersion 1 takes 1\u2013${most} ${rules.plural}`);
1055
- const key = text3(input.key, 64);
1097
+ const key = findingText(input.key, 64);
1056
1098
  if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(key))
1057
1099
  return invalid3("a findings key uses letters, digits, dot, colon, underscore or hyphen");
1058
1100
  const ids2 = /* @__PURE__ */ new Set();
1059
1101
  const findings = input.findings.map((finding) => one(finding, ids2));
1060
- return { schemaVersion: 1, key, extractor: text3(input.extractor, 200), findings };
1102
+ return { schemaVersion: 1, key, extractor: findingText(input.extractor, 200), findings };
1061
1103
  }, "validateBatch");
1062
1104
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1063
- var findingText = /* @__PURE__ */ __name((value, limit) => text3(value, limit), "findingText");
1064
- var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => fields(value, allowed, noun), "findingFields");
1065
1105
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1066
1106
 
1067
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1107
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1068
1108
  var MEETING_FINDINGS_KIND = "meeting_findings";
1069
1109
  var cue = /* @__PURE__ */ __name((raw) => {
1070
1110
  const reference2 = canonicalMeetingReference(raw);
@@ -1075,7 +1115,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1075
1115
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1076
1116
  var meetingFindingFingerprint = findingFingerprint;
1077
1117
 
1078
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1118
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1079
1119
  var context = {
1080
1120
  command: "search meetings",
1081
1121
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1137,6 +1177,7 @@ var MEETING_FIELDS = defineQuery({
1137
1177
  ]
1138
1178
  });
1139
1179
  var LIFTED = /* @__PURE__ */ new Set(["date", "project", "tag", "topic"]);
1180
+ var MEETING_FIELD_NAMES = new Set(MEETING_FIELDS.fields.map(({ name }) => name));
1140
1181
  var liftMeetingFields = /* @__PURE__ */ __name((query, request, now) => {
1141
1182
  let ast;
1142
1183
  try {
@@ -1194,7 +1235,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
1194
1235
  return { version: 1, language: "lucene-v1", root };
1195
1236
  }, "meetingWordsQuery");
1196
1237
 
1197
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/language.js
1238
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/language.js
1198
1239
  var LATIN_WORDS = {
1199
1240
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1200
1241
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1243,7 +1284,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1243
1284
  return null;
1244
1285
  }, "transcriptLanguage");
1245
1286
 
1246
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1287
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1247
1288
  var contentHash = /* @__PURE__ */ __name(async (text7) => {
1248
1289
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
1249
1290
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1274,13 +1315,13 @@ var transcriptInput = /* @__PURE__ */ __name(async (lines, participants, source,
1274
1315
  }))
1275
1316
  }), "transcriptInput");
1276
1317
  var timestamp2 = /* @__PURE__ */ __name((value) => {
1277
- const time = Date.parse(value);
1278
- if (!Number.isFinite(time))
1318
+ const time2 = Date.parse(value);
1319
+ if (!Number.isFinite(time2))
1279
1320
  throw new Error("Invalid meeting timestamp");
1280
- return time;
1321
+ return time2;
1281
1322
  }, "timestamp");
1282
1323
 
1283
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1324
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
1284
1325
  var TranscriptTextError = class extends Error {
1285
1326
  static {
1286
1327
  __name(this, "TranscriptTextError");
@@ -1335,7 +1376,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1335
1376
  return { header, lines };
1336
1377
  }, "parseTranscriptText");
1337
1378
 
1338
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1379
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
1339
1380
  var VttError = class extends Error {
1340
1381
  static {
1341
1382
  __name(this, "VttError");
@@ -1387,7 +1428,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1387
1428
  return cues;
1388
1429
  }, "parseVtt");
1389
1430
 
1390
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/import.js
1431
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/import.js
1391
1432
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1392
1433
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1393
1434
  for (const file of files) {
@@ -1420,10 +1461,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
1420
1461
  return report;
1421
1462
  }, "importFiles");
1422
1463
 
1423
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/links.js
1464
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/links.js
1424
1465
  var CHAT_MESSAGES_READ = 1e5;
1425
1466
 
1426
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1467
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/provider.js
1427
1468
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
1428
1469
  const provider = scope2?.provider;
1429
1470
  const account = scope2?.account;
@@ -1432,7 +1473,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
1432
1473
  return Object.freeze({ provider, account });
1433
1474
  }, "snapshotMeetingScope");
1434
1475
 
1435
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1476
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
1436
1477
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1437
1478
  if (typeof value !== "string" || !value.trim())
1438
1479
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -1498,29 +1539,29 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
1498
1539
  return { applied: true, value: await dispatch(signal) };
1499
1540
  }, "dispatchMeetingMutation");
1500
1541
 
1501
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1542
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
1502
1543
  var id = /* @__PURE__ */ __name((value) => {
1503
1544
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
1504
1545
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
1505
1546
  return value;
1506
1547
  }, "id");
1507
- var text4 = /* @__PURE__ */ __name((value, max) => {
1548
+ var text3 = /* @__PURE__ */ __name((value, max) => {
1508
1549
  if (typeof value !== "string" || !value.trim() || value.length > max || value.includes("\0"))
1509
1550
  throw new CliError("validation_error", `meeting context text must contain 1\u2013${max} characters without NUL`);
1510
1551
  return value.trim();
1511
1552
  }, "text");
1512
1553
  var uid = /* @__PURE__ */ __name((value) => {
1513
- const result = text4(value, 100);
1554
+ const result = text3(value, 100);
1514
1555
  if (!/^[1-9]\d*$/.test(result) || !Number.isSafeInteger(Number(result)))
1515
1556
  throw new CliError("validation_error", "person UID must be a positive integer");
1516
1557
  return result;
1517
1558
  }, "uid");
1518
- var strings = /* @__PURE__ */ __name((value, count6, length) => {
1519
- if (!Array.isArray(value) || value.length < 1 || value.length > count6)
1520
- throw new CliError("validation_error", `meeting context list must contain 1\u2013${count6} entries`);
1521
- return Object.freeze([...new Set(value.map((entry) => text4(entry, length)))]);
1559
+ var strings = /* @__PURE__ */ __name((value, count7, length) => {
1560
+ if (!Array.isArray(value) || value.length < 1 || value.length > count7)
1561
+ throw new CliError("validation_error", `meeting context list must contain 1\u2013${count7} entries`);
1562
+ return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
1522
1563
  }, "strings");
1523
- var fields2 = {
1564
+ var fields = {
1524
1565
  "note.add": ["text", "title"],
1525
1566
  "tags.add": ["tags"],
1526
1567
  "tags.remove": ["tags"],
@@ -1530,14 +1571,14 @@ var fields2 = {
1530
1571
  "person.link": ["participantId", "personUid", "targetAccountIds", "expectedPersonUid"]
1531
1572
  };
1532
1573
  var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1533
- if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields2, change.action) || Object.keys(change).some((key) => key !== "action" && !fields2[change.action].includes(key)))
1574
+ if (!change || typeof change !== "object" || Array.isArray(change) || !Object.hasOwn(fields, change.action) || Object.keys(change).some((key) => key !== "action" && !fields[change.action].includes(key)))
1534
1575
  throw new CliError("validation_error", "unsupported meeting context change");
1535
1576
  switch (change.action) {
1536
1577
  case "note.add":
1537
1578
  return Object.freeze({
1538
1579
  action: change.action,
1539
- text: text4(change.text, 1e5),
1540
- ...change.title === void 0 ? {} : { title: text4(change.title, 500) }
1580
+ text: text3(change.text, 1e5),
1581
+ ...change.title === void 0 ? {} : { title: text3(change.title, 500) }
1541
1582
  });
1542
1583
  case "tags.add":
1543
1584
  case "tags.remove":
@@ -1547,11 +1588,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1547
1588
  throw new CliError("validation_error", "memory kind and explicit personal/work scope are required");
1548
1589
  return Object.freeze({
1549
1590
  action: change.action,
1550
- body: text4(change.body, 2e4),
1591
+ body: text3(change.body, 2e4),
1551
1592
  kind: change.kind,
1552
1593
  scope: change.scope,
1553
1594
  evidence: strings(change.evidence, 100, 4e3),
1554
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1595
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1555
1596
  });
1556
1597
  }
1557
1598
  case "fact.add": {
@@ -1559,11 +1600,11 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
1559
1600
  throw new CliError("validation_error", `fact type (${FACT_TYPES.join(", ")}) and explicit personal/work scope are required`);
1560
1601
  return Object.freeze({
1561
1602
  action: change.action,
1562
- statement: text4(change.statement, 2e4),
1603
+ statement: text3(change.statement, 2e4),
1563
1604
  type: change.type,
1564
1605
  scope: change.scope,
1565
1606
  evidence: strings(change.evidence, 100, 4e3),
1566
- ...change.subject === void 0 ? {} : { subject: text4(change.subject, 4e3) }
1607
+ ...change.subject === void 0 ? {} : { subject: text3(change.subject, 4e3) }
1567
1608
  });
1568
1609
  }
1569
1610
  case "event.link":
@@ -1590,7 +1631,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
1590
1631
  const fixed = snapshotMeetingScope(scope2);
1591
1632
  const account = id(accountId);
1592
1633
  const actions = Object.freeze([...new Set(ports.actions)]);
1593
- if (actions.some((action) => !Object.hasOwn(fields2, action)))
1634
+ if (actions.some((action) => !Object.hasOwn(fields, action)))
1594
1635
  throw new CliError("validation_error", "unsupported meeting context capability");
1595
1636
  const apply = ports.apply.bind(ports);
1596
1637
  return {
@@ -1620,7 +1661,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
1620
1661
  };
1621
1662
  }, "createMeetingContext");
1622
1663
 
1623
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1664
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
1624
1665
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1625
1666
  if (!original || typeof original !== "object" || Array.isArray(original))
1626
1667
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -1645,7 +1686,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1645
1686
  return { ...input, limit, maxReadBytes };
1646
1687
  }, "validateMeetingPreparationContext");
1647
1688
 
1648
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1689
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
1649
1690
  var count3 = pipe(number(), integer(), minValue(0));
1650
1691
  var id2 = pipe(string(), minLength(1));
1651
1692
  var meetingProjectEvidence = strictObject({
@@ -1766,7 +1807,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
1766
1807
  };
1767
1808
  }, "meetingProjectEvidenceAnswer");
1768
1809
 
1769
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1810
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
1770
1811
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1771
1812
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
1772
1813
  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) || [
@@ -1786,7 +1827,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1786
1827
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
1787
1828
  }, "validateMeetingHitSearch");
1788
1829
 
1789
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
1830
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
1790
1831
  var ids = {
1791
1832
  meeting_id: "meetingId",
1792
1833
  identity_id: "participantIdentityId",
@@ -1822,8 +1863,8 @@ var MEETING_PROJECT_EVIDENCE_QUERY = defineQuery({
1822
1863
  ]
1823
1864
  });
1824
1865
  var requestKeys = /* @__PURE__ */ new Set(["query", "limit", "cursor", "maxReadBytes", "signal"]);
1825
- var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {}, now = Date.now()) => {
1826
- if (!request || typeof request !== "object" || Array.isArray(request) || Object.keys(request).some((key) => !requestKeys.has(key)) || typeof project !== "string" || !project.trim() || project.length > 200 || /[\p{Cc}\p{Cf}]/u.test(project) || request.query !== void 0 && typeof request.query !== "string")
1866
+ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request = {}, now = Date.now()) => {
1867
+ if (!request || typeof request !== "object" || Array.isArray(request) || Object.keys(request).some((key) => !requestKeys.has(key)) || typeof project2 !== "string" || !project2.trim() || project2.length > 200 || /[\p{Cc}\p{Cf}]/u.test(project2) || request.query !== void 0 && typeof request.query !== "string")
1827
1868
  throw new CliError("validation_error", "expected an existing project and bounded evidence arguments");
1828
1869
  if (request.query !== void 0 && new TextEncoder().encode(request.query).byteLength > 8192 || [request.limit, request.maxReadBytes].some((value) => value !== void 0 && typeof value !== "number"))
1829
1870
  throw new CliError("validation_error", "invalid project evidence query or budget");
@@ -1871,26 +1912,26 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
1871
1912
  options.until = range.upper - (range.upper_inclusive ? 0 : 1);
1872
1913
  frozen.push(`started_at:[${options.since === void 0 ? "*" : `"${new Date(options.since).toISOString()}"`} TO ${options.until === void 0 ? "*" : `"${new Date(options.until).toISOString()}"`}]`);
1873
1914
  }
1874
- validateMeetingHitSearch(project, options);
1915
+ validateMeetingHitSearch(project2, options);
1875
1916
  if (options.cursor !== void 0 && (typeof options.cursor !== "string" || !/^[A-Za-z0-9_-]{1,4096}$/.test(options.cursor)))
1876
1917
  throw new CliError("validation_error", "invalid project evidence cursor");
1877
- return { project: project.trim(), options, query: frozen.join(" AND ") };
1918
+ return { project: project2.trim(), options, query: frozen.join(" AND ") };
1878
1919
  }, "prepareMeetingProjectEvidence");
1879
1920
 
1880
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
1881
- var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
1882
- const prepared = prepareMeetingProjectEvidence(project, request, now);
1921
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
1922
+ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
1923
+ const prepared = prepareMeetingProjectEvidence(project2, request, now);
1883
1924
  const page = await read(prepared.project, prepared.options);
1884
1925
  prepared.options.signal?.throwIfAborted();
1885
1926
  return meetingProjectEvidenceAnswer(page, prepared);
1886
1927
  }, "readMeetingProjectEvidence");
1887
1928
 
1888
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/pull.js
1929
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/pull.js
1889
1930
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
1890
- const { identityExternalId, ...fields3 } = p;
1931
+ const { identityExternalId, ...fields2 } = p;
1891
1932
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
1892
1933
  return {
1893
- ...fields3,
1934
+ ...fields2,
1894
1935
  identity: {
1895
1936
  provider,
1896
1937
  externalId,
@@ -1900,32 +1941,55 @@ var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, posit
1900
1941
  }
1901
1942
  };
1902
1943
  }, "participantInput");
1944
+ var startOf = /* @__PURE__ */ __name((m) => {
1945
+ const at = Date.parse(m.occurrence.startedAt);
1946
+ return Number.isFinite(at) ? at : Number.POSITIVE_INFINITY;
1947
+ }, "startOf");
1903
1948
  var pull = /* @__PURE__ */ __name(async (source, store, options) => {
1904
1949
  const now = options.now ?? Date.now();
1905
- const lookbackMs = options.lookbackMs ?? 0;
1906
- if (!Number.isSafeInteger(lookbackMs) || lookbackMs < 0 || lookbackMs > 31 * 864e5)
1907
- throw new Error("lookbackMs must be an integer from 0 through 31 days");
1908
- const since = options.since ?? await store.cursor(options.accountId) ?? new Date(now - 30 * 864e5).toISOString();
1950
+ for (const [name, ms] of [
1951
+ ["lookbackMs", options.lookbackMs ?? 0],
1952
+ ["overlapMs", source.overlapMs ?? 0]
1953
+ ])
1954
+ if (!Number.isSafeInteger(ms) || ms < 0 || ms > 31 * 864e5)
1955
+ throw new Error(`${name} must be an integer from 0 through 31 days`);
1956
+ const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
1957
+ const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
1958
+ const since = options.since ?? cursor ?? new Date(now - 30 * 864e5).toISOString();
1909
1959
  timestamp2(since);
1910
1960
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1911
1961
  let failed = false;
1962
+ let firstFailed;
1912
1963
  const from = timestamp2(since) - lookbackMs;
1913
- const meetings = await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString());
1914
- for (const m of meetings) {
1915
- const id4 = m.occurrence.id;
1964
+ const meetings = (await source.meetings(lookbackMs === 0 ? since : new Date(from).toISOString())).toSorted((a, b) => startOf(a) - startOf(b));
1965
+ for (const [index, m] of meetings.entries()) {
1966
+ const stop = options.budget?.take() ?? null;
1967
+ if (stop) {
1968
+ report.stopped = stop;
1969
+ report.remaining = meetings.length - index;
1970
+ const reached = Math.min(startOf(m), firstFailed ?? Number.POSITIVE_INFINITY);
1971
+ if (Number.isFinite(reached) && reached > timestamp2(since))
1972
+ await store.setCursor(options.accountId, new Date(reached).toISOString(), now);
1973
+ return report;
1974
+ }
1975
+ const id5 = m.occurrence.id;
1976
+ const failedHere = /* @__PURE__ */ __name(() => {
1977
+ failed = true;
1978
+ firstFailed ??= startOf(m);
1979
+ }, "failedHere");
1916
1980
  const read = /* @__PURE__ */ __name(async (part, call) => {
1917
1981
  try {
1918
1982
  return await call();
1919
1983
  } catch (error) {
1920
- failed = true;
1984
+ failedHere();
1921
1985
  const message = error instanceof Error ? error.message : "could not be read";
1922
- report.warnings.push({ externalId: id4, message: `${part}: ${message}` });
1986
+ report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
1923
1987
  return void 0;
1924
1988
  }
1925
1989
  }, "read");
1926
1990
  try {
1927
- const sourceParticipants = await read("participants", () => source.participants(id4));
1928
- const participants = (sourceParticipants ?? []).map((p, i) => participantInput(p, source.provider, id4, i, options.accountId));
1991
+ const sourceParticipants = await read("participants", () => source.participants(id5));
1992
+ const participants = (sourceParticipants ?? []).map((p, i) => participantInput(p, source.provider, id5, i, options.accountId));
1929
1993
  const names = /* @__PURE__ */ new Map();
1930
1994
  for (const p of participants)
1931
1995
  if (p.displayName !== null) {
@@ -1934,18 +1998,18 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
1934
1998
  names.set(p.displayName, identities);
1935
1999
  }
1936
2000
  if ([...names.values()].some((ids2) => ids2.size > 1))
1937
- report.warnings.push({ externalId: id4, message: "Participant names are ambiguous" });
1938
- const lines = await read("transcript", () => source.transcript(id4));
1939
- const chat = await read("chat", () => source.chat(id4));
1940
- const summary = await read("summary", () => source.summary(id4));
1941
- const attachments = await read("files", () => source.files(id4));
2001
+ report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
2002
+ const lines = await read("transcript", () => source.transcript(id5));
2003
+ const chat = await read("chat", () => source.chat(id5));
2004
+ const summary = await read("summary", () => source.summary(id5));
2005
+ const attachments = await read("files", () => source.files(id5));
1942
2006
  const startedAt = timestamp2(m.occurrence.startedAt);
1943
2007
  const endedAt = m.occurrence.endedAt === null ? null : timestamp2(m.occurrence.endedAt);
1944
2008
  if (endedAt !== null && endedAt < startedAt)
1945
2009
  throw new Error("Meeting ends before it starts");
1946
2010
  const meeting2 = {
1947
2011
  accountId: options.accountId,
1948
- externalId: id4,
2012
+ externalId: id5,
1949
2013
  title: m.occurrence.title,
1950
2014
  description: m.description ?? null,
1951
2015
  location: m.location ?? null,
@@ -2015,8 +2079,8 @@ unlinked`, format)],
2015
2079
  report.transcriptRows += lines?.length ?? 0;
2016
2080
  report.summaries += summary ? 1 : 0;
2017
2081
  } catch (error) {
2018
- failed = true;
2019
- report.warnings.push({ externalId: id4, message: error instanceof Error ? error.message : "Meeting pull failed" });
2082
+ failedHere();
2083
+ report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
2020
2084
  }
2021
2085
  }
2022
2086
  if (!failed)
@@ -2024,47 +2088,47 @@ unlinked`, format)],
2024
2088
  return report;
2025
2089
  }, "pull");
2026
2090
 
2027
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2028
- var text5 = string();
2091
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2092
+ var text4 = string();
2029
2093
  var count4 = pipe(number(), integer(), minValue(0));
2030
2094
  var id3 = pipe(number(), integer(), minValue(1));
2031
2095
  var iso3 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
2032
2096
  var meetingReview = strictObject({
2033
2097
  ref: reference,
2034
2098
  id: pipe(string(), minLength(1)),
2035
- title: nullable(text5),
2099
+ title: nullable(text4),
2036
2100
  started_at: nullable(isoTime),
2037
2101
  duration_ms: nullable(count4),
2038
2102
  participants_count: nullable(count4),
2039
- projects: array(text5),
2103
+ projects: array(text4),
2040
2104
  /** Null when the meeting has no current transcript. */
2041
2105
  transcript: nullable(strictObject({ lines: count4, words: count4 })),
2042
2106
  /** The three who talked longest. */
2043
- speakers: array(strictObject({ name: nullable(text5), talk_ms: count4 })),
2107
+ speakers: array(strictObject({ name: nullable(text4), talk_ms: count4 })),
2044
2108
  /** The newest stored summary; null when there is none. */
2045
2109
  summary: nullable(strictObject({
2046
- source: text5,
2047
- title: nullable(text5),
2048
- overview: nullable(text5),
2049
- next_steps: array(text5),
2050
- url: nullable(text5)
2110
+ source: text4,
2111
+ title: nullable(text4),
2112
+ overview: nullable(text4),
2113
+ next_steps: array(text4),
2114
+ url: nullable(text4)
2051
2115
  }))
2052
2116
  });
2053
2117
  var meetingLink = strictObject({
2054
- url: text5,
2055
- domain: nullable(text5),
2118
+ url: text4,
2119
+ domain: nullable(text4),
2056
2120
  /** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
2057
- document_id: nullable(text5),
2121
+ document_id: nullable(text4),
2058
2122
  count: count4,
2059
2123
  first_at: isoTime,
2060
2124
  last_at: isoTime,
2061
- senders: array(text5),
2062
- meetings: array(strictObject({ ref: reference, title: nullable(text5) }))
2125
+ senders: array(text4),
2126
+ meetings: array(strictObject({ ref: reference, title: nullable(text4) }))
2063
2127
  });
2064
2128
  var meetingSpeaker = strictObject({
2065
2129
  /** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
2066
- key: text5,
2067
- name: nullable(text5),
2130
+ key: text4,
2131
+ name: nullable(text4),
2068
2132
  person_id: nullable(id3),
2069
2133
  identity_id: nullable(id3),
2070
2134
  meetings: count4,
@@ -2075,18 +2139,18 @@ var meetingSpeaker = strictObject({
2075
2139
  share: pipe(number(), minValue(0), maxValue(1))
2076
2140
  });
2077
2141
  var meetingStats = strictObject({
2078
- time_zone: text5,
2142
+ time_zone: text4,
2079
2143
  meetings: count4,
2080
2144
  lines: count4,
2081
2145
  words: count4,
2082
2146
  talk_ms: count4,
2083
2147
  /** `week_start` is the Monday, as a date in `time_zone`. */
2084
- weeks: array(strictObject({ week_start: text5, meetings: count4, talk_ms: count4 })),
2148
+ weeks: array(strictObject({ week_start: text4, meetings: count4, talk_ms: count4 })),
2085
2149
  top_speakers: array(meetingSpeaker)
2086
2150
  });
2087
2151
  var meetingCountsRow = strictObject({
2088
- key: text5,
2089
- name: nullable(text5),
2152
+ key: text4,
2153
+ name: nullable(text4),
2090
2154
  meetings: count4,
2091
2155
  minutes: count4,
2092
2156
  mean_minutes: nullable(number()),
@@ -2106,13 +2170,13 @@ var meetingParticipants = strictObject({
2106
2170
  schema_version: literal(1),
2107
2171
  kind: literal("meeting_participants"),
2108
2172
  account_id: id3,
2109
- query: text5,
2173
+ query: text4,
2110
2174
  items: array(strictObject({
2111
2175
  participant_id: id3,
2112
2176
  meeting_id: id3,
2113
2177
  identity_id: id3,
2114
- display_name: nullable(text5),
2115
- email: nullable(text5)
2178
+ display_name: nullable(text4),
2179
+ email: nullable(text4)
2116
2180
  })),
2117
2181
  /** Several identities on one page are observations, never speaker attribution or person links. */
2118
2182
  ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id3) }),
@@ -2126,7 +2190,7 @@ var meetingParticipants = strictObject({
2126
2190
  mode: literal("cursor"),
2127
2191
  limit: count4,
2128
2192
  has_more: boolean(),
2129
- next_cursor: optional(text5)
2193
+ next_cursor: optional(text4)
2130
2194
  })
2131
2195
  });
2132
2196
  var revision = picklist(["current", "superseded"]);
@@ -2135,8 +2199,8 @@ var meetingPassage = strictObject({
2135
2199
  kind: literal("meeting_context"),
2136
2200
  source: reference,
2137
2201
  target_ref: reference,
2138
- target_fingerprint: text5,
2139
- fingerprint: text5,
2202
+ target_fingerprint: text4,
2203
+ fingerprint: text4,
2140
2204
  revision,
2141
2205
  limits: strictObject({ before: count4, after: count4, bytes: count4, max_read_bytes: count4 }),
2142
2206
  content_bytes: count4,
@@ -2155,30 +2219,30 @@ var meetingPassage = strictObject({
2155
2219
  }),
2156
2220
  items: array(strictObject({
2157
2221
  ref: reference,
2158
- fingerprint: text5,
2222
+ fingerprint: text4,
2159
2223
  transcript_id: id3,
2160
- content_hash: nullable(text5),
2224
+ content_hash: nullable(text4),
2161
2225
  position: count4,
2162
2226
  start_ms: count4,
2163
2227
  end_ms: count4,
2164
2228
  speaker_participant_id: nullable(id3),
2165
- speaker_name: nullable(text5),
2166
- text: text5,
2229
+ speaker_name: nullable(text4),
2230
+ text: text4,
2167
2231
  revision
2168
2232
  }))
2169
2233
  });
2170
2234
  var event = strictObject({
2171
2235
  id: pipe(string(), minLength(1)),
2172
- event_series_id: nullable(text5),
2173
- title: nullable(text5),
2174
- description: nullable(text5),
2175
- location: nullable(text5),
2236
+ event_series_id: nullable(text4),
2237
+ title: nullable(text4),
2238
+ description: nullable(text4),
2239
+ location: nullable(text4),
2176
2240
  starts_at: nullable(isoTime),
2177
2241
  ends_at: nullable(isoTime),
2178
- timezone: nullable(text5),
2242
+ timezone: nullable(text4),
2179
2243
  /** `auto`: made from a meeting; `owner`: made by hand; `calendar`: from a calendar's entries. */
2180
2244
  origin: picklist(["auto", "owner", "calendar"]),
2181
- status: nullable(text5),
2245
+ status: nullable(text4),
2182
2246
  all_day: boolean(),
2183
2247
  /** When its calendar deleted it: shown as "deleted in Google", kept as history. */
2184
2248
  source_deleted_at: nullable(isoTime),
@@ -2186,7 +2250,7 @@ var event = strictObject({
2186
2250
  created_at: isoTime,
2187
2251
  updated_at: isoTime,
2188
2252
  /** The fields whoever sent the invitation wrote, on a calendar CLI's `events list`: an agent reads them as data. */
2189
- untrusted: optional(array(text5)),
2253
+ untrusted: optional(array(text4)),
2190
2254
  /** On a calendar CLI's `events list changed:<date>`: what changed since then, and when the store saw it. */
2191
2255
  change: optional(picklist(["new", "moved", "cancelled"])),
2192
2256
  changed_at: optional(nullable(isoTime)),
@@ -2198,7 +2262,7 @@ var event = strictObject({
2198
2262
  */
2199
2263
  overlapping: optional(boolean()),
2200
2264
  /** With `overlapping:true`: the events it overlaps, as `event:<id>`. */
2201
- overlaps: optional(array(text5))
2265
+ overlaps: optional(array(text4))
2202
2266
  });
2203
2267
  var eventItem = /* @__PURE__ */ __name((one) => ({
2204
2268
  id: String(one.id),
@@ -2218,10 +2282,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2218
2282
  updated_at: new Date(one.updatedAt).toISOString()
2219
2283
  }), "eventItem");
2220
2284
 
2221
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2285
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2222
2286
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2223
2287
 
2224
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2288
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2225
2289
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2226
2290
  if (!original || typeof original !== "object" || Array.isArray(original))
2227
2291
  throw new CliError("validation_error", "related history request is required");
@@ -2232,7 +2296,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2232
2296
  const positive = /* @__PURE__ */ __name((value) => Number.isSafeInteger(value) && value > 0, "positive");
2233
2297
  if (!positive(input.accountId) || !positive(input.seriesId))
2234
2298
  throw new CliError("validation_error", "accountId and seriesId must be positive safe integers");
2235
- if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((id4) => !positive(id4)))
2299
+ if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((id5) => !positive(id5)))
2236
2300
  throw new CliError("validation_error", "anchorIds must contain at most 20 positive safe integers");
2237
2301
  for (const key of ["after", "before"])
2238
2302
  if (!Number.isSafeInteger(input[key]) || Math.abs(input[key]) > 864e13)
@@ -2251,24 +2315,24 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2251
2315
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2252
2316
  }, "validateMeetingRelatedHistory");
2253
2317
 
2254
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2255
- var text6 = string();
2256
- var identifier = pipe(text6, minLength(1));
2257
- var nullableText = nullable(text6);
2318
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2319
+ var text5 = string();
2320
+ var identifier = pipe(text5, minLength(1));
2321
+ var nullableText = nullable(text5);
2258
2322
  var count5 = pipe(number(), integer(), minValue(0));
2259
2323
  var flag = boolean();
2260
- var scope = strictObject({ provider: text6, account: text6 });
2324
+ var scope = strictObject({ provider: text5, account: text5 });
2261
2325
  var run = strictObject({
2262
2326
  meetings: count5,
2263
2327
  participants: count5,
2264
2328
  transcript_rows: count5,
2265
2329
  summaries: count5,
2266
- warnings: array(strictObject({ external_id: text6, message: text6 })),
2267
- timezone: optional(text6)
2330
+ warnings: array(strictObject({ external_id: text5, message: text5 })),
2331
+ timezone: optional(text5)
2268
2332
  });
2269
2333
  var exported = union([
2270
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text6, content: text6 }),
2271
- strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text6 })
2334
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), filename: text5, content: text5 }),
2335
+ strictObject({ meeting_id: identifier, format: picklist(["markdown", "vtt"]), output: text5 })
2272
2336
  ]);
2273
2337
  var eventChange = strictObject({
2274
2338
  action: literal("event.link"),
@@ -2278,7 +2342,7 @@ var eventChange = strictObject({
2278
2342
  var personChange = strictObject({
2279
2343
  action: literal("person.link"),
2280
2344
  participant_id: identifier,
2281
- person_uid: text6,
2345
+ person_uid: text5,
2282
2346
  expected_person_uid: optional(nullableText),
2283
2347
  target_account_ids: optional(array(identifier))
2284
2348
  });
@@ -2291,7 +2355,7 @@ var eventResult = strictObject({
2291
2355
  var personResult = strictObject({
2292
2356
  meeting_id: identifier,
2293
2357
  participant_id: identifier,
2294
- person_uid: text6,
2358
+ person_uid: text5,
2295
2359
  previous_person_uid: nullableText,
2296
2360
  changed: flag
2297
2361
  });
@@ -2304,23 +2368,23 @@ var meetingChange = strictObject({
2304
2368
  result: optional(union([eventResult, personResult]))
2305
2369
  });
2306
2370
  var recognition = strictObject({
2307
- engine: text6,
2308
- model: text6,
2309
- version: optional(text6),
2371
+ engine: text5,
2372
+ model: text5,
2373
+ version: optional(text5),
2310
2374
  timing: optional(picklist(["fixed-windows", "recognition-segments"]))
2311
2375
  });
2312
2376
  var transcription = union([
2313
2377
  strictObject({
2314
2378
  applied: literal(false),
2315
2379
  account_id: identifier,
2316
- external_id: text6,
2380
+ external_id: text5,
2317
2381
  segments: count5,
2318
2382
  media: strictObject({
2319
- id: text6,
2320
- content_hash: text6,
2383
+ id: text5,
2384
+ content_hash: text5,
2321
2385
  size: count5,
2322
2386
  duration_ms: count5,
2323
- format: text6,
2387
+ format: text5,
2324
2388
  sample_rate: count5,
2325
2389
  channels: count5,
2326
2390
  recognition
@@ -2329,21 +2393,21 @@ var transcription = union([
2329
2393
  strictObject({
2330
2394
  applied: literal(true),
2331
2395
  account_id: identifier,
2332
- external_id: text6,
2396
+ external_id: text5,
2333
2397
  meeting_id: identifier,
2334
2398
  created: flag,
2335
2399
  inserted_transcripts: count5,
2336
2400
  replayed_transcripts: count5,
2337
2401
  superseded_transcripts: count5,
2338
2402
  segments: count5,
2339
- media_sha256: text6,
2340
- engine: text6,
2341
- model: text6,
2403
+ media_sha256: text5,
2404
+ engine: text5,
2405
+ model: text5,
2342
2406
  model_version: nullableText,
2343
2407
  timing: picklist(["fixed-windows", "recognition-segments"])
2344
2408
  })
2345
2409
  ]);
2346
- var embeddingModel = strictObject({ key: text6, dims: count5, kind: picklist(["local", "remote"]), model: text6 });
2410
+ var embeddingModel = strictObject({ key: text5, dims: count5, kind: picklist(["local", "remote"]), model: text5 });
2347
2411
  var embedding = union([
2348
2412
  strictObject({
2349
2413
  account_id: identifier,
@@ -2359,7 +2423,7 @@ var embedding = union([
2359
2423
  saved: count5,
2360
2424
  skipped: count5,
2361
2425
  has_more: flag,
2362
- next_hash: optional(text6),
2426
+ next_hash: optional(text5),
2363
2427
  applied: literal(true),
2364
2428
  rebuild: strictObject({
2365
2429
  transcripts: count5,
@@ -2384,14 +2448,14 @@ var MEETING_RESULT_ENTITIES = {
2384
2448
  meeting_repair: repair
2385
2449
  };
2386
2450
 
2387
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/review.js
2451
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/review.js
2388
2452
  var REVIEW_LIMIT = { default: 50, most: 200 };
2389
2453
 
2390
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2454
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2391
2455
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2392
2456
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2393
2457
 
2394
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2458
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
2395
2459
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2396
2460
  input.signal?.throwIfAborted();
2397
2461
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -2412,19 +2476,19 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2412
2476
  return { ...input, limit, maxReadBytes };
2413
2477
  }, "validateMeetingSeriesHistory");
2414
2478
 
2415
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2479
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
2416
2480
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
2417
2481
 
2418
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2482
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
2419
2483
  function invalid4(field, response = false) {
2420
2484
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
2421
2485
  }
2422
2486
  __name(invalid4, "invalid");
2423
- var object = /* @__PURE__ */ __name((value, fields3, field, response = false) => {
2487
+ var object = /* @__PURE__ */ __name((value, fields2, field, response = false) => {
2424
2488
  if (!value || typeof value !== "object" || Array.isArray(value))
2425
2489
  invalid4(field, response);
2426
2490
  for (const key of Object.keys(value))
2427
- if (!fields3.includes(key))
2491
+ if (!fields2.includes(key))
2428
2492
  invalid4(`${field}.${key}`, response);
2429
2493
  }, "object");
2430
2494
  var cursorDetails = /* @__PURE__ */ __name((value) => {
@@ -2444,7 +2508,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
2444
2508
  cursorDetails(value);
2445
2509
  }, "validateMeetingSeriesInventoryCursor");
2446
2510
 
2447
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2511
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/meetings/stats.js
2448
2512
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
2449
2513
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
2450
2514
  const zone = timeZone ?? "UTC";
@@ -2508,8 +2572,8 @@ var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, lim
2508
2572
  const kept = ordered.slice(0, limit);
2509
2573
  if (by !== "series")
2510
2574
  kept.reverse();
2511
- const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
2512
- meetings: count6,
2575
+ const counted = /* @__PURE__ */ __name(({ meetings: count7, ms, timed, transcripts }) => ({
2576
+ meetings: count7,
2513
2577
  minutes: minutesOf(ms),
2514
2578
  meanMinutes: meanOf(ms, timed),
2515
2579
  transcripts
@@ -2579,7 +2643,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
2579
2643
  };
2580
2644
  }, "aggregateMeetingStats");
2581
2645
 
2582
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/tasks/model.js
2646
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/tasks/model.js
2583
2647
  var TASK_KINDS = ["question", "request", "mention", "promise"];
2584
2648
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
2585
2649
  var CLOSED_STATES = ["done", "dismissed"];
@@ -2594,7 +2658,7 @@ function closeTask(task, state, by, at, reason) {
2594
2658
  }
2595
2659
  __name(closeTask, "closeTask");
2596
2660
 
2597
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/tasks/priority.js
2661
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/tasks/priority.js
2598
2662
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
2599
2663
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
2600
2664
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -2623,12 +2687,12 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
2623
2687
  }, "priorityOf");
2624
2688
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
2625
2689
 
2626
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/tasks/service.js
2690
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/tasks/service.js
2627
2691
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
2628
- async function find(id4) {
2629
- const task = await store.get(id4);
2692
+ async function find(id5) {
2693
+ const task = await store.get(id5);
2630
2694
  if (!task)
2631
- throw new CliError("not_found", `no task ${id4}`);
2695
+ throw new CliError("not_found", `no task ${id5}`);
2632
2696
  return task;
2633
2697
  }
2634
2698
  __name(find, "find");
@@ -2650,8 +2714,8 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
2650
2714
  return { task, created: true };
2651
2715
  return { task, created: true, review: await store.reviewDuplicates(task.id) };
2652
2716
  },
2653
- async close(id4, { as, by, reason }) {
2654
- const task = closeTask(await find(id4), as, by, now(), reason);
2717
+ async close(id5, { as, by, reason }) {
2718
+ const task = closeTask(await find(id5), as, by, now(), reason);
2655
2719
  await store.update(task);
2656
2720
  return task;
2657
2721
  },
@@ -2683,13 +2747,13 @@ function median(values) {
2683
2747
  }
2684
2748
  __name(median, "median");
2685
2749
 
2686
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/tasks/store.js
2750
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/tasks/store.js
2687
2751
  function matches(task, filter) {
2688
2752
  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);
2689
2753
  }
2690
2754
  __name(matches, "matches");
2691
2755
 
2692
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
2756
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
2693
2757
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
2694
2758
  var MEMORY_KINDS = ["summary", "digest", "preference"];
2695
2759
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -2697,7 +2761,380 @@ var MEMORY_SCOPES = ["personal", "work"];
2697
2761
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
2698
2762
  var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
2699
2763
 
2700
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/tags.js
2764
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/fields.js
2765
+ var text6 = string();
2766
+ var id4 = pipe(string(), minLength(1));
2767
+ var time = isoTime;
2768
+ var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
2769
+ var count6 = pipe(number(), integer(), minValue(0));
2770
+ var untrusted = optional(array(text6));
2771
+ var providerMetadata = optional(record(string(), unknown()));
2772
+ var evidenceSource = strictObject({
2773
+ ref: nullable(reference),
2774
+ kind: text6,
2775
+ title: nullable(text6),
2776
+ sender: nullable(text6),
2777
+ at: nullable(time),
2778
+ excerpt: nullable(text6),
2779
+ tool: nullable(text6),
2780
+ missing: boolean()
2781
+ });
2782
+ var author = strictObject({
2783
+ type: picklist(["person", "bot"]),
2784
+ id: id4,
2785
+ name: nullable(text6)
2786
+ });
2787
+
2788
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
2789
+ var organization = strictObject({
2790
+ id: id4,
2791
+ ref: reference,
2792
+ kind: picklist(["company", "team", "family", "community"]),
2793
+ name: text6,
2794
+ scope: picklist(["personal", "work"]),
2795
+ created_at: time
2796
+ });
2797
+ var project = strictObject({
2798
+ id: id4,
2799
+ ref: reference,
2800
+ key: text6,
2801
+ name: text6,
2802
+ kind: picklist(["project", "inbox"]),
2803
+ type: picklist(["work", "client", "personal", "oss", "other"]),
2804
+ organization_id: nullable(id4),
2805
+ scope: picklist(["personal", "work"]),
2806
+ created_at: time
2807
+ });
2808
+ var reminder = strictObject({
2809
+ id: id4,
2810
+ task: text6,
2811
+ due_at: time,
2812
+ timezone: text6,
2813
+ state: picklist(["pending", "leased", "delivered", "cancelled"]),
2814
+ revision: number(),
2815
+ receipt: nullable(text6)
2816
+ });
2817
+
2818
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/marks.js
2819
+ import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
2820
+ var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
2821
+ var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
2822
+ var inodeOf = /* @__PURE__ */ __name((store) => statSync(store, { throwIfNoEntry: false })?.ino, "inodeOf");
2823
+ var readJson = /* @__PURE__ */ __name((path) => {
2824
+ try {
2825
+ return JSON.parse(readFileSync(path, "utf8"));
2826
+ } catch (error) {
2827
+ if (error.code === "ENOENT")
2828
+ return null;
2829
+ throw error;
2830
+ }
2831
+ }, "readJson");
2832
+ var ownerStoreInTests = /* @__PURE__ */ __name((store) => {
2833
+ try {
2834
+ refuseOwnerStoreInTests(store);
2835
+ return false;
2836
+ } catch {
2837
+ return true;
2838
+ }
2839
+ }, "ownerStoreInTests");
2840
+ var sqliteFailure = /* @__PURE__ */ __name((error) => isCliFailure(error) && error.details?.reason === "store.damaged" ? error.cause : error, "sqliteFailure");
2841
+ var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version, runId, now = Date.now }) => {
2842
+ const failure = sqliteFailure(error);
2843
+ if (!isStoreDamage(failure) || ownerStoreInTests(store))
2844
+ return false;
2845
+ const inode = inodeOf(store);
2846
+ if (inode === void 0)
2847
+ return false;
2848
+ const mark = {
2849
+ at: new Date(now()).toISOString(),
2850
+ command,
2851
+ ...version ? { cli_version: version } : {},
2852
+ ...runId ? { run_id: runId } : {},
2853
+ error: failure.message.slice(0, 500),
2854
+ inode
2855
+ };
2856
+ try {
2857
+ writeFileSync(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
2858
+ `, { flag: "wx", mode: 384 });
2859
+ return true;
2860
+ } catch {
2861
+ return false;
2862
+ }
2863
+ }, "markStoreDamaged");
2864
+ var readDamageMark = /* @__PURE__ */ __name((store) => {
2865
+ const path = damageMarkPath(store);
2866
+ let mark;
2867
+ try {
2868
+ mark = readJson(path);
2869
+ } catch {
2870
+ return { at: "unknown", command: "unknown", error: `${path} cannot be read`, inode: inodeOf(store) ?? 0 };
2871
+ }
2872
+ if (mark === null)
2873
+ return null;
2874
+ if (mark.inode !== inodeOf(store)) {
2875
+ clearDamageMark(store);
2876
+ return null;
2877
+ }
2878
+ return mark;
2879
+ }, "readDamageMark");
2880
+ var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync(damageMarkPath(store), { force: true }), "clearDamageMark");
2881
+ var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
2882
+ const mark = readDamageMark(store);
2883
+ if (!mark)
2884
+ return;
2885
+ throw new CliError("configuration_error", `the store was found damaged at ${mark.at} by \`${mark.command}\` (${mark.error}), so nothing writes to it until it is recovered; \`${cli ?? "<cli>"} store recover\` says what is damaged and what to do`, { reason: "store.damaged" });
2886
+ }, "refuseDamagedStore");
2887
+ var readHealthMark = /* @__PURE__ */ __name((store) => {
2888
+ try {
2889
+ return readJson(healthMarkPath(store));
2890
+ } catch {
2891
+ return null;
2892
+ }
2893
+ }, "readHealthMark");
2894
+ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, schema, now = Date.now }) => {
2895
+ const previous = readHealthMark(store);
2896
+ if (ownerStoreInTests(store))
2897
+ return { previous, cleared: null };
2898
+ const checkedAt = new Date(now()).toISOString();
2899
+ const mark = {
2900
+ checked_at: checkedAt,
2901
+ ok: health.ok,
2902
+ problems: health.problems ?? 0,
2903
+ schema,
2904
+ cli,
2905
+ ...version ? { cli_version: version } : {},
2906
+ last_ok_at: health.ok ? checkedAt : previous?.last_ok_at ?? null
2907
+ };
2908
+ const cleared = health.ok ? readDamageMark(store) : null;
2909
+ try {
2910
+ writeFileSync(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
2911
+ `, { mode: 384 });
2912
+ } catch {
2913
+ }
2914
+ if (cleared)
2915
+ clearDamageMark(store);
2916
+ return { previous, cleared };
2917
+ }, "recordDeepCheck");
2918
+
2919
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/money.js
2920
+ var CURRENCY_SCALES = {
2921
+ AED: 2,
2922
+ AMD: 2,
2923
+ AUD: 2,
2924
+ BHD: 3,
2925
+ BYN: 2,
2926
+ CAD: 2,
2927
+ CHF: 2,
2928
+ CLP: 0,
2929
+ CNY: 2,
2930
+ CZK: 2,
2931
+ DKK: 2,
2932
+ EUR: 2,
2933
+ GBP: 2,
2934
+ GEL: 2,
2935
+ HUF: 2,
2936
+ ILS: 2,
2937
+ INR: 2,
2938
+ ISK: 0,
2939
+ JPY: 0,
2940
+ KGS: 2,
2941
+ KRW: 0,
2942
+ KWD: 3,
2943
+ KZT: 2,
2944
+ NOK: 2,
2945
+ PLN: 2,
2946
+ RSD: 2,
2947
+ RUB: 2,
2948
+ SEK: 2,
2949
+ THB: 2,
2950
+ TRY: 2,
2951
+ UAH: 2,
2952
+ USD: 2,
2953
+ UZS: 2,
2954
+ VND: 0
2955
+ };
2956
+ var refuse = /* @__PURE__ */ __name((message, reason) => {
2957
+ throw new CliError("validation_error", message, { reason });
2958
+ }, "refuse");
2959
+ var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
2960
+ var parseDecimal = /* @__PURE__ */ __name((text7, scale) => {
2961
+ const match = DECIMAL.exec(text7.trim());
2962
+ if (!match || (match[2] ?? "").length > scale)
2963
+ return void 0;
2964
+ return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
2965
+ }, "parseDecimal");
2966
+ var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
2967
+ const value = BigInt(units);
2968
+ if (value < 0n)
2969
+ return `-${formatDecimal(-value, scale)}`;
2970
+ const digits = value.toString().padStart(scale + 1, "0");
2971
+ return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
2972
+ }, "formatDecimal");
2973
+ var groupDigits = /* @__PURE__ */ __name((decimal) => {
2974
+ const [whole = "0", fraction] = decimal.split(".");
2975
+ const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
2976
+ return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
2977
+ }, "groupDigits");
2978
+ var currencyOf = /* @__PURE__ */ __name((text7) => {
2979
+ const code = typeof text7 === "string" ? text7.trim().toUpperCase() : "";
2980
+ if (CURRENCY_SCALES[code] === void 0)
2981
+ return refuse(`${typeof text7 === "string" && text7.trim() ? text7.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
2982
+ return code;
2983
+ }, "currencyOf");
2984
+ var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
2985
+ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
2986
+ const scale = scaleOf(currency);
2987
+ const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
2988
+ if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
2989
+ return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
2990
+ return Number(units);
2991
+ }, "minorUnits");
2992
+ var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
2993
+ if (typeof amount !== "string" || !amount.trim().startsWith("-"))
2994
+ return minorUnits(amount, currency, what);
2995
+ const units = minorUnits(amount.trim().slice(1), currency, what);
2996
+ return units === 0 ? 0 : -units;
2997
+ }, "signedMinorUnits");
2998
+ var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
2999
+ amount: formatDecimal(units, scaleOf(currency)),
3000
+ currency
3001
+ }), "moneyOf");
3002
+ var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
3003
+ var QUANTITY_SCALE = 3;
3004
+ var quantityOf = /* @__PURE__ */ __name((text7) => {
3005
+ const thousandths = typeof text7 === "string" ? parseDecimal(text7, QUANTITY_SCALE) : void 0;
3006
+ if (thousandths === void 0 || thousandths === 0n)
3007
+ return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
3008
+ const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
3009
+ return { text: plain, thousandths };
3010
+ }, "quantityOf");
3011
+ var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3012
+
3013
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/finance.js
3014
+ var INVOICE_DIRECTIONS = ["receivable", "payable"];
3015
+ var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3016
+ var MONEY_DIRECTIONS = ["in", "out"];
3017
+ var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
3018
+ var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
3019
+ if (current === "draft" || current === "void")
3020
+ return current;
3021
+ if (paid <= 0)
3022
+ return "issued";
3023
+ return paid < total ? "partly_paid" : "paid";
3024
+ }, "settledStatus");
3025
+ var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
3026
+ var notes = /* @__PURE__ */ __name((...words2) => {
3027
+ const kept = words2.filter((word) => word !== null);
3028
+ return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
3029
+ }, "notes");
3030
+ var invoiceLine = /* @__PURE__ */ __name((invoice) => {
3031
+ const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
3032
+ const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
3033
+ return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
3034
+ }, "invoiceLine");
3035
+ var paymentLine = /* @__PURE__ */ __name((payment) => {
3036
+ const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
3037
+ return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
3038
+ }, "paymentLine");
3039
+ var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3040
+ var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3041
+
3042
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/deals.js
3043
+ var DEAL_KINDS = ["deal", "lead"];
3044
+ var DEAL_STATUSES = ["open", "won", "lost"];
3045
+ var STAGE_OUTCOMES = DEAL_STATUSES;
3046
+ var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
3047
+ var dealLine = /* @__PURE__ */ __name((deal) => {
3048
+ const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
3049
+ return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
3050
+ }, "dealLine");
3051
+
3052
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/orders.js
3053
+ var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3054
+ var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3055
+ var orderLine = /* @__PURE__ */ __name((order) => {
3056
+ const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
3057
+ const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
3058
+ return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
3059
+ }, "orderLine");
3060
+ var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3061
+
3062
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/relations.js
3063
+ var ORGANIZATION_ROLES = [
3064
+ "employee",
3065
+ "contractor",
3066
+ "founder",
3067
+ "owner",
3068
+ "manager",
3069
+ "adviser",
3070
+ "contact"
3071
+ ];
3072
+ var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
3073
+ var RELATIONS = {
3074
+ "member-of": {
3075
+ from: ["person", "organization", "project", "chat", "email_thread"],
3076
+ to: ["organization", "project"],
3077
+ roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
3078
+ },
3079
+ "reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
3080
+ "customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
3081
+ "partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
3082
+ "related-to": {
3083
+ from: ["person", "organization", "project", "task", "deal", "lead"],
3084
+ to: ["person", "organization", "project", "task"],
3085
+ roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES } }
3086
+ }
3087
+ };
3088
+ var RELATION_KINDS = Object.keys(RELATIONS);
3089
+ var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
3090
+ var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
3091
+ var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
3092
+ var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
3093
+ const spec = specOf(kind);
3094
+ if (!spec)
3095
+ throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
3096
+ if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
3097
+ throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
3098
+ if (!spec.from.includes(from) || !spec.to.includes(to))
3099
+ throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
3100
+ return spec;
3101
+ }, "checkEnds");
3102
+ var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
3103
+ const spec = specOf(kind);
3104
+ if (kind === "member-of" && from !== "person")
3105
+ return void 0;
3106
+ return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
3107
+ }, "rolesOf");
3108
+ var ROLE_LISTS = { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES, deal: DEAL_ROLES };
3109
+ var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
3110
+ const roles = rolesOf(kind, from, to);
3111
+ return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
3112
+ }, "roleListOf");
3113
+ var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
3114
+ const roles = rolesOf(kind, from, to)?.concat(extra);
3115
+ if (roles && !roles.includes(role))
3116
+ throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
3117
+ reason: "relationship.role-unknown"
3118
+ });
3119
+ return role;
3120
+ }, "checkRole");
3121
+ var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
3122
+ var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
3123
+ var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
3124
+ var standingOf = /* @__PURE__ */ __name((link, now) => {
3125
+ if (link.endsAt != null && link.endsAt <= now)
3126
+ return "ended";
3127
+ if (link.confirmed)
3128
+ return "confirmed";
3129
+ if (link.deletedAt != null)
3130
+ return "ended";
3131
+ return link.accountId != null ? "reported" : "proposed";
3132
+ }, "standingOf");
3133
+ var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
3134
+ var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE 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");
3135
+ 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");
3136
+
3137
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/domain/tags.js
2701
3138
  var TAG_TYPES = ["chat", "contact", "message", "task"];
2702
3139
  var TAG = /^[a-z0-9-]{1,32}$/;
2703
3140
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -2711,7 +3148,7 @@ var normalizeTag = /* @__PURE__ */ __name((value) => {
2711
3148
  return tag;
2712
3149
  }, "normalizeTag");
2713
3150
 
2714
- // node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
3151
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_835308f42ae01aacd71fad942c0d0dc0/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
2715
3152
  var LINK_KINDS = [
2716
3153
  "links-to",
2717
3154
  "blocked-by",
@@ -2724,13 +3161,16 @@ var LINK_KINDS = [
2724
3161
  "created-from",
2725
3162
  "duplicate-of",
2726
3163
  "related-to",
3164
+ "reports-to",
3165
+ "customer-of",
3166
+ "partner-of",
2727
3167
  "assigned-to",
2728
3168
  "attached"
2729
3169
  ];
2730
3170
  var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
2731
3171
  var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
2732
- var RELATION_KINDS = ["member-of", "related-to"];
2733
3172
  var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
3173
+ var COUNTERPART_ROLE = "counterpart";
2734
3174
 
2735
3175
  export {
2736
3176
  formatMeetingReference,
@@ -2768,18 +3208,20 @@ export {
2768
3208
  validatePayment,
2769
3209
  paymentTitle,
2770
3210
  meetingTimestamp,
3211
+ findingText,
2771
3212
  findingHash,
3213
+ findingFields,
3214
+ findingNeeds,
2772
3215
  validEvidence,
2773
3216
  findingId,
2774
3217
  validateFinding,
2775
3218
  validateBatch,
2776
3219
  validateFindings,
2777
- findingText,
2778
- findingFields,
2779
3220
  findingFingerprint,
2780
3221
  MEETING_FINDINGS_KIND,
2781
3222
  validateMeetingFindings,
2782
3223
  meetingFindingFingerprint,
3224
+ MEETING_FIELD_NAMES,
2783
3225
  liftMeetingFields,
2784
3226
  parseMeetingQuery,
2785
3227
  meetingWordsQuery,
@@ -2818,14 +3260,58 @@ export {
2818
3260
  validateMeetingSeriesInventoryCursor,
2819
3261
  aggregateMeetingCounts,
2820
3262
  aggregateMeetingStats,
3263
+ parseDecimal,
3264
+ formatDecimal,
3265
+ currencyOf,
3266
+ scaleOf,
3267
+ minorUnits,
3268
+ signedMinorUnits,
3269
+ moneyOf,
3270
+ moneyLabel,
3271
+ quantityOf,
3272
+ lineUnits,
3273
+ INVOICE_DIRECTIONS,
3274
+ INVOICE_STATUSES,
3275
+ MONEY_DIRECTIONS,
3276
+ FINANCE_REVIEWS,
3277
+ settledStatus,
3278
+ dayMonth,
3279
+ notes,
3280
+ invoiceLine,
3281
+ paymentLine,
3282
+ invoiceTitle,
3283
+ paymentEntryTitle,
3284
+ DEAL_KINDS,
3285
+ DEAL_STATUSES,
3286
+ STAGE_OUTCOMES,
3287
+ DEAL_ROLES,
3288
+ dealLine,
3289
+ ORDER_STATUSES,
3290
+ ORDER_PURPOSES,
3291
+ orderLine,
3292
+ orderTitle,
3293
+ RELATION_KINDS,
3294
+ isRelationKind,
3295
+ checkEnds,
3296
+ rolesOf,
3297
+ ROLE_LISTS,
3298
+ roleListOf,
3299
+ checkRole,
3300
+ isSymmetric,
3301
+ inverseOf,
3302
+ STANDINGS,
3303
+ standingOf,
3304
+ isUsable,
3305
+ notOverriddenSql,
3306
+ usableLinkSql,
2821
3307
  TAG_TYPES,
2822
3308
  tagOf,
2823
3309
  normalizeTag,
2824
3310
  LINK_KINDS,
2825
3311
  LINK_ORIGINS,
2826
3312
  LINK_SOURCES,
2827
- RELATION_KINDS,
2828
3313
  linkKind,
3314
+ COUNTERPART_ROLE,
2829
3315
  TASK_KINDS,
2830
3316
  TASK_STATES,
2831
3317
  CLOSED_STATES,
@@ -2846,5 +3332,25 @@ export {
2846
3332
  MEMORY_STATUSES,
2847
3333
  MEMORY_SCOPES,
2848
3334
  WORK_TASK_TYPES,
2849
- TASK_TYPES2 as TASK_TYPES
3335
+ TASK_TYPES2 as TASK_TYPES,
3336
+ text6 as text,
3337
+ id4 as id,
3338
+ time,
3339
+ zonedTime,
3340
+ count6 as count,
3341
+ untrusted,
3342
+ providerMetadata,
3343
+ evidenceSource,
3344
+ author,
3345
+ organization,
3346
+ project,
3347
+ reminder,
3348
+ damageMarkPath,
3349
+ healthMarkPath,
3350
+ markStoreDamaged,
3351
+ readDamageMark,
3352
+ clearDamageMark,
3353
+ refuseDamagedStore,
3354
+ readHealthMark,
3355
+ recordDeepCheck
2850
3356
  };