@wirecat/drive-cli 0.62.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 (111) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-CKD2DWUK.js → all-profiles-GZJS3UKC.js} +6 -7
  3. package/dist/bundle/{anthropic-E3T4USLA.js → anthropic-RGV3WXX5.js} +3 -3
  4. package/dist/bundle/{app-server-JB2AEWWL.js → app-server-AA2PJ7PV.js} +40 -41
  5. package/dist/bundle/{bun-CC44AAND.js → bun-OXZYIA3R.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-AUMFKYVR.js → bun-sqlite-D45NSDM3.js} +2 -2
  7. package/dist/bundle/{chunk-WZKEU7WR.js → chunk-2NIC72HH.js} +1 -1
  8. package/dist/bundle/{chunk-HCNQT3QE.js → chunk-2TDUGC5D.js} +331 -280
  9. package/dist/bundle/{chunk-DWJHL6DV.js → chunk-2TFXK3R4.js} +4 -4
  10. package/dist/bundle/{chunk-PEQA6LA5.js → chunk-33MGFUED.js} +169 -140
  11. package/dist/bundle/{chunk-YPFUYQDP.js → chunk-3BZRKLJ6.js} +12 -12
  12. package/dist/bundle/{chunk-YALI4C7C.js → chunk-3HK5WMI5.js} +5 -5
  13. package/dist/bundle/{chunk-R347FPYU.js → chunk-3QINVLZI.js} +1 -1
  14. package/dist/bundle/{chunk-LQKD257P.js → chunk-44SBK6KB.js} +938 -532
  15. package/dist/bundle/{chunk-XZUS7XRO.js → chunk-4CIZWCXV.js} +1 -1
  16. package/dist/bundle/{chunk-XS5POQST.js → chunk-4S4JMW6I.js} +1 -1
  17. package/dist/bundle/{chunk-YMWENGKH.js → chunk-534OBX5Y.js} +1 -1
  18. package/dist/bundle/{chunk-4SIZEJ3M.js → chunk-5PPL7JDM.js} +1 -1
  19. package/dist/bundle/{chunk-L7K2MOIC.js → chunk-6KQJSFYF.js} +18 -18
  20. package/dist/bundle/{chunk-VAYB52HF.js → chunk-6MQSQ4LX.js} +20 -20
  21. package/dist/bundle/{chunk-DJOAMGF4.js → chunk-7EMQ26BA.js} +9 -9
  22. package/dist/bundle/{chunk-TDX4GZFO.js → chunk-ABYGSJZ4.js} +4 -4
  23. package/dist/bundle/{chunk-FNWIJ6EJ.js → chunk-AEX37ETW.js} +1 -1
  24. package/dist/bundle/{chunk-SVPCHFKI.js → chunk-BKYMKVHT.js} +2 -2
  25. package/dist/bundle/{chunk-OBH5BA62.js → chunk-CE2TJBLP.js} +2 -2
  26. package/dist/bundle/{chunk-QTI6IVHZ.js → chunk-DJ3SDJZY.js} +6 -6
  27. package/dist/bundle/{chunk-XFRRKZHQ.js → chunk-DJHLVUL6.js} +16 -13
  28. package/dist/bundle/{chunk-JK3U25QZ.js → chunk-E4SDKMBJ.js} +59 -1
  29. package/dist/bundle/{chunk-HG6CAYJH.js → chunk-FRIJUILO.js} +2 -2
  30. package/dist/bundle/{chunk-RPMKG63Z.js → chunk-HZZCEQTH.js} +3 -3
  31. package/dist/bundle/{chunk-YXYTY4GF.js → chunk-J24ZFCWM.js} +16 -16
  32. package/dist/bundle/{chunk-E43ENLJJ.js → chunk-J4DIHPZ6.js} +1 -1
  33. package/dist/bundle/{chunk-SW4I5BR7.js → chunk-L37LMMRJ.js} +1 -1
  34. package/dist/bundle/{chunk-Q2LRPOKL.js → chunk-LMAVCYLQ.js} +3 -3
  35. package/dist/bundle/{chunk-T7X53FCJ.js → chunk-LZEOQW7S.js} +31 -31
  36. package/dist/bundle/{chunk-T5NWWXS2.js → chunk-MOTRI3SY.js} +1 -1
  37. package/dist/bundle/{chunk-ONP2IBHY.js → chunk-ND6LLYGF.js} +97 -80
  38. package/dist/bundle/{chunk-2KN35F32.js → chunk-NEFSGCVA.js} +8 -8
  39. package/dist/bundle/{chunk-JN5TVEEL.js → chunk-OXY6SSZG.js} +101 -14
  40. package/dist/bundle/{chunk-W4RTIL7S.js → chunk-PDCCYHCH.js} +2 -2
  41. package/dist/bundle/{chunk-AH5C3D3D.js → chunk-PO5RQQIG.js} +4 -4
  42. package/dist/bundle/{chunk-CZ2GJHLL.js → chunk-Q5DJTRKV.js} +2 -2
  43. package/dist/bundle/{chunk-O7ALBI2I.js → chunk-RKELRWH7.js} +3 -3
  44. package/dist/bundle/{chunk-67ZQCWBV.js → chunk-S4RXABDR.js} +2 -2
  45. package/dist/bundle/{chunk-QCX6XZLA.js → chunk-SXM6MHRR.js} +9 -9
  46. package/dist/bundle/{chunk-RIDQNVZM.js → chunk-TF23BZW5.js} +2 -2
  47. package/dist/bundle/{chunk-N7OZPKU7.js → chunk-TWUH22Z5.js} +1 -1
  48. package/dist/bundle/chunk-UPOSDTPT.js +87 -0
  49. package/dist/bundle/{chunk-CJHY5YIF.js → chunk-V3NVXIQR.js} +353 -114
  50. package/dist/bundle/{chunk-QH7DOVO3.js → chunk-VAUMOZU5.js} +44 -28
  51. package/dist/bundle/{chunk-VQDD64A4.js → chunk-VJEOGKAN.js} +7 -9
  52. package/dist/bundle/{chunk-MN4VXU3M.js → chunk-VKPCONDQ.js} +3 -3
  53. package/dist/bundle/{chunk-LWE4JGRN.js → chunk-WYGWWHZP.js} +2 -2
  54. package/dist/bundle/{chunk-EW7PKB4M.js → chunk-XDC3TWTL.js} +25 -25
  55. package/dist/bundle/{chunk-KLFSRKHB.js → chunk-XIUDS3OK.js} +1 -1
  56. package/dist/bundle/{chunk-U2BFYSQV.js → chunk-XNVFKMVR.js} +8559 -3343
  57. package/dist/bundle/{chunk-IR4SQLBR.js → chunk-XR6ESRU6.js} +1 -1
  58. package/dist/bundle/{chunk-RWSXVCSG.js → chunk-Y6GNA7HE.js} +2 -2
  59. package/dist/bundle/{chunk-7ZXIWZQ6.js → chunk-YGU6ULU5.js} +10 -10
  60. package/dist/bundle/{chunk-UGXN5D7U.js → chunk-YIP7ELON.js} +108 -62
  61. package/dist/bundle/{chunk-XEW2EN6F.js → chunk-Z42YYLTS.js} +31 -23
  62. package/dist/bundle/{chunk-DRZZBN3V.js → chunk-Z5KC7XBR.js} +1 -1
  63. package/dist/bundle/{chunk-7W5HYGVW.js → chunk-ZM5J6ZMB.js} +1 -1
  64. package/dist/bundle/{chunk-YOJDGAPT.js → chunk-ZOJU7ZFI.js} +7 -7
  65. package/dist/bundle/{command-contract-OB5BRABN.js → command-contract-BRW3AP44.js} +13 -14
  66. package/dist/bundle/{decode-WIIX3Y2X.js → decode-G5YEIPNC.js} +2 -2
  67. package/dist/bundle/drive.js +3 -3
  68. package/dist/bundle/{echarts-OYINM4C4.js → echarts-W2CWHNXR.js} +2 -2
  69. package/dist/bundle/{embed-DWZIYMBX.js → embed-OBFFPVF4.js} +3 -3
  70. package/dist/bundle/{embedder-ILWH7ZRM.js → embedder-NGCBQHIG.js} +6 -6
  71. package/dist/bundle/{entry-V5V3TOTY.js → entry-ET6HGM7A.js} +5 -5
  72. package/dist/bundle/{first-run-V3VVLQF4.js → first-run-JG52UZVO.js} +5 -5
  73. package/dist/bundle/{first-screen-Y3RIN7FU.js → first-screen-CIL3GFAA.js} +14 -15
  74. package/dist/bundle/{google-KLZSUAVY.js → google-CIWUVJ5C.js} +4 -4
  75. package/dist/bundle/{google-api-HZQ5R4ZO.js → google-api-Z3NSTBBR.js} +44 -45
  76. package/dist/bundle/{grants-L7XLHLUT.js → grants-3S4RL3WB.js} +49 -50
  77. package/dist/bundle/{identity-J2DON4IO.js → identity-OM6GFZ7T.js} +1 -1
  78. package/dist/bundle/{instructions-HGOJ23AJ.js → instructions-YQBQSYSS.js} +1 -1
  79. package/dist/bundle/{login-BD2TS4GY.js → login-7RYSDVN3.js} +48 -49
  80. package/dist/bundle/{node-CPKTDPH7.js → node-IVU33RL7.js} +2 -2
  81. package/dist/bundle/{node-sqlite-IXDCRLSX.js → node-sqlite-SIH5BEW2.js} +3 -3
  82. package/dist/bundle/{oauth-HOGY4YBB.js → oauth-PT4JEHLL.js} +4 -4
  83. package/dist/bundle/{open-O7P3ZV3Y.js → open-IAO2SNII.js} +2 -2
  84. package/dist/bundle/{openai-RCFQKCXC.js → openai-SGOUBHXP.js} +10 -10
  85. package/dist/bundle/{process-KXDRJO22.js → process-BPBMV3AT.js} +1 -1
  86. package/dist/bundle/{program-UCHFC7JQ.js → program-MYKKJ4F6.js} +68 -67
  87. package/dist/bundle/{prompt-EVPPBN5W.js → prompt-3ZM64DCB.js} +2 -2
  88. package/dist/bundle/{recognize-MRCYGP2J.js → recognize-A5C5RPB3.js} +1 -1
  89. package/dist/bundle/{remote-L3L4PHKF.js → remote-VWYFLRGO.js} +4 -4
  90. package/dist/bundle/{rerank-PSOE6XFT.js → rerank-4NGQWREA.js} +4 -4
  91. package/dist/bundle/{serve-72OGS3BF.js → serve-Y6LQTFH5.js} +6 -6
  92. package/dist/bundle/{server-SCXKYHBO.js → server-6AUHIIUA.js} +32 -33
  93. package/dist/bundle/server-PFHI35HA.js +69 -0
  94. package/dist/bundle/{services-YAFTELBI.js → services-2W4J7EMW.js} +26 -21
  95. package/dist/bundle/{sqlite-runtime-DLK4SU33.js → sqlite-runtime-P6BBDX2H.js} +3 -3
  96. package/dist/bundle/{state-T5VNAJSZ.js → state-PXKKXR3R.js} +3 -3
  97. package/dist/bundle/{store-R6MSY2IM.js → store-CN6JEUC4.js} +18 -10
  98. package/dist/bundle/{store-4OFK7PKQ.js → store-IVV2BAGZ.js} +42 -12
  99. package/dist/bundle/store-maintenance-command-MSY2QNEH.js +59 -0
  100. package/dist/bundle/tokens-P4LPNUFW.js +102 -0
  101. package/dist/commands/config.d.ts.map +1 -1
  102. package/dist/commands/config.js +5 -1
  103. package/dist/commands/config.js.map +1 -1
  104. package/dist/version.d.ts +1 -1
  105. package/dist/version.js +1 -1
  106. package/package.json +2 -2
  107. package/dist/bundle/chunk-AQVUEZEP.js +0 -22
  108. package/dist/bundle/chunk-UOXOLGNG.js +0 -42
  109. package/dist/bundle/server-C5TGNFXW.js +0 -70
  110. package/dist/bundle/store-maintenance-command-QDMCXGV6.js +0 -60
  111. package/dist/bundle/tokens-HIG36RNS.js +0 -103
@@ -9,6 +9,13 @@ import {
9
9
  timezoneOf,
10
10
  validateQuery
11
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
@@ -47,7 +54,7 @@ import {
47
54
  __name
48
55
  } from "./chunk-ZVVMGPBJ.js";
49
56
 
50
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
51
58
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
52
59
  var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
53
60
  var PAYMENT_STATES = ["expected", "paid", "cancelled"];
@@ -141,7 +148,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
141
148
  return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
142
149
  }, "paymentTitle");
143
150
 
144
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
145
152
  var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
146
153
  const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
147
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)))
@@ -154,7 +161,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
154
161
  throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
155
162
  }, "validateMeetingPassage");
156
163
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
158
165
  var invalid2 = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
159
166
  var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
160
167
  if (!Number.isSafeInteger(value) || value < minimum)
@@ -191,7 +198,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text7) => {
191
198
  }, "parseMeetingReference");
192
199
  var canonicalMeetingReference = /* @__PURE__ */ __name((text7) => formatMeetingReference(parseMeetingReference(text7)), "canonicalMeetingReference");
193
200
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
195
202
  var text = string();
196
203
  var count = pipe(number(), integer(), minValue(0));
197
204
  var MEETING_ISSUES = ["time_without_zone"];
@@ -256,7 +263,7 @@ var MEETING_QUERY = {
256
263
  })
257
264
  };
258
265
 
259
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
260
267
  var text2 = string();
261
268
  var count2 = pipe(number(), integer(), minValue(0));
262
269
  var iso2 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
@@ -491,7 +498,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
491
498
  };
492
499
  }, "meetingHitsList");
493
500
 
494
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
495
502
  var joinKeyOf = /* @__PURE__ */ __name((url) => {
496
503
  const parsed = urlOf(url);
497
504
  if (!parsed)
@@ -525,7 +532,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
525
532
  }
526
533
  }, "urlOf");
527
534
 
528
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
529
536
  var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
530
537
  var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
531
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");
@@ -544,7 +551,11 @@ var ENTRY_METADATA_KEYS = [
544
551
  "guestsCanSeeOtherGuests",
545
552
  "hangoutLink",
546
553
  "locked",
547
- "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"
548
559
  ];
549
560
  var entryMetadata = /* @__PURE__ */ __name((metadata) => {
550
561
  const kept = {};
@@ -558,7 +569,7 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
558
569
  return kept;
559
570
  }, "entryMetadata");
560
571
 
561
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
562
573
  import { createHash } from "node:crypto";
563
574
  var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
564
575
  reference: cue2.reference,
@@ -572,7 +583,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
572
583
  text: cue2.text
573
584
  })).digest("hex"), "meetingCueFingerprint");
574
585
 
575
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
576
587
  var EVENT_QUERY = defineQuery({
577
588
  entity: "event",
578
589
  backend: "sql",
@@ -588,7 +599,7 @@ var EVENT_QUERY = defineQuery({
588
599
  ]
589
600
  });
590
601
 
591
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
592
603
  var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
593
604
  var seriesEnd = /* @__PURE__ */ __name((entry) => {
594
605
  if (entry.recurrenceEndsAt !== null)
@@ -611,7 +622,7 @@ var entryInWindow = /* @__PURE__ */ __name((entry, window) => {
611
622
  return Math.max(entry.endsAt ?? start, start + 1) > window.from;
612
623
  }, "entryInWindow");
613
624
 
614
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
615
626
  var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now()) => {
616
627
  const current = await store.meeting(details.meeting.id);
617
628
  if (!current)
@@ -654,7 +665,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now())
654
665
  return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
655
666
  }, "linkEvent");
656
667
 
657
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
658
669
  var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text7) => text7.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
659
670
  var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
660
671
  if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
@@ -678,7 +689,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
678
689
  };
679
690
  }, "validateMeetingParticipantSearch");
680
691
 
681
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
682
693
  var MeetingError = class extends CliError {
683
694
  static {
684
695
  __name(this, "MeetingError");
@@ -810,7 +821,7 @@ var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId)
810
821
  return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
811
822
  }, "meetingSummaryAnswer");
812
823
 
813
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
814
825
  var timestamp = /* @__PURE__ */ __name((milliseconds) => {
815
826
  if (!Number.isSafeInteger(milliseconds) || milliseconds < 0)
816
827
  throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
@@ -906,10 +917,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
906
917
  };
907
918
  }, "exportMeeting");
908
919
 
909
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
910
921
  import { createHash as createHash2 } from "node:crypto";
911
922
 
912
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
913
924
  var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
914
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)))
915
926
  throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
@@ -920,7 +931,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
920
931
  return new Date(value).toISOString();
921
932
  }, "meetingTimestamp");
922
933
 
923
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
924
935
  var TASK_TYPES = ["bug", "feature", "chore"];
925
936
  var invalid3 = /* @__PURE__ */ __name((message) => {
926
937
  throw new CliError("validation_error", message);
@@ -1093,7 +1104,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
1093
1104
  var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
1094
1105
  var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
1095
1106
 
1096
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1097
1108
  var MEETING_FINDINGS_KIND = "meeting_findings";
1098
1109
  var cue = /* @__PURE__ */ __name((raw) => {
1099
1110
  const reference2 = canonicalMeetingReference(raw);
@@ -1104,7 +1115,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
1104
1115
  var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
1105
1116
  var meetingFindingFingerprint = findingFingerprint;
1106
1117
 
1107
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1108
1119
  var context = {
1109
1120
  command: "search meetings",
1110
1121
  guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
@@ -1224,7 +1235,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text7) => {
1224
1235
  return { version: 1, language: "lucene-v1", root };
1225
1236
  }, "meetingWordsQuery");
1226
1237
 
1227
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1228
1239
  var LATIN_WORDS = {
1229
1240
  en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
1230
1241
  es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
@@ -1273,7 +1284,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
1273
1284
  return null;
1274
1285
  }, "transcriptLanguage");
1275
1286
 
1276
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1277
1288
  var contentHash = /* @__PURE__ */ __name(async (text7) => {
1278
1289
  const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text7));
1279
1290
  return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
@@ -1310,7 +1321,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
1310
1321
  return time2;
1311
1322
  }, "timestamp");
1312
1323
 
1313
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1314
1325
  var TranscriptTextError = class extends Error {
1315
1326
  static {
1316
1327
  __name(this, "TranscriptTextError");
@@ -1365,7 +1376,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
1365
1376
  return { header, lines };
1366
1377
  }, "parseTranscriptText");
1367
1378
 
1368
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1369
1380
  var VttError = class extends Error {
1370
1381
  static {
1371
1382
  __name(this, "VttError");
@@ -1417,7 +1428,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
1417
1428
  return cues;
1418
1429
  }, "parseVtt");
1419
1430
 
1420
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1421
1432
  var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
1422
1433
  const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
1423
1434
  for (const file of files) {
@@ -1450,10 +1461,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
1450
1461
  return report;
1451
1462
  }, "importFiles");
1452
1463
 
1453
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1454
1465
  var CHAT_MESSAGES_READ = 1e5;
1455
1466
 
1456
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1457
1468
  var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
1458
1469
  const provider = scope2?.provider;
1459
1470
  const account = scope2?.account;
@@ -1462,7 +1473,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope2) => {
1462
1473
  return Object.freeze({ provider, account });
1463
1474
  }, "snapshotMeetingScope");
1464
1475
 
1465
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1466
1477
  var nonempty = /* @__PURE__ */ __name((value, name) => {
1467
1478
  if (typeof value !== "string" || !value.trim())
1468
1479
  throw new CliError("validation_error", `${name} must be nonempty`);
@@ -1528,7 +1539,7 @@ var dispatchMeetingMutation = /* @__PURE__ */ __name(async (options, dispatch) =
1528
1539
  return { applied: true, value: await dispatch(signal) };
1529
1540
  }, "dispatchMeetingMutation");
1530
1541
 
1531
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1532
1543
  var id = /* @__PURE__ */ __name((value) => {
1533
1544
  if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
1534
1545
  throw new CliError("validation_error", "meeting context identifiers must be positive integers");
@@ -1650,7 +1661,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope2, accountId, ports) =>
1650
1661
  };
1651
1662
  }, "createMeetingContext");
1652
1663
 
1653
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1654
1665
  var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1655
1666
  if (!original || typeof original !== "object" || Array.isArray(original))
1656
1667
  throw new CliError("validation_error", "meeting preparation context is required");
@@ -1675,7 +1686,7 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
1675
1686
  return { ...input, limit, maxReadBytes };
1676
1687
  }, "validateMeetingPreparationContext");
1677
1688
 
1678
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1679
1690
  var count3 = pipe(number(), integer(), minValue(0));
1680
1691
  var id2 = pipe(string(), minLength(1));
1681
1692
  var meetingProjectEvidence = strictObject({
@@ -1796,7 +1807,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
1796
1807
  };
1797
1808
  }, "meetingProjectEvidenceAnswer");
1798
1809
 
1799
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1800
1811
  var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1801
1812
  const integer3 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
1802
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) || [
@@ -1816,7 +1827,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
1816
1827
  throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
1817
1828
  }, "validateMeetingHitSearch");
1818
1829
 
1819
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1820
1831
  var ids = {
1821
1832
  meeting_id: "meetingId",
1822
1833
  identity_id: "participantIdentityId",
@@ -1907,7 +1918,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project2, request =
1907
1918
  return { project: project2.trim(), options, query: frozen.join(" AND ") };
1908
1919
  }, "prepareMeetingProjectEvidence");
1909
1920
 
1910
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
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
1911
1922
  var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, request = {}, now = Date.now()) => {
1912
1923
  const prepared = prepareMeetingProjectEvidence(project2, request, now);
1913
1924
  const page = await read(prepared.project, prepared.options);
@@ -1915,7 +1926,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project2, r
1915
1926
  return meetingProjectEvidenceAnswer(page, prepared);
1916
1927
  }, "readMeetingProjectEvidence");
1917
1928
 
1918
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
1919
1930
  var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
1920
1931
  const { identityExternalId, ...fields2 } = p;
1921
1932
  const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
@@ -2077,7 +2088,7 @@ unlinked`, format)],
2077
2088
  return report;
2078
2089
  }, "pull");
2079
2090
 
2080
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
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
2081
2092
  var text4 = string();
2082
2093
  var count4 = pipe(number(), integer(), minValue(0));
2083
2094
  var id3 = pipe(number(), integer(), minValue(1));
@@ -2271,10 +2282,10 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
2271
2282
  updated_at: new Date(one.updatedAt).toISOString()
2272
2283
  }), "eventItem");
2273
2284
 
2274
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2275
2286
  var strongRecordingValidator = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length <= 1024 && /^"[\x21\x23-\x7e\x80-\xff]*"$/.test(value), "strongRecordingValidator");
2276
2287
 
2277
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2278
2289
  var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2279
2290
  if (!original || typeof original !== "object" || Array.isArray(original))
2280
2291
  throw new CliError("validation_error", "related history request is required");
@@ -2304,7 +2315,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
2304
2315
  return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
2305
2316
  }, "validateMeetingRelatedHistory");
2306
2317
 
2307
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
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
2308
2319
  var text5 = string();
2309
2320
  var identifier = pipe(text5, minLength(1));
2310
2321
  var nullableText = nullable(text5);
@@ -2437,14 +2448,14 @@ var MEETING_RESULT_ENTITIES = {
2437
2448
  meeting_repair: repair
2438
2449
  };
2439
2450
 
2440
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2441
2452
  var REVIEW_LIMIT = { default: 50, most: 200 };
2442
2453
 
2443
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2444
2455
  var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
2445
2456
  \`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
2446
2457
 
2447
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2448
2459
  var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2449
2460
  input.signal?.throwIfAborted();
2450
2461
  if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
@@ -2465,10 +2476,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
2465
2476
  return { ...input, limit, maxReadBytes };
2466
2477
  }, "validateMeetingSeriesHistory");
2467
2478
 
2468
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2469
2480
  var occurrenceId = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim().length > 0 && value.length <= 1e3 && !/[\0\r\n]/.test(value), "occurrenceId");
2470
2481
 
2471
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2472
2483
  function invalid4(field, response = false) {
2473
2484
  throw new CliError(response ? "invalid_response" : "validation_error", `invalid meeting inventory ${field}`);
2474
2485
  }
@@ -2497,7 +2508,7 @@ var validateMeetingSeriesInventoryCursor = /* @__PURE__ */ __name((value) => {
2497
2508
  cursorDetails(value);
2498
2509
  }, "validateMeetingSeriesInventoryCursor");
2499
2510
 
2500
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2501
2512
  var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
2502
2513
  var zoneOf = /* @__PURE__ */ __name((timeZone) => {
2503
2514
  const zone = timeZone ?? "UTC";
@@ -2632,7 +2643,7 @@ var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
2632
2643
  };
2633
2644
  }, "aggregateMeetingStats");
2634
2645
 
2635
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2636
2647
  var TASK_KINDS = ["question", "request", "mention", "promise"];
2637
2648
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
2638
2649
  var CLOSED_STATES = ["done", "dismissed"];
@@ -2647,7 +2658,7 @@ function closeTask(task, state, by, at, reason) {
2647
2658
  }
2648
2659
  __name(closeTask, "closeTask");
2649
2660
 
2650
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2651
2662
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
2652
2663
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
2653
2664
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -2676,7 +2687,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
2676
2687
  }, "priorityOf");
2677
2688
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
2678
2689
 
2679
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2680
2691
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
2681
2692
  async function find(id5) {
2682
2693
  const task = await store.get(id5);
@@ -2736,13 +2747,13 @@ function median(values) {
2736
2747
  }
2737
2748
  __name(median, "median");
2738
2749
 
2739
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2740
2751
  function matches(task, filter) {
2741
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);
2742
2753
  }
2743
2754
  __name(matches, "matches");
2744
2755
 
2745
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/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
2746
2757
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
2747
2758
  var MEMORY_KINDS = ["summary", "digest", "preference"];
2748
2759
  var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
@@ -2750,7 +2761,7 @@ var MEMORY_SCOPES = ["personal", "work"];
2750
2761
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
2751
2762
  var TASK_TYPES2 = [...WORK_TASK_TYPES, ...TASK_KINDS];
2752
2763
 
2753
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/entities/fields.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
2754
2765
  var text6 = string();
2755
2766
  var id4 = pipe(string(), minLength(1));
2756
2767
  var time = isoTime;
@@ -2774,7 +2785,7 @@ var author = strictObject({
2774
2785
  name: nullable(text6)
2775
2786
  });
2776
2787
 
2777
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
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
2778
2789
  var organization = strictObject({
2779
2790
  id: id4,
2780
2791
  ref: reference,
@@ -2804,42 +2815,108 @@ var reminder = strictObject({
2804
2815
  receipt: nullable(text6)
2805
2816
  });
2806
2817
 
2807
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/domain/tags.js
2808
- var TAG_TYPES = ["chat", "contact", "message", "task"];
2809
- var TAG = /^[a-z0-9-]{1,32}$/;
2810
- var tagOf = /* @__PURE__ */ __name((value) => {
2811
- const tag = value.trim().toLowerCase();
2812
- return TAG.test(tag) ? tag : void 0;
2813
- }, "tagOf");
2814
- var normalizeTag = /* @__PURE__ */ __name((value) => {
2815
- const tag = tagOf(value);
2816
- if (tag === void 0)
2817
- throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
2818
- return tag;
2819
- }, "normalizeTag");
2820
-
2821
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
2822
- var LINK_KINDS = [
2823
- "links-to",
2824
- "blocked-by",
2825
- "follow-up-of",
2826
- "about",
2827
- "member-of",
2828
- "labelled",
2829
- "answered-by",
2830
- "evidence",
2831
- "created-from",
2832
- "duplicate-of",
2833
- "related-to",
2834
- "assigned-to",
2835
- "attached"
2836
- ];
2837
- var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
2838
- var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
2839
- var RELATION_KINDS = ["member-of", "related-to"];
2840
- var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
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");
2841
2918
 
2842
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/domain/money.js
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
2843
2920
  var CURRENCY_SCALES = {
2844
2921
  AED: 2,
2845
2922
  AMD: 2,
@@ -2887,7 +2964,10 @@ var parseDecimal = /* @__PURE__ */ __name((text7, scale) => {
2887
2964
  return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
2888
2965
  }, "parseDecimal");
2889
2966
  var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
2890
- const digits = BigInt(units).toString().padStart(scale + 1, "0");
2967
+ const value = BigInt(units);
2968
+ if (value < 0n)
2969
+ return `-${formatDecimal(-value, scale)}`;
2970
+ const digits = value.toString().padStart(scale + 1, "0");
2891
2971
  return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
2892
2972
  }, "formatDecimal");
2893
2973
  var groupDigits = /* @__PURE__ */ __name((decimal) => {
@@ -2909,6 +2989,12 @@ var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") =
2909
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");
2910
2990
  return Number(units);
2911
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");
2912
2998
  var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
2913
2999
  amount: formatDecimal(units, scaleOf(currency)),
2914
3000
  currency
@@ -2924,7 +3010,7 @@ var quantityOf = /* @__PURE__ */ __name((text7) => {
2924
3010
  }, "quantityOf");
2925
3011
  var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
2926
3012
 
2927
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/domain/finance.js
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
2928
3014
  var INVOICE_DIRECTIONS = ["receivable", "payable"];
2929
3015
  var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
2930
3016
  var MONEY_DIRECTIONS = ["in", "out"];
@@ -2953,7 +3039,17 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
2953
3039
  var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
2954
3040
  var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
2955
3041
 
2956
- // node_modules/.pnpm/@wirecat+cli-core@0.604.0_@wirecat+cli-base@0.80.9_commander@15.0.0_esbuild@0.28.2_type_4b96f151b4ca40121094ad166c695991/node_modules/@wirecat/cli-core/dist/domain/orders.js
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
2957
3053
  var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
2958
3054
  var ORDER_PURPOSES = ["personal", "business", "client", "other"];
2959
3055
  var orderLine = /* @__PURE__ */ __name((order) => {
@@ -2963,6 +3059,119 @@ var orderLine = /* @__PURE__ */ __name((order) => {
2963
3059
  }, "orderLine");
2964
3060
  var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
2965
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
3138
+ var TAG_TYPES = ["chat", "contact", "message", "task"];
3139
+ var TAG = /^[a-z0-9-]{1,32}$/;
3140
+ var tagOf = /* @__PURE__ */ __name((value) => {
3141
+ const tag = value.trim().toLowerCase();
3142
+ return TAG.test(tag) ? tag : void 0;
3143
+ }, "tagOf");
3144
+ var normalizeTag = /* @__PURE__ */ __name((value) => {
3145
+ const tag = tagOf(value);
3146
+ if (tag === void 0)
3147
+ throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
3148
+ return tag;
3149
+ }, "normalizeTag");
3150
+
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
3152
+ var LINK_KINDS = [
3153
+ "links-to",
3154
+ "blocked-by",
3155
+ "follow-up-of",
3156
+ "about",
3157
+ "member-of",
3158
+ "labelled",
3159
+ "answered-by",
3160
+ "evidence",
3161
+ "created-from",
3162
+ "duplicate-of",
3163
+ "related-to",
3164
+ "reports-to",
3165
+ "customer-of",
3166
+ "partner-of",
3167
+ "assigned-to",
3168
+ "attached"
3169
+ ];
3170
+ var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
3171
+ var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
3172
+ var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
3173
+ var COUNTERPART_ROLE = "counterpart";
3174
+
2966
3175
  export {
2967
3176
  formatMeetingReference,
2968
3177
  parseMeetingReference,
@@ -3051,14 +3260,58 @@ export {
3051
3260
  validateMeetingSeriesInventoryCursor,
3052
3261
  aggregateMeetingCounts,
3053
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,
3054
3307
  TAG_TYPES,
3055
3308
  tagOf,
3056
3309
  normalizeTag,
3057
3310
  LINK_KINDS,
3058
3311
  LINK_ORIGINS,
3059
3312
  LINK_SOURCES,
3060
- RELATION_KINDS,
3061
3313
  linkKind,
3314
+ COUNTERPART_ROLE,
3062
3315
  TASK_KINDS,
3063
3316
  TASK_STATES,
3064
3317
  CLOSED_STATES,
@@ -3080,28 +3333,6 @@ export {
3080
3333
  MEMORY_SCOPES,
3081
3334
  WORK_TASK_TYPES,
3082
3335
  TASK_TYPES2 as TASK_TYPES,
3083
- parseDecimal,
3084
- formatDecimal,
3085
- currencyOf,
3086
- scaleOf,
3087
- minorUnits,
3088
- moneyOf,
3089
- moneyLabel,
3090
- quantityOf,
3091
- lineUnits,
3092
- INVOICE_DIRECTIONS,
3093
- INVOICE_STATUSES,
3094
- MONEY_DIRECTIONS,
3095
- FINANCE_REVIEWS,
3096
- settledStatus,
3097
- invoiceLine,
3098
- paymentLine,
3099
- invoiceTitle,
3100
- paymentEntryTitle,
3101
- ORDER_STATUSES,
3102
- ORDER_PURPOSES,
3103
- orderLine,
3104
- orderTitle,
3105
3336
  text6 as text,
3106
3337
  id4 as id,
3107
3338
  time,
@@ -3113,5 +3344,13 @@ export {
3113
3344
  author,
3114
3345
  organization,
3115
3346
  project,
3116
- reminder
3347
+ reminder,
3348
+ damageMarkPath,
3349
+ healthMarkPath,
3350
+ markStoreDamaged,
3351
+ readDamageMark,
3352
+ clearDamageMark,
3353
+ refuseDamagedStore,
3354
+ readHealthMark,
3355
+ recordDeepCheck
3117
3356
  };