@wirecat/mail-cli 0.16.2 → 0.17.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 (260) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +7 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
  5. package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
  6. package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
  7. package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
  9. package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
  10. package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
  11. package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
  12. package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
  13. package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
  14. package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
  15. package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
  16. package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
  17. package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
  18. package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
  19. package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
  20. package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
  21. package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
  22. package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
  23. package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
  24. package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
  25. package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
  26. package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
  27. package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
  28. package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
  29. package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
  30. package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
  31. package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
  32. package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
  33. package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
  34. package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
  35. package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
  36. package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
  37. package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
  38. package/dist/bundle/chunk-M6GLFDWV.js +64 -0
  39. package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
  40. package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
  41. package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
  42. package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
  43. package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
  44. package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
  45. package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
  46. package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
  47. package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
  48. package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
  49. package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
  50. package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
  51. package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
  52. package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
  53. package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
  54. package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
  55. package/dist/bundle/{chunk-OLKK5V23.js → chunk-T4RRZILQ.js} +14 -2
  56. package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
  57. package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
  58. package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
  59. package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
  60. package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
  61. package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
  62. package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
  63. package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
  64. package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
  65. package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
  66. package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
  67. package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
  68. package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
  69. package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
  70. package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
  71. package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
  72. package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
  73. package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
  74. package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
  75. package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
  76. package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
  77. package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
  78. package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
  81. package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
  82. package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
  83. package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
  84. package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
  85. package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
  86. package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
  87. package/dist/bundle/{program-GVK7TF2N.js → program-4ZCATQND.js} +3380 -12407
  88. package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
  89. package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
  90. package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
  91. package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
  92. package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
  93. package/dist/bundle/server-GYVOIGF5.js +64 -0
  94. package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
  95. package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
  96. package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
  97. package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
  98. package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
  99. package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +56 -64
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/attachments.d.ts.map +1 -1
  104. package/dist/commands/attachments.js +15 -12
  105. package/dist/commands/attachments.js.map +1 -1
  106. package/dist/commands/context.d.ts +4 -0
  107. package/dist/commands/context.d.ts.map +1 -1
  108. package/dist/commands/context.js +12 -1
  109. package/dist/commands/context.js.map +1 -1
  110. package/dist/commands/doctor.d.ts.map +1 -0
  111. package/dist/{mail → commands}/doctor.js +1 -1
  112. package/dist/commands/doctor.js.map +1 -0
  113. package/dist/commands/drafts-send.d.ts.map +1 -1
  114. package/dist/commands/drafts-send.js +12 -10
  115. package/dist/commands/drafts-send.js.map +1 -1
  116. package/dist/commands/drafts.d.ts.map +1 -1
  117. package/dist/commands/drafts.js +28 -14
  118. package/dist/commands/drafts.js.map +1 -1
  119. package/dist/commands/export.d.ts.map +1 -1
  120. package/dist/commands/export.js +194 -195
  121. package/dist/commands/export.js.map +1 -1
  122. package/dist/commands/folders.d.ts.map +1 -1
  123. package/dist/commands/folders.js +19 -32
  124. package/dist/commands/folders.js.map +1 -1
  125. package/dist/commands/import.d.ts.map +1 -1
  126. package/dist/commands/import.js +10 -5
  127. package/dist/commands/import.js.map +1 -1
  128. package/dist/commands/messages.d.ts +0 -21
  129. package/dist/commands/messages.d.ts.map +1 -1
  130. package/dist/commands/messages.js +10 -278
  131. package/dist/commands/messages.js.map +1 -1
  132. package/dist/commands/organising.d.ts +98 -0
  133. package/dist/commands/organising.d.ts.map +1 -0
  134. package/dist/commands/organising.js +231 -0
  135. package/dist/commands/organising.js.map +1 -0
  136. package/dist/commands/restore.d.ts +3 -0
  137. package/dist/commands/restore.d.ts.map +1 -0
  138. package/dist/commands/restore.js +93 -0
  139. package/dist/commands/restore.js.map +1 -0
  140. package/dist/commands/rules.d.ts.map +1 -1
  141. package/dist/commands/rules.js +3 -2
  142. package/dist/commands/rules.js.map +1 -1
  143. package/dist/commands/send.d.ts +14 -3
  144. package/dist/commands/send.d.ts.map +1 -1
  145. package/dist/commands/send.js +18 -11
  146. package/dist/commands/send.js.map +1 -1
  147. package/dist/commands/session-start.d.ts.map +1 -1
  148. package/dist/commands/session-start.js +14 -4
  149. package/dist/commands/session-start.js.map +1 -1
  150. package/dist/commands/status.d.ts.map +1 -1
  151. package/dist/commands/status.js +10 -4
  152. package/dist/commands/status.js.map +1 -1
  153. package/dist/commands/sync.d.ts.map +1 -1
  154. package/dist/commands/sync.js +136 -141
  155. package/dist/commands/sync.js.map +1 -1
  156. package/dist/commands/tags.d.ts.map +1 -1
  157. package/dist/commands/tags.js +11 -7
  158. package/dist/commands/tags.js.map +1 -1
  159. package/dist/commands/words.d.ts +8 -0
  160. package/dist/commands/words.d.ts.map +1 -0
  161. package/dist/commands/words.js +52 -0
  162. package/dist/commands/words.js.map +1 -0
  163. package/dist/discovery.d.ts.map +1 -1
  164. package/dist/discovery.js +2 -1
  165. package/dist/discovery.js.map +1 -1
  166. package/dist/export/journal.d.ts +8 -6
  167. package/dist/export/journal.d.ts.map +1 -1
  168. package/dist/export/journal.js +39 -14
  169. package/dist/export/journal.js.map +1 -1
  170. package/dist/mail/changes.d.ts +9 -2
  171. package/dist/mail/changes.d.ts.map +1 -1
  172. package/dist/mail/changes.js +45 -17
  173. package/dist/mail/changes.js.map +1 -1
  174. package/dist/mail/cleanup.d.ts.map +1 -1
  175. package/dist/mail/cleanup.js +5 -1
  176. package/dist/mail/cleanup.js.map +1 -1
  177. package/dist/mail/domain-age.d.ts.map +1 -1
  178. package/dist/mail/domain-age.js +24 -6
  179. package/dist/mail/domain-age.js.map +1 -1
  180. package/dist/mail/drafts.d.ts.map +1 -1
  181. package/dist/mail/drafts.js +9 -7
  182. package/dist/mail/drafts.js.map +1 -1
  183. package/dist/mail/imap/connection.d.ts.map +1 -1
  184. package/dist/mail/imap/connection.js +8 -9
  185. package/dist/mail/imap/connection.js.map +1 -1
  186. package/dist/mail/imap/errors.d.ts.map +1 -1
  187. package/dist/mail/imap/errors.js +2 -2
  188. package/dist/mail/imap/errors.js.map +1 -1
  189. package/dist/mail/imap/read.d.ts.map +1 -1
  190. package/dist/mail/imap/read.js +8 -5
  191. package/dist/mail/imap/read.js.map +1 -1
  192. package/dist/mail/imap/write.d.ts.map +1 -1
  193. package/dist/mail/imap/write.js +2 -1
  194. package/dist/mail/imap/write.js.map +1 -1
  195. package/dist/mail/locate.d.ts +32 -0
  196. package/dist/mail/locate.d.ts.map +1 -0
  197. package/dist/mail/locate.js +99 -0
  198. package/dist/mail/locate.js.map +1 -0
  199. package/dist/mail/mbox.d.ts.map +1 -1
  200. package/dist/mail/mbox.js +7 -5
  201. package/dist/mail/mbox.js.map +1 -1
  202. package/dist/mail/organise.d.ts +35 -50
  203. package/dist/mail/organise.d.ts.map +1 -1
  204. package/dist/mail/organise.js +44 -279
  205. package/dist/mail/organise.js.map +1 -1
  206. package/dist/mail/restore.d.ts +22 -0
  207. package/dist/mail/restore.d.ts.map +1 -0
  208. package/dist/mail/restore.js +193 -0
  209. package/dist/mail/restore.js.map +1 -0
  210. package/dist/mail/rules/apply.d.ts.map +1 -1
  211. package/dist/mail/rules/apply.js +5 -4
  212. package/dist/mail/rules/apply.js.map +1 -1
  213. package/dist/mail/rules/file.d.ts.map +1 -1
  214. package/dist/mail/rules/file.js +37 -8
  215. package/dist/mail/rules/file.js.map +1 -1
  216. package/dist/mail/rules/filters.d.ts.map +1 -1
  217. package/dist/mail/rules/filters.js +13 -7
  218. package/dist/mail/rules/filters.js.map +1 -1
  219. package/dist/mail/rules/query.d.ts.map +1 -1
  220. package/dist/mail/rules/query.js +7 -7
  221. package/dist/mail/rules/query.js.map +1 -1
  222. package/dist/mail/save.js +1 -1
  223. package/dist/mail/save.js.map +1 -1
  224. package/dist/mail/send.d.ts +4 -3
  225. package/dist/mail/send.d.ts.map +1 -1
  226. package/dist/mail/send.js +8 -8
  227. package/dist/mail/send.js.map +1 -1
  228. package/dist/mail/smtp.js +1 -1
  229. package/dist/mail/smtp.js.map +1 -1
  230. package/dist/oauth.d.ts +3 -2
  231. package/dist/oauth.d.ts.map +1 -1
  232. package/dist/oauth.js +16 -7
  233. package/dist/oauth.js.map +1 -1
  234. package/dist/profile.d.ts.map +1 -1
  235. package/dist/profile.js +3 -2
  236. package/dist/profile.js.map +1 -1
  237. package/dist/program.js +1 -1
  238. package/dist/program.js.map +1 -1
  239. package/dist/providers.js +3 -3
  240. package/dist/providers.js.map +1 -1
  241. package/dist/reasons.d.ts.map +1 -1
  242. package/dist/reasons.js +12 -0
  243. package/dist/reasons.js.map +1 -1
  244. package/dist/version.d.ts +1 -1
  245. package/dist/version.js +1 -1
  246. package/package.json +5 -4
  247. package/skills/mail-cli/SKILL.md +3 -3
  248. package/dist/bundle/chunk-GIKNAOER.js +0 -132
  249. package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
  250. package/dist/bundle/first-screen-NNX54MYC.js +0 -32
  251. package/dist/bundle/server-SGGMRV2K.js +0 -64
  252. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
  253. package/dist/index.d.ts +0 -3
  254. package/dist/index.d.ts.map +0 -1
  255. package/dist/index.js +0 -3
  256. package/dist/index.js.map +0 -1
  257. package/dist/mail/doctor.d.ts.map +0 -1
  258. package/dist/mail/doctor.js.map +0 -1
  259. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-CNMSF5QU.js} +0 -0
  260. /package/dist/{mail → commands}/doctor.d.ts +0 -0
@@ -30,18 +30,18 @@ import {
30
30
  string,
31
31
  union,
32
32
  variant
33
- } from "./chunk-G6RG2AZV.js";
33
+ } from "./chunk-XJQJ3ZIY.js";
34
34
  import {
35
35
  CliError,
36
36
  isCliError,
37
37
  singleLine,
38
38
  visibleControls
39
- } from "./chunk-EB2IULWB.js";
39
+ } from "./chunk-YHUCNI2W.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-ZVVMGPBJ.js";
43
43
 
44
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reference.js
44
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/reference.js
45
45
  var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
46
46
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
47
47
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -78,7 +78,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text5) => {
78
78
  }, "parseMeetingReference");
79
79
  var canonicalMeetingReference = /* @__PURE__ */ __name((text5) => formatMeetingReference(parseMeetingReference(text5)), "canonicalMeetingReference");
80
80
 
81
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/payment.js
81
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/payment.js
82
82
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
83
83
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
84
84
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -172,7 +172,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
172
172
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
173
173
  }, "paymentTitle");
174
174
 
175
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
175
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/types.js
176
176
  var QUERY_LIMITS = {
177
177
  bytes: 8192,
178
178
  depth: 32,
@@ -216,7 +216,7 @@ function queryError(reason, span, alternative, context3 = {}, details = {}) {
216
216
  __name(queryError, "queryError");
217
217
  var walkQuery = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => walkQuery(node2)), "walkQuery");
218
218
 
219
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
219
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/dates.js
220
220
  var timezoneOf = /* @__PURE__ */ __name((given) => {
221
221
  const zone = given ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "UTC";
222
222
  try {
@@ -361,7 +361,7 @@ var dateRange = /* @__PURE__ */ __name((lower, upper, lowerInclusive, upperInclu
361
361
  };
362
362
  }, "dateRange");
363
363
 
364
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
364
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/evaluate.js
365
365
  var wordsOf = /* @__PURE__ */ __name((text5) => text5.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [], "wordsOf");
366
366
  var pattern = /* @__PURE__ */ __name((value) => new RegExp(`^${[...value].map((char) => char === "*" ? ".*" : char === "?" ? "." : char.replace(/[.+^${}()|[\]\\]/, "\\$&")).join("")}$`, "iu"), "pattern");
367
367
  var present = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "", "present");
@@ -416,7 +416,7 @@ var matches = /* @__PURE__ */ __name((node, item, byName, options) => {
416
416
  }, "matches");
417
417
  var evaluate = /* @__PURE__ */ __name((ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options), "evaluate");
418
418
 
419
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
419
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/fields.js
420
420
  var FIELD_TYPES = ["kw", "txt", "enum", "num", "time", "bool", "ref"];
421
421
  var OPERATORS_BY_TYPE = {
422
422
  kw: ["term", "phrase", "wildcard"],
@@ -495,7 +495,7 @@ var queryFieldsOf = /* @__PURE__ */ __name((schema, annotations = {}) => {
495
495
  return [...own, ...relations, ...states];
496
496
  }, "queryFieldsOf");
497
497
 
498
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
498
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/help.js
499
499
  var shownOf = /* @__PURE__ */ __name((registry) => registry.backend === "native" ? registry.fields.filter((field) => field.native) : registry.fields, "shownOf");
500
500
  var leftOut = /* @__PURE__ */ __name((fields) => fields.filter((field) => field.negatable).map((field) => field.name), "leftOut");
501
501
  var has = /* @__PURE__ */ __name((fields, operator) => fields.some((field) => field.operators.includes(operator)), "has");
@@ -532,7 +532,7 @@ var queryDescription = /* @__PURE__ */ __name((registry) => {
532
532
  return `${terms}; fields: ${fields.join(", ")}; e.g. ${shown[0]?.example ?? ""}${defaults}`;
533
533
  }, "queryDescription");
534
534
 
535
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
535
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/parser.js
536
536
  var whitespace = /* @__PURE__ */ __name((c) => /[ \t\n\r\u3000]/u.test(c), "whitespace");
537
537
  var reserved = /* @__PURE__ */ new Set([
538
538
  "+",
@@ -841,7 +841,7 @@ var implicitTextTerms = /* @__PURE__ */ __name((text5) => {
841
841
  return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") && ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "") ? [token.span.start] : []));
842
842
  }, "implicitTextTerms");
843
843
 
844
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
844
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/validate.js
845
845
  var inContext = /* @__PURE__ */ __name((context3, run2) => {
846
846
  try {
847
847
  run2();
@@ -916,7 +916,7 @@ var validateQuery = /* @__PURE__ */ __name((ast, registry, options = {}) => {
916
916
  }, "validateQuery");
917
917
  var fieldsNamed = /* @__PURE__ */ __name((ast) => new Set(walkQuery(ast.root).map((node) => node.field)), "fieldsNamed");
918
918
 
919
- // node_modules/.pnpm/@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
919
+ // node_modules/.pnpm/@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/query/registry.js
920
920
  var describeQuery = /* @__PURE__ */ __name((registry) => ({
921
921
  entity: registry.entity,
922
922
  backend: registry.backend,
@@ -987,7 +987,7 @@ var QUERY_REASONS = defineReasons([
987
987
  details: [...SPAN, ...details]
988
988
  })));
989
989
 
990
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/item.js
990
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/item.js
991
991
  var text = string();
992
992
  var count = pipe(number(), integer(), minValue(0));
993
993
  var MEETING_ISSUES = ["time_without_zone"];
@@ -1052,7 +1052,7 @@ var MEETING_QUERY = {
1052
1052
  })
1053
1053
  };
1054
1054
 
1055
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1055
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/answers.js
1056
1056
  var text2 = string();
1057
1057
  var count2 = pipe(number(), integer(), minValue(0));
1058
1058
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -1287,7 +1287,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
1287
1287
  };
1288
1288
  }, "meetingHitsList");
1289
1289
 
1290
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1290
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
1291
1291
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
1292
1292
  const parsed = urlOf(url);
1293
1293
  if (!parsed)
@@ -1321,7 +1321,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
1321
1321
  }
1322
1322
  }, "urlOf");
1323
1323
 
1324
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1324
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
1325
1325
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
1326
1326
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
1327
1327
  var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
@@ -1354,7 +1354,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
1354
1354
  return kept;
1355
1355
  }, "entryMetadata");
1356
1356
 
1357
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1357
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
1358
1358
  import { createHash } from "node:crypto";
1359
1359
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
1360
1360
  reference: cue2.reference,
@@ -1368,7 +1368,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
1368
1368
  text: cue2.text
1369
1369
  })).digest("hex"), "meetingCueFingerprint");
1370
1370
 
1371
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1371
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
1372
1372
  var EVENT_QUERY = defineQuery({
1373
1373
  entity: "event",
1374
1374
  backend: "sql",
@@ -1384,7 +1384,7 @@ var EVENT_QUERY = defineQuery({
1384
1384
  ]
1385
1385
  });
1386
1386
 
1387
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1387
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
1388
1388
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
1389
1389
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
1390
1390
  if (entry.recurrenceEndsAt !== null)
@@ -1407,7 +1407,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
1407
1407
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
1408
1408
  }, "entryInWindow");
1409
1409
 
1410
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/events.js
1410
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/events.js
1411
1411
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
1412
1412
  const current = await store.meeting(details.meeting.id);
1413
1413
  if (!current)
@@ -1450,7 +1450,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
1450
1450
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
1451
1451
  }, "linkEvent");
1452
1452
 
1453
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1453
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
1454
1454
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text5) => text5.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
1455
1455
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
1456
1456
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -1474,7 +1474,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
1474
1474
  };
1475
1475
  }, "validateMeetingParticipantSearch");
1476
1476
 
1477
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1477
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/reads.js
1478
1478
  var MeetingError = class extends CliError {
1479
1479
  static {
1480
1480
  __name(this, "MeetingError");
@@ -1606,7 +1606,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id3, accountId)
1606
1606
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
1607
1607
  }, "meetingSummaryAnswer");
1608
1608
 
1609
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/export.js
1609
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/export.js
1610
1610
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
1611
1611
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
1612
1612
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -1702,13 +1702,13 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id3, options) => {
1702
1702
  };
1703
1703
  }, "exportMeeting");
1704
1704
 
1705
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1705
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1706
1706
  import { createHash as createHash2 } from "node:crypto";
1707
1707
 
1708
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1708
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
1709
1709
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1710
1710
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
1711
- throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone`);
1711
+ throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
1712
1712
  const date = value.slice(0, 10);
1713
1713
  const instant = Date.parse(`${date}T00:00:00Z`);
1714
1714
  if (!Number.isFinite(instant) || new Date(instant).toISOString().slice(0, 10) !== date)
@@ -1716,7 +1716,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
1716
1716
  return new Date(value).toISOString();
1717
1717
  }, "meetingTimestamp");
1718
1718
 
1719
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1719
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
1720
1720
  var TASK_TYPES = ["bug", "feature", "chore"];
1721
1721
  var invalid3 = /* @__PURE__ */ __name((message) => {
1722
1722
  throw new CliError("validation_error", message);
@@ -1727,10 +1727,33 @@ var findingText = /* @__PURE__ */ __name((value, limit) => {
1727
1727
  return value.trim();
1728
1728
  }, "findingText");
1729
1729
  var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
1730
- var findingFields = /* @__PURE__ */ __name((value, allowed, noun) => {
1731
- if (Object.keys(value).some((key) => !allowed.includes(key)))
1732
- invalid3(`unknown ${noun} field`);
1730
+ var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
1731
+ var findingWhere = /* @__PURE__ */ __name((of) => {
1732
+ const id3 = typeof of.id === "string" ? of.id : null;
1733
+ const kind = typeof of.kind === "string" ? of.kind : null;
1734
+ return {
1735
+ where: id3 || kind ? ` in ${[id3, kind && `(${kind})`].filter(Boolean).join(" ")}` : "",
1736
+ named: { ...id3 ? { finding: id3 } : {}, ...kind ? { kind } : {} }
1737
+ };
1738
+ }, "findingWhere");
1739
+ var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
1740
+ const unknown = Object.keys(value).filter((key) => !allowed.includes(key));
1741
+ if (!unknown.length)
1742
+ return;
1743
+ const fields = unknown.map(snakeCase);
1744
+ const takes = allowed.map(snakeCase);
1745
+ const { where, named } = findingWhere(of);
1746
+ throw new CliError("validation_error", `unknown ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it takes ${takes.join(", ")}`, { reason: "finding.unknown-field", fields, allowed: takes, ...named });
1733
1747
  }, "findingFields");
1748
+ var findingNeeds = /* @__PURE__ */ __name((value, needed, noun) => {
1749
+ const missing = needed.filter((key) => value[key] === void 0);
1750
+ if (!missing.length)
1751
+ return;
1752
+ const fields = missing.map(snakeCase);
1753
+ const needs = needed.map(snakeCase);
1754
+ const { where, named } = findingWhere(value);
1755
+ throw new CliError("validation_error", `missing ${noun} field${fields.length > 1 ? "s" : ""} ${fields.join(", ")}${where}; it needs ${needs.join(", ")}`, { reason: "finding.missing-field", fields, needs, ...named });
1756
+ }, "findingNeeds");
1734
1757
  var SUBJECT = /^(person|organization|project):[1-9]\d*$|^task:[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/;
1735
1758
  var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
1736
1759
  if (!Array.isArray(raw) || raw.length < 1 || raw.length > 8)
@@ -1822,8 +1845,10 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1822
1845
  return invalid3("a task finding type is bug, chore or feature");
1823
1846
  if (!["explicit", "inferred"].includes(finding.commitment))
1824
1847
  return invalid3("task commitment must be explicit or inferred");
1825
- if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0) || finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1826
- return invalid3("optional dates and assignees require their supporting evidence");
1848
+ if (finding.dueAt === void 0 !== (finding.dueEvidence === void 0))
1849
+ 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>"]`);
1850
+ if (finding.assignee === void 0 !== (finding.assigneeEvidence === void 0))
1851
+ 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>"]`);
1827
1852
  if (finding.assignee !== void 0 && (typeof finding.assignee !== "string" || !/^person:[1-9]\d*$/.test(finding.assignee)))
1828
1853
  return invalid3("an assignee must be a person reference");
1829
1854
  return {
@@ -1834,15 +1859,18 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
1834
1859
  reason: findingText(finding.reason, 2e3),
1835
1860
  commitment: finding.commitment,
1836
1861
  ...finding.dueAt === void 0 ? {} : {
1837
- dueAt: meetingTimestamp(finding.dueAt, "finding due date"),
1838
- dueEvidence: support(finding.dueEvidence, evidence)
1862
+ dueAt: meetingTimestamp(finding.dueAt, "a task's due_at"),
1863
+ dueEvidence: support(finding.dueEvidence, evidence, "due_evidence")
1839
1864
  },
1840
- ...finding.assignee === void 0 ? {} : { assignee: finding.assignee, assigneeEvidence: support(finding.assigneeEvidence, evidence) }
1865
+ ...finding.assignee === void 0 ? {} : {
1866
+ assignee: finding.assignee,
1867
+ assigneeEvidence: support(finding.assigneeEvidence, evidence, "assignee_evidence")
1868
+ }
1841
1869
  };
1842
1870
  }, "validateFinding");
1843
- var support = /* @__PURE__ */ __name((value, evidence) => {
1871
+ var support = /* @__PURE__ */ __name((value, evidence, field) => {
1844
1872
  if (!Array.isArray(value) || value.length < 1 || value.length > 8 || value.some((ref) => typeof ref !== "string" || !evidence.some((item) => item.reference === ref)))
1845
- return invalid3("date and assignee support must cite the finding's evidence");
1873
+ return invalid3(`${field} lists 1\u20138 references this finding's evidence cites, as plain strings such as ["<reference>"], not evidence objects`);
1846
1874
  return [...new Set(value)].sort();
1847
1875
  }, "support");
1848
1876
  var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
@@ -1861,7 +1889,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1861
1889
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1862
1890
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1863
1891
 
1864
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1892
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/findings.js
1865
1893
  var MEETING_FINDINGS_KIND = "meeting_findings";
1866
1894
  var cue = /* @__PURE__ */ __name((raw) => {
1867
1895
  const reference2 = canonicalMeetingReference(raw);
@@ -1872,7 +1900,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1872
1900
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1873
1901
  var meetingFindingFingerprint = findingFingerprint;
1874
1902
 
1875
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1903
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
1876
1904
  var context = {
1877
1905
  command: "search meetings",
1878
1906
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1935,7 +1963,7 @@ var MEETING_FIELDS = defineQuery({
1935
1963
  });
1936
1964
  var parseMeetingQuery = /* @__PURE__ */ __name((query) => validateQuery(parseLucene(query, { defaultField: "text", proximity: true, ...context }), MEETING_HIT_QUERY, context), "parseMeetingQuery");
1937
1965
 
1938
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/language.js
1966
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/language.js
1939
1967
  var LATIN_WORDS = {
1940
1968
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1941
1969
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1984,7 +2012,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1984
2012
  return null;
1985
2013
  }, "transcriptLanguage");
1986
2014
 
1987
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
2015
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
1988
2016
  var contentHash = /* @__PURE__ */ __name(async (text5) => {
1989
2017
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text5));
1990
2018
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -2021,7 +2049,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
2021
2049
  return time;
2022
2050
  }, "timestamp");
2023
2051
 
2024
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2052
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
2025
2053
  var TranscriptTextError = class extends Error {
2026
2054
  static {
2027
2055
  __name(this, "TranscriptTextError");
@@ -2076,7 +2104,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
2076
2104
  return { header, lines };
2077
2105
  }, "parseTranscriptText");
2078
2106
 
2079
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2107
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
2080
2108
  var VttError = class extends Error {
2081
2109
  static {
2082
2110
  __name(this, "VttError");
@@ -2128,7 +2156,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
2128
2156
  return cues;
2129
2157
  }, "parseVtt");
2130
2158
 
2131
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/import.js
2159
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/import.js
2132
2160
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
2133
2161
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
2134
2162
  for (const file of files) {
@@ -2161,10 +2189,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
2161
2189
  return report;
2162
2190
  }, "importFiles");
2163
2191
 
2164
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/links.js
2192
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/links.js
2165
2193
  var CHAT_MESSAGES_READ = 1e5;
2166
2194
 
2167
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2195
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
2168
2196
  var nonempty = /* @__PURE__ */ __name((value, name) => {
2169
2197
  if (typeof value !== "string" || !value.trim())
2170
2198
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -2215,7 +2243,7 @@ var validateMeetingChange = /* @__PURE__ */ __name((change, create) => {
2215
2243
  return Object.freeze(result);
2216
2244
  }, "validateMeetingChange");
2217
2245
 
2218
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2246
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/passage.js
2219
2247
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
2220
2248
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
2221
2249
  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)))
@@ -2228,7 +2256,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
2228
2256
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
2229
2257
  }, "validateMeetingPassage");
2230
2258
 
2231
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2259
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
2232
2260
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2233
2261
  if (!original || typeof original !== "object" || Array.isArray(original))
2234
2262
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -2253,7 +2281,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
2253
2281
  return { ...input, limit, maxReadBytes };
2254
2282
  }, "validateMeetingPreparationContext");
2255
2283
 
2256
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2284
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
2257
2285
  var count3 = pipe(number(), integer(), minValue(0));
2258
2286
  var id = pipe(string(), minLength(1));
2259
2287
  var meetingProjectEvidence = strictObject({
@@ -2374,7 +2402,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
2374
2402
  };
2375
2403
  }, "meetingProjectEvidenceAnswer");
2376
2404
 
2377
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2405
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
2378
2406
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2379
2407
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
2380
2408
  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) || [
@@ -2394,7 +2422,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
2394
2422
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
2395
2423
  }, "validateMeetingHitSearch");
2396
2424
 
2397
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2425
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
2398
2426
  var ids = {
2399
2427
  meeting_id: "meetingId",
2400
2428
  identity_id: "participantIdentityId",
@@ -2485,7 +2513,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
2485
2513
  return { project: project.trim(), options, query: frozen.join(" AND ") };
2486
2514
  }, "prepareMeetingProjectEvidence");
2487
2515
 
2488
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2516
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
2489
2517
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
2490
2518
  const prepared = prepareMeetingProjectEvidence(project, request, now);
2491
2519
  const page = await read(prepared.project, prepared.options);
@@ -2493,7 +2521,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
2493
2521
  return meetingProjectEvidenceAnswer(page, prepared);
2494
2522
  }, "readMeetingProjectEvidence");
2495
2523
 
2496
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2524
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/pull.js
2497
2525
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
2498
2526
  const { identityExternalId, ...fields } = p;
2499
2527
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2632,7 +2660,7 @@ unlinked`, format)],
2632
2660
  return report;
2633
2661
  }, "pull");
2634
2662
 
2635
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2663
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
2636
2664
  var text3 = string();
2637
2665
  var count4 = pipe(number(), integer(), minValue(0));
2638
2666
  var id2 = pipe(number(), integer(), minValue(1));
@@ -2826,10 +2854,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2826
2854
  updated_at: new Date(one.updatedAt).toISOString()
2827
2855
  }), "eventItem");
2828
2856
 
2829
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2857
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
2830
2858
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2831
2859
 
2832
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2860
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
2833
2861
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2834
2862
  if (!original || typeof original !== "object" || Array.isArray(original))
2835
2863
  throw new CliError("validation_error", "related history request is required");
@@ -2859,7 +2887,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2859
2887
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2860
2888
  }, "validateMeetingRelatedHistory");
2861
2889
 
2862
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2890
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
2863
2891
  var text4 = string();
2864
2892
  var identifier = pipe(text4, minLength(1));
2865
2893
  var nullableText = nullable(text4);
@@ -2992,14 +3020,14 @@ var MEETING_RESULT_ENTITIES = {
2992
3020
  meeting_repair: repair
2993
3021
  };
2994
3022
 
2995
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/review.js
3023
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/review.js
2996
3024
  var REVIEW_LIMIT = { default: 50, most: 200 };
2997
3025
 
2998
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
3026
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
2999
3027
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
3000
3028
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
3001
3029
 
3002
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3030
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
3003
3031
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3004
3032
  input.signal?.throwIfAborted();
3005
3033
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -3020,10 +3048,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
3020
3048
  return { ...input, limit, maxReadBytes };
3021
3049
  }, "validateMeetingSeriesHistory");
3022
3050
 
3023
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3051
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
3024
3052
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
3025
3053
 
3026
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3054
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
3027
3055
  function invalid4(field, response = false) {
3028
3056
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
3029
3057
  }
@@ -3052,7 +3080,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
3052
3080
  cursorDetails(value);
3053
3081
  }, "validateMeetingSeriesInventoryCursor");
3054
3082
 
3055
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3083
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/meetings/stats.js
3056
3084
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
3057
3085
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
3058
3086
  const zone = timeZone ?? "UTC";
@@ -3187,7 +3215,131 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
3187
3215
  };
3188
3216
  }, "aggregateMeetingStats");
3189
3217
 
3190
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/domain/tags.js
3218
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/money.js
3219
+ var CURRENCY_SCALES = {
3220
+ AED: 2,
3221
+ AMD: 2,
3222
+ AUD: 2,
3223
+ BHD: 3,
3224
+ BYN: 2,
3225
+ CAD: 2,
3226
+ CHF: 2,
3227
+ CLP: 0,
3228
+ CNY: 2,
3229
+ CZK: 2,
3230
+ DKK: 2,
3231
+ EUR: 2,
3232
+ GBP: 2,
3233
+ GEL: 2,
3234
+ HUF: 2,
3235
+ ILS: 2,
3236
+ INR: 2,
3237
+ ISK: 0,
3238
+ JPY: 0,
3239
+ KGS: 2,
3240
+ KRW: 0,
3241
+ KWD: 3,
3242
+ KZT: 2,
3243
+ NOK: 2,
3244
+ PLN: 2,
3245
+ RSD: 2,
3246
+ RUB: 2,
3247
+ SEK: 2,
3248
+ THB: 2,
3249
+ TRY: 2,
3250
+ UAH: 2,
3251
+ USD: 2,
3252
+ UZS: 2,
3253
+ VND: 0
3254
+ };
3255
+ var refuse = /* @__PURE__ */ __name((message, reason) => {
3256
+ throw new CliError("validation_error", message, { reason });
3257
+ }, "refuse");
3258
+ var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
3259
+ var parseDecimal = /* @__PURE__ */ __name((text5, scale) => {
3260
+ const match = DECIMAL.exec(text5.trim());
3261
+ if (!match || (match[2] ?? "").length > scale)
3262
+ return void 0;
3263
+ return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
3264
+ }, "parseDecimal");
3265
+ var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
3266
+ const digits = BigInt(units).toString().padStart(scale + 1, "0");
3267
+ return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
3268
+ }, "formatDecimal");
3269
+ var groupDigits = /* @__PURE__ */ __name((decimal) => {
3270
+ const [whole = "0", fraction] = decimal.split(".");
3271
+ const grouped2 = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
3272
+ return fraction === void 0 ? grouped2 : `${grouped2}.${fraction}`;
3273
+ }, "groupDigits");
3274
+ var currencyOf = /* @__PURE__ */ __name((text5) => {
3275
+ const code = typeof text5 === "string" ? text5.trim().toUpperCase() : "";
3276
+ if (CURRENCY_SCALES[code] === void 0)
3277
+ return refuse(`${typeof text5 === "string" && text5.trim() ? text5.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
3278
+ return code;
3279
+ }, "currencyOf");
3280
+ var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
3281
+ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
3282
+ const scale = scaleOf(currency);
3283
+ const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
3284
+ if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
3285
+ 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");
3286
+ return Number(units);
3287
+ }, "minorUnits");
3288
+ var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
3289
+ amount: formatDecimal(units, scaleOf(currency)),
3290
+ currency
3291
+ }), "moneyOf");
3292
+ var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
3293
+ var QUANTITY_SCALE = 3;
3294
+ var quantityOf = /* @__PURE__ */ __name((text5) => {
3295
+ const thousandths = typeof text5 === "string" ? parseDecimal(text5, QUANTITY_SCALE) : void 0;
3296
+ if (thousandths === void 0 || thousandths === 0n)
3297
+ return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
3298
+ const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
3299
+ return { text: plain, thousandths };
3300
+ }, "quantityOf");
3301
+ var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
3302
+
3303
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/finance.js
3304
+ var INVOICE_DIRECTIONS = ["receivable", "payable"];
3305
+ var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
3306
+ var MONEY_DIRECTIONS = ["in", "out"];
3307
+ var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
3308
+ var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
3309
+ if (current === "draft" || current === "void")
3310
+ return current;
3311
+ if (paid <= 0)
3312
+ return "issued";
3313
+ return paid < total ? "partly_paid" : "paid";
3314
+ }, "settledStatus");
3315
+ var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
3316
+ var notes = /* @__PURE__ */ __name((...words2) => {
3317
+ const kept = words2.filter((word) => word !== null);
3318
+ return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
3319
+ }, "notes");
3320
+ var invoiceLine = /* @__PURE__ */ __name((invoice) => {
3321
+ const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
3322
+ const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
3323
+ return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
3324
+ }, "invoiceLine");
3325
+ var paymentLine = /* @__PURE__ */ __name((payment) => {
3326
+ const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
3327
+ return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
3328
+ }, "paymentLine");
3329
+ var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
3330
+ var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
3331
+
3332
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/orders.js
3333
+ var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
3334
+ var ORDER_PURPOSES = ["personal", "business", "client", "other"];
3335
+ var orderLine = /* @__PURE__ */ __name((order) => {
3336
+ const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
3337
+ const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
3338
+ return `${order.number ?? `#${order.id}`} \xB7 ${order.supplierName}${money} (${notes2})`;
3339
+ }, "orderLine");
3340
+ var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
3341
+
3342
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/tags.js
3191
3343
  var TAG_TYPES = ["chat", "contact", "message", "task"];
3192
3344
  var TAG = /^[a-z0-9-]{1,32}$/;
3193
3345
  var tagOf = /* @__PURE__ */ __name((value) => {
@@ -3262,6 +3414,7 @@ export {
3262
3414
  findingText,
3263
3415
  findingHash,
3264
3416
  findingFields,
3417
+ findingNeeds,
3265
3418
  validEvidence,
3266
3419
  findingId,
3267
3420
  validateFinding,
@@ -3303,6 +3456,29 @@ export {
3303
3456
  validateMeetingSeriesInventoryCursor,
3304
3457
  aggregateMeetingCounts,
3305
3458
  aggregateMeetingStats,
3459
+ CURRENCY_SCALES,
3460
+ parseDecimal,
3461
+ formatDecimal,
3462
+ currencyOf,
3463
+ scaleOf,
3464
+ minorUnits,
3465
+ moneyOf,
3466
+ moneyLabel,
3467
+ quantityOf,
3468
+ lineUnits,
3469
+ INVOICE_DIRECTIONS,
3470
+ INVOICE_STATUSES,
3471
+ MONEY_DIRECTIONS,
3472
+ FINANCE_REVIEWS,
3473
+ settledStatus,
3474
+ invoiceLine,
3475
+ paymentLine,
3476
+ invoiceTitle,
3477
+ paymentEntryTitle,
3478
+ ORDER_STATUSES,
3479
+ ORDER_PURPOSES,
3480
+ orderLine,
3481
+ orderTitle,
3306
3482
  TAG_TYPES,
3307
3483
  tagOf,
3308
3484
  normalizeTag