@wirecat/drive-cli 0.72.0 → 0.72.1

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 (176) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/agent-GOCD4ZW2.js +46 -0
  3. package/dist/bundle/{all-profiles-GXGDVNQJ.js → all-profiles-PZVP3G73.js} +14 -14
  4. package/dist/bundle/{anthropic-H5C4GQHC.js → anthropic-PUOTKSYV.js} +8 -8
  5. package/dist/bundle/{app-server-EQ3UK4C7.js → app-server-MKDCXRZM.js} +79 -79
  6. package/dist/bundle/{bun-DTJVSRY3.js → bun-NS5YLOQT.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-JIFY7MAE.js → bun-sqlite-KSKWRLLO.js} +9 -9
  8. package/dist/bundle/{chunk-KF3ZBQJV.js → chunk-2CG3LUQS.js} +4 -4
  9. package/dist/bundle/{chunk-4HPXWYTE.js → chunk-2TVHFJKV.js} +1 -1
  10. package/dist/bundle/{chunk-ASTKHB6B.js → chunk-35GROSBS.js} +41 -41
  11. package/dist/bundle/{chunk-UWG3PRY7.js → chunk-3CH7I452.js} +7 -7
  12. package/dist/bundle/{chunk-OAONP6KI.js → chunk-3QBRS3JT.js} +8 -8
  13. package/dist/bundle/{chunk-2Q325BBD.js → chunk-3T7JIHSO.js} +8 -8
  14. package/dist/bundle/{chunk-77OBW43F.js → chunk-3VIEGRBA.js} +6 -6
  15. package/dist/bundle/{chunk-CIFE4KPX.js → chunk-3YCUYFTD.js} +45 -45
  16. package/dist/bundle/{chunk-6CCO3JCM.js → chunk-3ZGWJYSG.js} +20 -20
  17. package/dist/bundle/{chunk-BPA3R4KN.js → chunk-43PCMVTZ.js} +1 -1
  18. package/dist/bundle/{chunk-XQZEMRCU.js → chunk-4DK55MLP.js} +10 -10
  19. package/dist/bundle/{chunk-DOQMH4DC.js → chunk-4P6D6CUS.js} +12 -10
  20. package/dist/bundle/{chunk-E3VWZC3K.js → chunk-54O5NJRC.js} +12 -12
  21. package/dist/bundle/{chunk-5KWCO56H.js → chunk-5BHP4FVM.js} +2 -2
  22. package/dist/bundle/{chunk-GUMKKRE6.js → chunk-6JU4KLAZ.js} +63 -63
  23. package/dist/bundle/{chunk-ZFDSJ5YJ.js → chunk-6KND2DYT.js} +6 -6
  24. package/dist/bundle/{chunk-UIQ35CA5.js → chunk-7YPZPJTB.js} +1 -1
  25. package/dist/bundle/{chunk-GU6ICH53.js → chunk-A5XNUMW7.js} +2 -2
  26. package/dist/bundle/{chunk-TTPWKTVR.js → chunk-AG34MPVN.js} +1 -1
  27. package/dist/bundle/{chunk-KLPFDFLI.js → chunk-B5V2U7IS.js} +9 -9
  28. package/dist/bundle/{chunk-DCPWZIOV.js → chunk-B6JC5RS3.js} +11 -11
  29. package/dist/bundle/{chunk-O7CZZ36M.js → chunk-BDZXGDGI.js} +3 -3
  30. package/dist/bundle/{chunk-NBMGDRP4.js → chunk-BMTMGMGE.js} +1 -1
  31. package/dist/bundle/{chunk-OPIPG6AP.js → chunk-CP2TZXAG.js} +8 -8
  32. package/dist/bundle/{chunk-ZJKXSMXK.js → chunk-DOEP4EPW.js} +42 -42
  33. package/dist/bundle/{chunk-4IUNYYYL.js → chunk-E2TMWONO.js} +395 -395
  34. package/dist/bundle/{chunk-N4GTCPML.js → chunk-E5EYJU5R.js} +1 -1
  35. package/dist/bundle/{chunk-SPNPJ3FZ.js → chunk-EXHTGQR2.js} +1 -1
  36. package/dist/bundle/{chunk-AA4LKC6W.js → chunk-FJQO5OHR.js} +47 -30
  37. package/dist/bundle/{chunk-COJTCEZP.js → chunk-FKP4T7A4.js} +15 -15
  38. package/dist/bundle/{chunk-NNGA4QDR.js → chunk-FTL3WXZB.js} +12 -12
  39. package/dist/bundle/{chunk-KWDZ3KVH.js → chunk-G2CH4FRW.js} +4 -4
  40. package/dist/bundle/{chunk-PRYMT3OG.js → chunk-G2KKMQRN.js} +2 -2
  41. package/dist/bundle/{chunk-FBEZSA76.js → chunk-G7SKXAVZ.js} +5 -5
  42. package/dist/bundle/{chunk-GIEZYBRC.js → chunk-GFI3UUIU.js} +1 -1
  43. package/dist/bundle/{chunk-VQPT3Y7W.js → chunk-GTROGY74.js} +12 -12
  44. package/dist/bundle/{chunk-R64OSDOD.js → chunk-GYAPDUF5.js} +5 -5
  45. package/dist/bundle/{chunk-RSPBVKOC.js → chunk-HCMEU7AF.js} +8 -8
  46. package/dist/bundle/{chunk-CWPYDT73.js → chunk-HDGJ7IDE.js} +4 -4
  47. package/dist/bundle/{chunk-WMG3H2VK.js → chunk-HMN26CVU.js} +2 -2
  48. package/dist/bundle/{chunk-4JS32SRX.js → chunk-HOICQNJX.js} +5 -5
  49. package/dist/bundle/{chunk-J4NUHSM7.js → chunk-HPS2YGSZ.js} +1 -1
  50. package/dist/bundle/{chunk-ZFUZEFU6.js → chunk-HSASPXRW.js} +3 -3
  51. package/dist/bundle/{chunk-EVG3AA5M.js → chunk-IABPGOMT.js} +2 -2
  52. package/dist/bundle/{chunk-OLCU7Q2B.js → chunk-IBQZT2YD.js} +1 -1
  53. package/dist/bundle/{chunk-DHMNCOQI.js → chunk-IE3R46YN.js} +57 -57
  54. package/dist/bundle/{chunk-QUZFDU4K.js → chunk-IE6O7463.js} +4 -4
  55. package/dist/bundle/{chunk-R32DHS6J.js → chunk-IPBYU43F.js} +19 -14
  56. package/dist/bundle/{chunk-3FRQ6V4T.js → chunk-IS7STZEB.js} +3 -3
  57. package/dist/bundle/{chunk-VPQSI5IU.js → chunk-IV77ZFF4.js} +2 -2
  58. package/dist/bundle/{chunk-5H747A76.js → chunk-JDGF3YYS.js} +445 -1387
  59. package/dist/bundle/{chunk-FRCJHGZM.js → chunk-JHAACT4I.js} +2 -2
  60. package/dist/bundle/{chunk-YAIOEPKU.js → chunk-JRED7BNX.js} +160 -160
  61. package/dist/bundle/{chunk-K652FYCO.js → chunk-JSYUB4SM.js} +2 -2
  62. package/dist/bundle/{chunk-YWOLQEDV.js → chunk-JVM75M4H.js} +3 -3
  63. package/dist/bundle/{chunk-IMAWQC5K.js → chunk-JZ65CQWK.js} +6 -6
  64. package/dist/bundle/{chunk-KX4C32WD.js → chunk-KBR7OC5S.js} +2 -2
  65. package/dist/bundle/{chunk-OHR6IZNH.js → chunk-KI6OOW6D.js} +8 -1
  66. package/dist/bundle/{chunk-SQHDSIFL.js → chunk-KOI5G7NM.js} +6 -6
  67. package/dist/bundle/{chunk-QKBPCX7Y.js → chunk-KPBUJQKT.js} +1 -1
  68. package/dist/bundle/{chunk-M2ZWYVWO.js → chunk-KVBGIZ2C.js} +1 -1
  69. package/dist/bundle/{chunk-UJY26HW4.js → chunk-LKUWH6KU.js} +1 -1
  70. package/dist/bundle/{chunk-QDUIVMEW.js → chunk-MA6U4XH2.js} +1 -1
  71. package/dist/bundle/{chunk-U7VEJ3CW.js → chunk-MA7ETVTZ.js} +29 -190
  72. package/dist/bundle/{chunk-FUDUXIVG.js → chunk-MDJUYCHT.js} +1 -1
  73. package/dist/bundle/{chunk-FIZOPJYY.js → chunk-MGC2BAD2.js} +1 -1
  74. package/dist/bundle/{chunk-GXGSC622.js → chunk-OBDPKDGB.js} +6 -6
  75. package/dist/bundle/{chunk-OESP4PHB.js → chunk-ODTBJGWQ.js} +17 -17
  76. package/dist/bundle/{chunk-KFZCHJRT.js → chunk-PB6ACIME.js} +2 -2
  77. package/dist/bundle/{chunk-XZ7MO6EU.js → chunk-PMAV3RNP.js} +7 -7
  78. package/dist/bundle/{chunk-FNAYSZWK.js → chunk-PSY67L73.js} +23 -23
  79. package/dist/bundle/{chunk-5BNMWSU2.js → chunk-PUVQOZ2N.js} +30 -30
  80. package/dist/bundle/{chunk-OLDQLEPA.js → chunk-QB7K6PIP.js} +6 -6
  81. package/dist/bundle/{chunk-HAGXTGJC.js → chunk-QK7GKFKB.js} +4 -4
  82. package/dist/bundle/{chunk-X5BGAZC5.js → chunk-QMUWHKP5.js} +6 -6
  83. package/dist/bundle/{chunk-ZPUY3COZ.js → chunk-QURQ2OU2.js} +13 -13
  84. package/dist/bundle/{chunk-BM6V7456.js → chunk-R3EDZWXF.js} +5 -5
  85. package/dist/bundle/{chunk-GWCDOYSC.js → chunk-RM4DO2WZ.js} +1 -1
  86. package/dist/bundle/{chunk-CKB4XZZJ.js → chunk-S27UKJVL.js} +14 -14
  87. package/dist/bundle/{chunk-ZKWT6HXT.js → chunk-S3SLDYTU.js} +1 -1
  88. package/dist/bundle/{chunk-7EFM6AW3.js → chunk-SAEBHENE.js} +4 -4
  89. package/dist/bundle/{chunk-K6ZWNTXY.js → chunk-SM7Z2BQF.js} +17 -17
  90. package/dist/bundle/{chunk-QSLOACDT.js → chunk-SODB63MR.js} +36 -36
  91. package/dist/bundle/{chunk-N24YSLED.js → chunk-SSFGSY77.js} +1707 -575
  92. package/dist/bundle/{chunk-D4JNCXS7.js → chunk-SUQT4KI2.js} +7 -7
  93. package/dist/bundle/{chunk-ST35FIUG.js → chunk-SWQDKO6D.js} +3 -3
  94. package/dist/bundle/{chunk-55FH6IEL.js → chunk-T3OK6AYZ.js} +5 -5
  95. package/dist/bundle/{chunk-IVGVVSPW.js → chunk-TFIAD57H.js} +4 -4
  96. package/dist/bundle/{chunk-A3S7QM5L.js → chunk-TUL6MCTY.js} +2 -2
  97. package/dist/bundle/{chunk-DWRUOLBF.js → chunk-UL5HSHFU.js} +4 -4
  98. package/dist/bundle/{chunk-ML2QIWX2.js → chunk-UT64BBEP.js} +4 -4
  99. package/dist/bundle/{chunk-6ZW2ZJYC.js → chunk-VBIZD5V5.js} +2 -2
  100. package/dist/bundle/{chunk-BO6EDBYJ.js → chunk-VHTELRUA.js} +3 -3
  101. package/dist/bundle/{chunk-47L262VI.js → chunk-VOQICE3G.js} +7 -7
  102. package/dist/bundle/{chunk-5U3NCE5R.js → chunk-WDJRUNQN.js} +8 -8
  103. package/dist/bundle/{chunk-XC6TRWLZ.js → chunk-X5CXANSA.js} +3 -3
  104. package/dist/bundle/{chunk-FTG5QBSD.js → chunk-X6HPQKAI.js} +31 -31
  105. package/dist/bundle/{chunk-75DAHQOV.js → chunk-XKWQDQ4B.js} +3 -3
  106. package/dist/bundle/{chunk-R57QUYBG.js → chunk-XZEVHUKI.js} +3 -3
  107. package/dist/bundle/{chunk-VAR3MJU6.js → chunk-YE7DJB3F.js} +3 -3
  108. package/dist/bundle/{chunk-FBQJN74J.js → chunk-YJVQ5GST.js} +1 -1
  109. package/dist/bundle/{chunk-MUFF2YTH.js → chunk-YRCGFSRR.js} +2 -2
  110. package/dist/bundle/{chunk-KP2XMCNT.js → chunk-ZNFXKFGF.js} +6 -6
  111. package/dist/bundle/{cli-2P5FW2RL.js → cli-KXRWXGTS.js} +107 -107
  112. package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
  113. package/dist/bundle/{command-server-entry-KP2UDGLA.js → command-server-entry-7FZX74T6.js} +35 -35
  114. package/dist/bundle/{decode-K2JZ5D6V.js → decode-SZ6W34U3.js} +8 -8
  115. package/dist/bundle/{dispatch-KOQZA74A.js → dispatch-4KNSZ3PI.js} +9 -9
  116. package/dist/bundle/drive.js +11 -11
  117. package/dist/bundle/{echarts-URO3QGCG.js → echarts-ISH62J4E.js} +2 -2
  118. package/dist/bundle/{embed-JLIPWTNN.js → embed-6ODGTZPK.js} +9 -9
  119. package/dist/bundle/{embedder-LUTDO3HS.js → embedder-6FY67FTQ.js} +12 -12
  120. package/dist/bundle/entry-2SA6ZX7E.js +25 -0
  121. package/dist/bundle/{failure-GJMQLM7O.js → failure-V3ILKUTX.js} +4 -4
  122. package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
  123. package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
  124. package/dist/bundle/google-QCADNPCQ.js +46 -0
  125. package/dist/bundle/{google-api-RFXKRLL4.js → google-api-ZTI3NKZX.js} +85 -85
  126. package/dist/bundle/grants-BPN5AGDK.js +133 -0
  127. package/dist/bundle/{identity-FXPB5EMT.js → identity-YX4IPGOO.js} +6 -6
  128. package/dist/bundle/{instructions-IROIUVZI.js → instructions-G5ZGHVFB.js} +1 -1
  129. package/dist/bundle/{login-WIY5VQU7.js → login-CVX5VJX6.js} +91 -91
  130. package/dist/bundle/{mcp-NJIOKW3E.js → mcp-MQ2L5IIM.js} +2 -2
  131. package/dist/bundle/meeting-combined-HKZJMJ6Q.js +28 -0
  132. package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
  133. package/dist/bundle/{meeting-semantic-62QNQMOM.js → meeting-semantic-OHG2QN2G.js} +10 -10
  134. package/dist/bundle/{node-IACCI2CW.js → node-NLJINXVQ.js} +2 -2
  135. package/dist/bundle/{node-sqlite-WYIRC7C7.js → node-sqlite-KDFQDYVZ.js} +10 -10
  136. package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
  137. package/dist/bundle/oauth-M3E62ZHC.js +22 -0
  138. package/dist/bundle/{open-H32B6BCT.js → open-WVRUVBIZ.js} +8 -8
  139. package/dist/bundle/{openai-VHMPJJUG.js → openai-JJWOSJMV.js} +20 -20
  140. package/dist/bundle/{process-RNHPF5OK.js → process-LPVAYRO7.js} +1 -1
  141. package/dist/bundle/{program-GYMJ3DDH.js → program-ZJRIP25J.js} +108 -108
  142. package/dist/bundle/{prompt-TOG2CRCE.js → prompt-XCDHTEAO.js} +8 -8
  143. package/dist/bundle/{reasons-TLFQ45YX.js → reasons-REEEQDAZ.js} +5 -5
  144. package/dist/bundle/{recognize-GYGY45EY.js → recognize-OZLFDJAT.js} +7 -7
  145. package/dist/bundle/{remote-6XN2QLI5.js → remote-MDPYVCZB.js} +13 -13
  146. package/dist/bundle/{rerank-HJO3O4TW.js → rerank-FLZWJNHA.js} +10 -10
  147. package/dist/bundle/{serve-XPCNLHCR.js → serve-5UV5VLRV.js} +12 -12
  148. package/dist/bundle/{server-WPT3NC5B.js → server-53A2X2MK.js} +71 -71
  149. package/dist/bundle/server-5GMURMDE.js +97 -0
  150. package/dist/bundle/{services-253KKKVU.js → services-XSMH7BXB.js} +58 -58
  151. package/dist/bundle/{sqlite-runtime-EZASGJXW.js → sqlite-runtime-E3L7ENFU.js} +9 -9
  152. package/dist/bundle/{start-UHI35JFL.js → start-4S2VNR4J.js} +7 -7
  153. package/dist/bundle/{state-KJTSPFGK.js → state-TQI4JSH7.js} +9 -9
  154. package/dist/bundle/{store-G5B7T7M7.js → store-GS7PU6PJ.js} +26 -26
  155. package/dist/bundle/{store-62J2H2A3.js → store-VYJPL7MW.js} +28 -28
  156. package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
  157. package/dist/bundle/surface-JC4XVMZR.js +83 -0
  158. package/dist/bundle/tokens-KJQ5EAPW.js +133 -0
  159. package/dist/version.d.ts +1 -1
  160. package/dist/version.js +1 -1
  161. package/package.json +3 -3
  162. package/dist/bundle/agent-23OB2NZP.js +0 -46
  163. package/dist/bundle/command-contract-BMQT2G5X.js +0 -45
  164. package/dist/bundle/entry-AVF6LMG7.js +0 -25
  165. package/dist/bundle/first-run-VYTIEUDA.js +0 -31
  166. package/dist/bundle/first-screen-QVZPF7KL.js +0 -45
  167. package/dist/bundle/google-VX7IPACN.js +0 -46
  168. package/dist/bundle/grants-4XWJFVD6.js +0 -133
  169. package/dist/bundle/meeting-combined-JUNV35GM.js +0 -28
  170. package/dist/bundle/meeting-model-XY4UNWWK.js +0 -29
  171. package/dist/bundle/notes-search-DEDUJKSN.js +0 -70
  172. package/dist/bundle/oauth-HXBXF4VI.js +0 -22
  173. package/dist/bundle/server-UBJZ66XE.js +0 -97
  174. package/dist/bundle/store-maintenance-command-C6T4YLVF.js +0 -85
  175. package/dist/bundle/surface-3OT64BHS.js +0 -83
  176. package/dist/bundle/tokens-EHYO6D2X.js +0 -133
@@ -5,11 +5,11 @@ import {
5
5
  googleDocumentId,
6
6
  googleDocumentLinks,
7
7
  trimUrl
8
- } from "./chunk-VAR3MJU6.js";
8
+ } from "./chunk-YE7DJB3F.js";
9
9
  import {
10
10
  calendarMoment,
11
11
  dayIn
12
- } from "./chunk-O7CZZ36M.js";
12
+ } from "./chunk-BDZXGDGI.js";
13
13
  import {
14
14
  compileAutomaton,
15
15
  foldName,
@@ -18,7 +18,7 @@ import {
18
18
  oneLine,
19
19
  trigrams,
20
20
  wildcardPattern
21
- } from "./chunk-DCPWZIOV.js";
21
+ } from "./chunk-B6JC5RS3.js";
22
22
  import {
23
23
  DEFAULT_STEMMERS,
24
24
  DEFAULT_STEMMERS_VERSION,
@@ -29,7 +29,7 @@ import {
29
29
  analyzerIdentity,
30
30
  createStemmer,
31
31
  parseStemmers
32
- } from "./chunk-5U3NCE5R.js";
32
+ } from "./chunk-WDJRUNQN.js";
33
33
  import {
34
34
  PRESENCE,
35
35
  QUERY_LIMITS,
@@ -42,16 +42,16 @@ import {
42
42
  searchError,
43
43
  sqliteLimit,
44
44
  tooWideTerm
45
- } from "./chunk-OPIPG6AP.js";
45
+ } from "./chunk-CP2TZXAG.js";
46
46
  import {
47
47
  NORMALIZER_VERSION,
48
48
  fold,
49
49
  normalize
50
- } from "./chunk-TTPWKTVR.js";
50
+ } from "./chunk-AG34MPVN.js";
51
51
  import {
52
52
  quietSqliteWarning,
53
53
  storeCapable
54
- } from "./chunk-X5BGAZC5.js";
54
+ } from "./chunk-QMUWHKP5.js";
55
55
  import {
56
56
  BUSINESS_KINDS,
57
57
  CATALOG_KINDS,
@@ -147,11 +147,11 @@ import {
147
147
  transactionLine,
148
148
  usableLinkSql,
149
149
  walletLine
150
- } from "./chunk-FNAYSZWK.js";
150
+ } from "./chunk-PSY67L73.js";
151
151
  import {
152
152
  holdsCredential,
153
153
  secretNamed
154
- } from "./chunk-UJY26HW4.js";
154
+ } from "./chunk-LKUWH6KU.js";
155
155
  import {
156
156
  ACCOUNT_GROUPS,
157
157
  ADDED_ACCOUNT,
@@ -182,14 +182,14 @@ import {
182
182
  runEvent,
183
183
  unitedKinds,
184
184
  useStoredProviders
185
- } from "./chunk-COJTCEZP.js";
185
+ } from "./chunk-FKP4T7A4.js";
186
186
  import {
187
187
  sqliteCode
188
- } from "./chunk-6ZW2ZJYC.js";
188
+ } from "./chunk-VBIZD5V5.js";
189
189
  import {
190
190
  normalizeTag,
191
191
  tagOf
192
- } from "./chunk-XC6TRWLZ.js";
192
+ } from "./chunk-X5CXANSA.js";
193
193
  import {
194
194
  CHAT_MESSAGES_READ,
195
195
  FACT_TYPES,
@@ -235,7 +235,7 @@ import {
235
235
  validateMeetingRelatedHistory,
236
236
  validateMeetingSeriesHistory,
237
237
  validatePayment
238
- } from "./chunk-DHMNCOQI.js";
238
+ } from "./chunk-IE3R46YN.js";
239
239
  import {
240
240
  OPERATORS_BY_TYPE,
241
241
  dateRange,
@@ -248,13 +248,13 @@ import {
248
248
  validateQuery,
249
249
  walkQuery,
250
250
  zonedMoment
251
- } from "./chunk-XQZEMRCU.js";
251
+ } from "./chunk-4DK55MLP.js";
252
252
  import {
253
253
  DEFAULT_TASK_CATEGORIES,
254
254
  sharedConfigPath,
255
255
  storedTaskCategories,
256
256
  taskCategoriesReader
257
- } from "./chunk-RSPBVKOC.js";
257
+ } from "./chunk-HCMEU7AF.js";
258
258
  import {
259
259
  SQLiteTable,
260
260
  TableAliasProxyHandler,
@@ -279,20 +279,20 @@ import {
279
279
  sql,
280
280
  sqliteTable,
281
281
  text
282
- } from "./chunk-GIEZYBRC.js";
282
+ } from "./chunk-GFI3UUIU.js";
283
283
  import {
284
284
  PRAGMAS,
285
285
  TIME_LIMIT_FUNCTION,
286
286
  TimeLimitReached,
287
287
  isQueryOnly
288
- } from "./chunk-UIQ35CA5.js";
288
+ } from "./chunk-7YPZPJTB.js";
289
289
  import {
290
290
  refuseOwnerStoreInTests,
291
291
  storePath
292
- } from "./chunk-WMG3H2VK.js";
292
+ } from "./chunk-HMN26CVU.js";
293
293
  import {
294
294
  singleLine
295
- } from "./chunk-FUDUXIVG.js";
295
+ } from "./chunk-MDJUYCHT.js";
296
296
  import {
297
297
  array,
298
298
  boolean,
@@ -310,11 +310,11 @@ import {
310
310
  safeParse,
311
311
  strictObject,
312
312
  string
313
- } from "./chunk-GXGSC622.js";
313
+ } from "./chunk-OBDPKDGB.js";
314
314
  import {
315
315
  CliError,
316
316
  isCliError
317
- } from "./chunk-OLCU7Q2B.js";
317
+ } from "./chunk-IBQZT2YD.js";
318
318
  import {
319
319
  resolveFrom
320
320
  } from "./chunk-Y5E2WNWB.js";
@@ -10061,7 +10061,7 @@ var require_cjs = __commonJS({
10061
10061
  }
10062
10062
  });
10063
10063
 
10064
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/account-store.js
10064
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/account-store.js
10065
10065
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
10066
10066
  const methods = whole;
10067
10067
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -10189,7 +10189,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
10189
10189
  };
10190
10190
  }, "bindAccount");
10191
10191
 
10192
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
10192
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
10193
10193
  var IndexBuilderOn = class {
10194
10194
  static {
10195
10195
  __name(this, "IndexBuilderOn");
@@ -10384,7 +10384,7 @@ function alias(table, alias2) {
10384
10384
  }
10385
10385
  __name(alias, "alias");
10386
10386
 
10387
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
10387
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/record-fields.js
10388
10388
  var DECIMAL_PATTERN = "^[0-9]{1,16}(\\.[0-9]{1,6})?$";
10389
10389
  var SIGNED_DECIMAL = "^-?[0-9]{1,16}(\\.[0-9]{1,6})?$";
10390
10390
  var DAY = "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
@@ -10503,7 +10503,7 @@ var fieldError = /* @__PURE__ */ __name((schema, value, at2 = []) => {
10503
10503
  return void 0;
10504
10504
  }, "fieldError");
10505
10505
 
10506
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/record-types.js
10506
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/record-types.js
10507
10507
  var kept = /* @__PURE__ */ __name((description) => ({ description }), "kept");
10508
10508
  var PARTY = ["person", "organization"];
10509
10509
  var ORGANIZATION = ["organization"];
@@ -10898,7 +10898,7 @@ var hasV1Roles = /* @__PURE__ */ __name((type) => rolesOf2(type).some(([, role])
10898
10898
  var IDENTITY_TYPES = RECORD_ENTITY_TYPES.filter((type) => RECORD_TYPES[type].review === "identity");
10899
10899
  var article = /* @__PURE__ */ __name((word2) => /^[aeiou]/.test(word2) ? "an" : "a", "article");
10900
10900
 
10901
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
10901
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
10902
10902
  var ENTITY_TABLES = {
10903
10903
  ...RECORD_TABLES,
10904
10904
  account: "accounts",
@@ -10938,7 +10938,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
10938
10938
  return { table, pointer, type, count: count3, known: known2 };
10939
10939
  }).filter(({ count: count3 }) => count3 > 0)), "orphanPointers");
10940
10940
 
10941
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/identity-links.js
10941
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/identity-links.js
10942
10942
  var IDENTITY_LINK_KIND = "identity_link";
10943
10943
  var IDENTITY_LINK_SIGNALS = ["agent", "phone", "email", "guest-email", "name", "account"];
10944
10944
  var LINK_WEAKNESSES = [
@@ -10951,7 +10951,7 @@ var LINK_WEAKNESSES = [
10951
10951
  "not-own-number"
10952
10952
  ];
10953
10953
 
10954
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/merged-persons.js
10954
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/merged-persons.js
10955
10955
  var SEPARATIONS = ["unlink", "split", "undo-merge"];
10956
10956
  var mergeSql = /* @__PURE__ */ __name((event2) => `(${event2}.from_person_id IS NOT NULL AND ${event2}.from_person_id <> ${event2}.to_person_id AND ${event2}.method NOT IN (${SEPARATIONS.map((method) => `'${method}'`).join(", ")}) AND NOT EXISTS (SELECT 1 FROM identity_link_events stay WHERE stay.to_person_id = ${event2}.from_person_id AND stay.identity_id <> ${event2}.identity_id AND stay.id < ${event2}.id AND stay.id = (SELECT max(s.id) FROM identity_link_events s WHERE s.identity_id = stay.identity_id AND s.id < ${event2}.id) AND NOT EXISTS (SELECT 1 FROM identity_link_events went WHERE went.identity_id = stay.identity_id AND went.from_person_id = ${event2}.from_person_id AND went.to_person_id = ${event2}.to_person_id AND went.id = (SELECT min(w.id) FROM identity_link_events w WHERE w.identity_id = stay.identity_id AND w.id > ${event2}.id))))`, "mergeSql");
10957
10957
  var mergedAwaySql = /* @__PURE__ */ __name((person2) => `(${person2}.owner = 0 AND NOT EXISTS (SELECT 1 FROM identity_links ml WHERE ml.person_id = ${person2}.id) AND EXISTS (SELECT 1 FROM identity_link_events me WHERE me.from_person_id = ${person2}.id AND ${mergeSql("me")}))`, "mergedAwaySql");
@@ -10983,7 +10983,7 @@ var samePersons = /* @__PURE__ */ __name((database, pk) => {
10983
10983
  }, "samePersons");
10984
10984
  var idsOf = /* @__PURE__ */ __name((database, type, id2) => JSON.stringify(type === "person" ? samePersons(database, id2) : [id2]), "idsOf");
10985
10985
 
10986
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-link-rows.js
10986
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-link-rows.js
10987
10987
  var pairOf = /* @__PURE__ */ __name((a, b) => [Number(a), Number(b)].sort((x, y) => x - y).join("-"), "pairOf");
10988
10988
  var pkOf = /* @__PURE__ */ __name((database, ref3) => {
10989
10989
  const at2 = ref3.indexOf(":");
@@ -11090,13 +11090,13 @@ var forgetErasedLinks = /* @__PURE__ */ __name((database) => {
11090
11090
  database.prepare("DELETE FROM proposed_actions WHERE id = ?").run(Number(row2.id));
11091
11091
  }, "forgetErasedLinks");
11092
11092
 
11093
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/identity-splits.js
11093
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/identity-splits.js
11094
11094
  var IDENTITY_SPLIT_KIND = "identity_split";
11095
11095
 
11096
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
11096
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
11097
11097
  var MAIL_FINDINGS_KIND = "mail_findings";
11098
11098
 
11099
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/decisions.js
11099
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/decisions.js
11100
11100
  var TASK_CLOSE_KIND = "task_close";
11101
11101
  var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
11102
11102
  var isOwnerOnlyKind = /* @__PURE__ */ __name((kind3) => kind3 === MAIL_FINDINGS_KIND || kind3 === MEETING_FINDINGS_KIND || kind3 === TASK_CLOSE_KIND || kind3 === SOURCE_REVIEW_KIND || kind3 === IDENTITY_LINK_KIND || kind3 === IDENTITY_SPLIT_KIND, "isOwnerOnlyKind");
@@ -11144,7 +11144,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
11144
11144
  }, "assertMayDecide");
11145
11145
  var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
11146
11146
 
11147
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/addresses.js
11147
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/addresses.js
11148
11148
  var EMAIL_ADDRESS = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
11149
11149
  var isEmailAddress = /* @__PURE__ */ __name((value) => EMAIL_ADDRESS.test(value), "isEmailAddress");
11150
11150
  var ROLE_ADDRESS_WORDS = {
@@ -11206,7 +11206,7 @@ var PERSON_LIKE = /* @__PURE__ */ new Set(["hr"]);
11206
11206
  var isPersonLikeRoleAddress = /* @__PURE__ */ __name((address) => PERSON_LIKE.has(localWord(address)), "isPersonLikeRoleAddress");
11207
11207
  var isNoReplyAddress = /* @__PURE__ */ __name((address) => NO_REPLY.has(localWord(address)), "isNoReplyAddress");
11208
11208
 
11209
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/mail/score.js
11209
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mail/score.js
11210
11210
  var import_disposable_email_domains_js = __toESM(require_dist(), 1);
11211
11211
  var import_tldts = __toESM(require_cjs(), 1);
11212
11212
  var FREE_MAIL = /* @__PURE__ */ new Set([
@@ -11236,7 +11236,7 @@ var FREE_MAIL = /* @__PURE__ */ new Set([
11236
11236
  ]);
11237
11237
  var DAY_MS = 24 * 60 * 60 * 1e3;
11238
11238
 
11239
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/address-organization.js
11239
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/address-organization.js
11240
11240
  var BY_ADDRESS = "SELECT DISTINCT o.id FROM organizations o JOIN organization_identities oi ON oi.organization_id = o.id JOIN identities i ON i.id = oi.identity_id WHERE o.deleted_at IS NULL AND i.provider = 'email' AND ";
11241
11241
  var idsOf2 = /* @__PURE__ */ __name((rows) => rows.map((row2) => Number(row2.id)), "idsOf");
11242
11242
  var holdAddress = /* @__PURE__ */ __name(({ database, now: now2 }, organization2, email, { method, author }) => {
@@ -11261,7 +11261,7 @@ var organizationOfAddress = /* @__PURE__ */ __name((context, { name, email, meth
11261
11261
  return id2;
11262
11262
  }, "organizationOfAddress");
11263
11263
 
11264
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
11264
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
11265
11265
  var PHONE_PLANS = [
11266
11266
  {
11267
11267
  country: "us",
@@ -11641,7 +11641,7 @@ var PHONE_PLANS = [
11641
11641
  }
11642
11642
  ];
11643
11643
 
11644
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/phones.js
11644
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/phones.js
11645
11645
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
11646
11646
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
11647
11647
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -11716,10 +11716,10 @@ var storedPhone = /* @__PURE__ */ __name((raw, provider) => {
11716
11716
  return found2 ? `+${found2[1]}` : void 0;
11717
11717
  }, "storedPhone");
11718
11718
 
11719
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
11719
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
11720
11720
  import { AsyncLocalStorage } from "node:async_hooks";
11721
11721
 
11722
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/journal.js
11722
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/journal.js
11723
11723
  import { existsSync, statSync } from "node:fs";
11724
11724
  var watched = /* @__PURE__ */ new WeakMap();
11725
11725
  var walInode = /* @__PURE__ */ __name((store) => statSync(`${store}-wal`, { throwIfNoEntry: false })?.ino, "walInode");
@@ -11745,7 +11745,7 @@ var checkJournal = /* @__PURE__ */ __name((database) => {
11745
11745
  throw new CliError("conflict", "the store's journal file was deleted or replaced by another program while this command had the store open, so nothing more is written; `store recover` says what to do", { reason: "store.journal-replaced" });
11746
11746
  }, "checkJournal");
11747
11747
 
11748
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/write-events.js
11748
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/write-events.js
11749
11749
  var WRITE = /^\s*(?:WITH\b[\s\S]*?\)\s*)?(INSERT|REPLACE|UPDATE|DELETE)\b(?:\s+OR\s+[A-Za-z]+)?\s+(?:INTO\s+|FROM\s+)?(?:("?)(\w+)\2\.)?["`[]?(\w+)/i;
11750
11750
  var writeTarget = /* @__PURE__ */ __name((sql2) => {
11751
11751
  const match = WRITE.exec(sql2);
@@ -11825,7 +11825,7 @@ var committedWrites = /* @__PURE__ */ __name((database) => {
11825
11825
  }, "committedWrites");
11826
11826
  var droppedWrites = /* @__PURE__ */ __name((database) => tallies.get(database)?.pending.clear(), "droppedWrites");
11827
11827
 
11828
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
11828
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
11829
11829
  var ARMS = [
11830
11830
  [
11831
11831
  "message",
@@ -11953,7 +11953,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
11953
11953
  return recomputed;
11954
11954
  }, "drainInvolvementQueue");
11955
11955
 
11956
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
11956
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
11957
11957
  import { domainToUnicode } from "node:url";
11958
11958
 
11959
11959
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -21975,7 +21975,7 @@ var oa = /* @__PURE__ */ __name((e) => {
21975
21975
  }, "oa");
21976
21976
  var na = { parse: O, get: aa, isValid: oa };
21977
21977
 
21978
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/places.js
21978
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/places.js
21979
21979
  var BEFORE = [
21980
21980
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
21981
21981
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -22235,7 +22235,7 @@ var findPlaces = /* @__PURE__ */ __name((text9) => {
22235
22235
  return found2.sort((a, b) => a.start - b.start);
22236
22236
  }, "findPlaces");
22237
22237
 
22238
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
22238
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
22239
22239
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
22240
22240
  var MENTION_VERSIONS = {
22241
22241
  phone: 1,
@@ -22411,7 +22411,7 @@ var exactlyOne = /* @__PURE__ */ __name((text9, options) => {
22411
22411
  return one2 && one2.start === 0 && one2.end === text9.length ? one2.value : void 0;
22412
22412
  }, "exactlyOne");
22413
22413
 
22414
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/first-names.js
22414
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/first-names.js
22415
22415
  var RUSSIAN = "\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440 \u0410\u043B\u0435\u043A\u0441\u0435\u0439 \u0410\u043D\u0430\u0442\u043E\u043B\u0438\u0439 \u0410\u043D\u0434\u0440\u0435\u0439 \u0410\u043D\u0442\u043E\u043D \u0410\u0440\u043A\u0430\u0434\u0438\u0439 \u0410\u0440\u0441\u0435\u043D\u0438\u0439 \u0410\u0440\u0442\u0451\u043C \u0410\u0440\u0442\u0435\u043C \u0410\u0440\u0442\u0443\u0440 \u0411\u043E\u0440\u0438\u0441 \u0412\u0430\u0434\u0438\u043C \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D \u0412\u0430\u043B\u0435\u0440\u0438\u0439 \u0412\u0430\u0441\u0438\u043B\u0438\u0439 \u0412\u0438\u043A\u0442\u043E\u0440 \u0412\u0438\u0442\u0430\u043B\u0438\u0439 \u0412\u043B\u0430\u0434\u0438\u043C\u0438\u0440 \u0412\u043B\u0430\u0434\u0438\u0441\u043B\u0430\u0432 \u0412\u0441\u0435\u0432\u043E\u043B\u043E\u0434 \u0412\u044F\u0447\u0435\u0441\u043B\u0430\u0432 \u0413\u0435\u043D\u043D\u0430\u0434\u0438\u0439 \u0413\u0435\u043E\u0440\u0433\u0438\u0439 \u0413\u043B\u0435\u0431 \u0413\u0440\u0438\u0433\u043E\u0440\u0438\u0439 \u0414\u0430\u043D\u0438\u0438\u043B \u0414\u0430\u043D\u0438\u043B\u0430 \u0414\u0435\u043D\u0438\u0441 \u0414\u043C\u0438\u0442\u0440\u0438\u0439 \u0415\u0432\u0433\u0435\u043D\u0438\u0439 \u0415\u0433\u043E\u0440 \u0418\u0432\u0430\u043D \u0418\u0433\u043E\u0440\u044C \u0418\u043B\u044C\u044F \u041A\u0438\u0440\u0438\u043B\u043B \u041A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u0438\u043D \u041B\u0435\u043E\u043D\u0438\u0434 \u041C\u0430\u043A\u0441\u0438\u043C \u041C\u0430\u0440\u0430\u0442 \u041C\u0430\u0442\u0432\u0435\u0439 \u041C\u0438\u0445\u0430\u0438\u043B \u041D\u0438\u043A\u0438\u0442\u0430 \u041D\u0438\u043A\u043E\u043B\u0430\u0439 \u041E\u043B\u0435\u0433 \u041F\u0430\u0432\u0435\u043B \u041F\u0451\u0442\u0440 \u041F\u0435\u0442\u0440 \u0420\u043E\u0434\u0438\u043E\u043D \u0420\u043E\u0441\u0442\u0438\u0441\u043B\u0430\u0432 \u0420\u0443\u0441\u043B\u0430\u043D \u0420\u0443\u0441\u0442\u0430\u043C \u0421\u0435\u043C\u0451\u043D \u0421\u0435\u043C\u0435\u043D \u0421\u0435\u0440\u0433\u0435\u0439 \u0421\u0442\u0430\u043D\u0438\u0441\u043B\u0430\u0432 \u0421\u0442\u0435\u043F\u0430\u043D \u0422\u0438\u043C\u043E\u0444\u0435\u0439 \u0422\u0438\u043C\u0443\u0440 \u0424\u0451\u0434\u043E\u0440 \u0424\u0435\u0434\u043E\u0440 \u0424\u0438\u043B\u0438\u043F\u043F \u042D\u0434\u0443\u0430\u0440\u0434 \u042E\u0440\u0438\u0439 \u042F\u0440\u043E\u0441\u043B\u0430\u0432 \u042F\u043A\u043E\u0432 \u042D\u043B\u044C\u0434\u0430\u0440 \u0414\u0430\u0432\u0438\u0434 \u0417\u0430\u0445\u0430\u0440 \u0421\u0430\u0432\u0435\u043B\u0438\u0439 \u041C\u0438\u0440\u043E\u043D \u041F\u043B\u0430\u0442\u043E\u043D \u0414\u0435\u043C\u0438\u0434 \u0410\u0440\u0441\u0435\u043D \u041D\u0443\u0440\u043B\u0430\u043D \u0410\u043D\u0437\u043E\u0440 \u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440\u0430 \u0410\u043B\u0438\u043D\u0430 \u0410\u043B\u0438\u0441\u0430 \u0410\u043B\u043B\u0430 \u0410\u043D\u0430\u0441\u0442\u0430\u0441\u0438\u044F \u0410\u043D\u0433\u0435\u043B\u0438\u043D\u0430 \u0410\u043D\u043D\u0430 \u0410\u043D\u0442\u043E\u043D\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u043D\u0442\u0438\u043D\u0430 \u0412\u0430\u043B\u0435\u0440\u0438\u044F \u0412\u0430\u0440\u0432\u0430\u0440\u0430 \u0412\u0435\u0440\u043E\u043D\u0438\u043A\u0430 \u0412\u0438\u043A\u0442\u043E\u0440\u0438\u044F \u0413\u0430\u043B\u0438\u043D\u0430 \u0414\u0430\u0440\u044C\u044F \u0414\u0438\u0430\u043D\u0430 \u0415\u0432\u0433\u0435\u043D\u0438\u044F \u0415\u043A\u0430\u0442\u0435\u0440\u0438\u043D\u0430 \u0415\u043B\u0435\u043D\u0430 \u0415\u043B\u0438\u0437\u0430\u0432\u0435\u0442\u0430 \u0416\u0430\u043D\u043D\u0430 \u0417\u0438\u043D\u0430\u0438\u0434\u0430 \u041A\u0430\u0440\u0438\u043D\u0430 \u041A\u0438\u0440\u0430 \u041A\u043B\u0430\u0432\u0434\u0438\u044F \u041A\u0440\u0438\u0441\u0442\u0438\u043D\u0430 \u041A\u0441\u0435\u043D\u0438\u044F \u041B\u0430\u0440\u0438\u0441\u0430 \u041B\u0438\u0434\u0438\u044F \u041B\u044E\u0434\u043C\u0438\u043B\u0430 \u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430 \u041C\u0430\u0440\u0438\u043D\u0430 \u041C\u0430\u0440\u0438\u044F \u041C\u0438\u043B\u0430\u043D\u0430 \u041D\u0430\u0442\u0430\u043B\u044C\u044F \u041D\u0430\u0442\u0430\u043B\u0438\u044F \u041D\u0438\u043D\u0430 \u041E\u043A\u0441\u0430\u043D\u0430 \u041E\u043B\u0435\u0441\u044F \u041E\u043B\u044C\u0433\u0430 \u041F\u043E\u043B\u0438\u043D\u0430 \u0420\u0430\u0438\u0441\u0430 \u0421\u0432\u0435\u0442\u043B\u0430\u043D\u0430 \u0421\u043E\u0444\u0438\u044F \u0421\u043E\u0444\u044C\u044F \u0422\u0430\u0438\u0441\u0438\u044F \u0422\u0430\u043C\u0430\u0440\u0430 \u0422\u0430\u0442\u044C\u044F\u043D\u0430 \u0423\u043B\u044C\u044F\u043D\u0430 \u042E\u043B\u0438\u044F \u042D\u043B\u044C\u0432\u0438\u0440\u0430 \u0420\u0435\u0433\u0438\u043D\u0430 \u0421\u043D\u0435\u0436\u0430\u043D\u0430 \u0410\u043B\u0451\u043D\u0430 \u0410\u043B\u0435\u043D\u0430 \u0412\u0430\u0441\u0438\u043B\u0438\u0441\u0430 \u0410\u0440\u0438\u043D\u0430 \u0415\u0441\u0435\u043D\u0438\u044F \u042D\u0432\u0435\u043B\u0438\u043D\u0430 \u0421\u0430\u0448\u0430 \u0416\u0435\u043D\u044F \u0412\u0430\u043B\u044F \u0414\u0438\u043C\u0430 \u041C\u0438\u0448\u0430 \u041A\u043E\u043B\u044F \u041F\u0435\u0442\u044F \u0412\u0430\u0441\u044F \u0421\u0435\u0440\u0451\u0436\u0430 \u0421\u0435\u0440\u0435\u0436\u0430 \u041F\u0430\u0448\u0430 \u041B\u0451\u0448\u0430 \u041B\u0435\u0448\u0430 \u0412\u0438\u0442\u044F \u041A\u043E\u0441\u0442\u044F \u0412\u043E\u0432\u0430 \u0412\u043E\u043B\u043E\u0434\u044F \u0412\u0430\u043D\u044F \u0413\u043E\u0448\u0430 \u0413\u0440\u0438\u0448\u0430 \u0422\u043E\u043B\u044F \u0411\u043E\u0440\u044F \u0421\u0442\u0430\u0441 \u0422\u0451\u043C\u0430 \u0422\u0430\u043D\u044F \u041A\u0430\u0442\u044F \u041B\u0435\u043D\u0430 \u041D\u0430\u0442\u0430\u0448\u0430 \u0421\u0432\u0435\u0442\u0430 \u042E\u043B\u044F \u041D\u0430\u0441\u0442\u044F \u0414\u0430\u0448\u0430 \u041C\u0430\u0448\u0430 \u041B\u044E\u0434\u0430 \u0413\u0430\u043B\u044F \u0412\u0438\u043A\u0430 \u041A\u0441\u044E\u0448\u0430 \u041B\u0438\u0437\u0430 \u0421\u043E\u043D\u044F \u041D\u0430\u0434\u044F \u041B\u0435\u0440\u0430 \u0410\u043B\u0451\u0448\u0430 \u0410\u043B\u0435\u0448\u0430 \u041C\u0438\u0442\u044F \u0421\u0435\u043D\u044F \u0424\u0435\u0434\u044F \u0416\u0435\u043D\u0435\u0447\u043A\u0430 \u041E\u043B\u0435\u043D\u044C\u043A\u0430 \u0422\u0430\u043D\u0435\u0447\u043A\u0430";
22416
22416
  var EUROPEAN = "James John Robert Michael William David Richard Joseph Thomas Charles Christopher Daniel Matthew Anthony Donald Steven Paul Andrew Joshua Kenneth Kevin Brian George Timothy Ronald Edward Jason Jeffrey Ryan Jacob Gary Nicholas Eric Jonathan Stephen Larry Justin Scott Brandon Benjamin Samuel Gregory Alexander Patrick Raymond Dennis Jerry Tyler Aaron Nathan Henry Peter Zachary Douglas Harold Kyle Noah Ethan Oliver Harry Lucas Liam Mary Patricia Jennifer Linda Elizabeth Barbara Susan Jessica Sarah Karen Lisa Nancy Betty Margaret Sandra Ashley Kimberly Emily Donna Michelle Carol Amanda Dorothy Melissa Deborah Stephanie Rebecca Sharon Laura Cynthia Kathleen Angela Shirley Anna Brenda Pamela Emma Nicole Helen Samantha Katherine Christine Rachel Carolyn Janet Catherine Maria Heather Diane Ruth Julie Olivia Joyce Kelly Lauren Christina Joan Evelyn Judith Megan Andrea Cheryl Hannah Jacqueline Martha Teresa Sara Madison Frances Kathryn Janice Abigail Alice Julia Judy Sophia Denise Doris Marilyn Danielle Beverly Isabella Theresa Diana Natalie Charlotte Marie Kayla Alexis Javier Carlos Antonio Manuel Francisco Juan Pedro Alejandro Miguel Rafael Pablo Sergio Fernando Jorge Luis Alberto \xC1lvaro Diego Adri\xE1n Rub\xE9n Iv\xE1n \xD3scar Andr\xE9s Ra\xFAl Enrique Vicente Joaqu\xEDn Ignacio Gonzalo Marcos V\xEDctor Jaime Alfonso Guillermo Tom\xE1s Emilio Gabriel Nicol\xE1s Mart\xEDn Jordi Josep Xavier Luc\xEDa Carmen Isabel Cristina Marta Elena Raquel Silvia Beatriz Paula Nuria N\xFAria Sonia Alicia Irene Montserrat Inmaculada Noelia Lorena Sof\xEDa Valeria Claudia Natalia Sandra Ver\xF3nica Esther Yolanda Vanesa Laia Klaus J\xFCrgen Wolfgang Stefan Andreas Matthias Markus Tobias Florian Lukas Jonas Maximilian Sebastian Dirk Sabine Ursula Petra Monika Katrin Anja Pierre Michel Philippe Alain Fran\xE7ois Christophe Laurent Olivier Julien Mathieu S\xE9bastien Guillaume Antoine Camille Nathalie Isabelle Sylvie Sophie C\xE9line Aur\xE9lie Chlo\xE9 Manon Giuseppe Giovanni Marco Luca Francesco Alessandro Matteo Lorenzo Stefano Paolo Roberto Davide Simone Federico Giulia Francesca Chiara Valentina Alessia Martina Elisa Jo\xE3o Pedro Tiago Beatriz In\xEAs Mariana Piotr Krzysztof Tomasz Marcin Agnieszka Katarzyna Ma\u0142gorzata Magdalena";
22417
22417
  var WORDS = "\u0412\u0435\u0440\u0430 \u041D\u0430\u0434\u0435\u0436\u0434\u0430 \u041B\u044E\u0431\u043E\u0432\u044C \u0421\u043B\u0430\u0432\u0430 \u0420\u043E\u043C\u0430\u043D \u0420\u043E\u0437\u0430 \u041C\u0430\u0439\u044F \u041B\u0438\u043B\u0438\u044F \u0417\u043B\u0430\u0442\u0430 \u041C\u0438\u043B\u0430 \u041D\u0438\u043A\u0430 \u041B\u0435\u0432 \u0413\u043B\u043E\u0440\u0438\u044F Will Mark Rose Grace Hope Faith Bill Frank Jack June April Summer Amber Ruby Lily Daisy Victoria Virginia Georgia Florence Sydney Chelsea Jordan Austin Dallas Mercedes Dolores Rosa Pilar Marina Esperanza Gloria Amparo Consuelo Roc\xEDo Salvador Santiago Jes\xFAs \xC1ngeles Hugo Ram\xF3n Christian Felix F\xE9lix Mario Martin Victor Pierre Paz Merc\xE8 Estrella Aurora Concepci\xF3n Remedios Soledad Milagros Angel \xC1ngel Dawn Joy Holly Ivy Iris Violet Pearl";
@@ -22419,7 +22419,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
22419
22419
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
22420
22420
  var NAME_WORDS = WORDS.split(" ");
22421
22421
 
22422
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/person-names.js
22422
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/person-names.js
22423
22423
  var LATIN_TO_CYRILLIC = {
22424
22424
  shch: "\u0449",
22425
22425
  sch: "\u0449",
@@ -22627,7 +22627,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text9, stem, taken) => {
22627
22627
  return found2;
22628
22628
  }, "findUnknownNames");
22629
22629
 
22630
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/attachments.js
22630
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/attachments.js
22631
22631
  var NOT_FILES = /* @__PURE__ */ new Set([
22632
22632
  "webpage",
22633
22633
  "share",
@@ -22668,7 +22668,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored4, files2) => {
22668
22668
  });
22669
22669
  }, "matchDownloads");
22670
22670
 
22671
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
22671
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
22672
22672
  var PRESET_VERSION = 1;
22673
22673
  var PRESETS = {
22674
22674
  password: {
@@ -22722,7 +22722,7 @@ var PRESETS = {
22722
22722
  }
22723
22723
  };
22724
22724
 
22725
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
22725
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
22726
22726
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
22727
22727
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
22728
22728
  var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
@@ -22746,7 +22746,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
22746
22746
  };
22747
22747
  }, "linkMatch");
22748
22748
 
22749
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
22749
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
22750
22750
  var SETTING = "phoneCountries";
22751
22751
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
22752
22752
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -22777,7 +22777,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
22777
22777
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
22778
22778
  }, "valueMatch");
22779
22779
 
22780
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
22780
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
22781
22781
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
22782
22782
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
22783
22783
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -22805,7 +22805,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
22805
22805
  return 2 * intersection2 / (aa2.size + bb.size);
22806
22806
  }, "vocabularySimilarity");
22807
22807
 
22808
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
22808
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
22809
22809
  import { createHash } from "node:crypto";
22810
22810
  var folded2 = /* @__PURE__ */ __name((name) => {
22811
22811
  try {
@@ -22871,7 +22871,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
22871
22871
  });
22872
22872
  }, "guardTagCreation");
22873
22873
 
22874
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
22874
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
22875
22875
  var invalid = /* @__PURE__ */ __name((message3) => {
22876
22876
  throw new CliError("validation_error", message3);
22877
22877
  }, "invalid");
@@ -22948,7 +22948,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
22948
22948
  };
22949
22949
  }, "createTagRedirectIndex");
22950
22950
 
22951
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
22951
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
22952
22952
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
22953
22953
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
22954
22954
  if (!row2)
@@ -22976,7 +22976,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
22976
22976
  return snapshot2;
22977
22977
  }, "tagRedirectSnapshot");
22978
22978
 
22979
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
22979
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
22980
22980
  import { createHash as createHash2 } from "node:crypto";
22981
22981
  var TASK_KEY_PREFIXES = {
22982
22982
  question: "Q",
@@ -23004,7 +23004,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
23004
23004
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
23005
23005
  }, "taskAccountOf");
23006
23006
 
23007
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
23007
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
23008
23008
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
23009
23009
  var REFERABLE = {
23010
23010
  ...Object.fromEntries(Object.entries(RECORD_TYPES).map(([type, { tombstone: tombstone2 }]) => [type, { tombstone: tombstone2 }])),
@@ -23168,7 +23168,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
23168
23168
  return row2 ? String(row2.id ?? row2.key) : void 0;
23169
23169
  }, "taskIdOf");
23170
23170
 
23171
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
23171
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
23172
23172
  var toMs = /* @__PURE__ */ __name((iso18) => {
23173
23173
  if (iso18 === null || iso18 === void 0)
23174
23174
  return null;
@@ -23182,7 +23182,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
23182
23182
  var DELIVERY = { delivered: 1, read: 2 };
23183
23183
  var deliveryOf = /* @__PURE__ */ __name((stored4) => stored4 === DELIVERY.read ? "read" : stored4 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
23184
23184
 
23185
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
23185
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
23186
23186
  var TAG_KINDS = ["tag", "topic"];
23187
23187
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
23188
23188
  var TAG_TYPE = {
@@ -23385,7 +23385,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
23385
23385
  return result;
23386
23386
  }, "tagsOf");
23387
23387
 
23388
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/trigram-match.js
23388
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/trigram-match.js
23389
23389
  var MOST_YO_SPELLINGS = 64;
23390
23390
  var yoSpellings = /* @__PURE__ */ __name((run) => {
23391
23391
  let spellings2 = [""];
@@ -23407,7 +23407,7 @@ var anyCaseGlob = /* @__PURE__ */ __name((word2) => `*${[...word2.normalize("NFC
23407
23407
  return forms2.size === 1 ? c : `[${[...forms2].join("")}]`;
23408
23408
  }).join("")}*`, "anyCaseGlob");
23409
23409
 
23410
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
23410
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
23411
23411
  var MESSAGES = {
23412
23412
  rows: "messages",
23413
23413
  threads: "chats",
@@ -23915,7 +23915,7 @@ var FIELD_COMPILERS = {
23915
23915
  subject
23916
23916
  };
23917
23917
 
23918
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
23918
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
23919
23919
  var placeOf = /* @__PURE__ */ __name((database) => {
23920
23920
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
23921
23921
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -23931,7 +23931,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
23931
23931
  };
23932
23932
  }, "placeOf");
23933
23933
 
23934
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
23934
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
23935
23935
  var DRAIN_ON_WRITE = 500;
23936
23936
  var METHOD = "rules";
23937
23937
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -24097,7 +24097,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
24097
24097
  return queued.length;
24098
24098
  }, "drainMentions");
24099
24099
 
24100
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
24100
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
24101
24101
  var indexRow = /* @__PURE__ */ __name((database, name) => {
24102
24102
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
24103
24103
  if (!exists2)
@@ -24105,7 +24105,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
24105
24105
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
24106
24106
  }, "indexRow");
24107
24107
 
24108
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
24108
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
24109
24109
  var INDEX = "message_stems";
24110
24110
  var SETTING2 = "searchStemmers";
24111
24111
  var DRAIN_ON_WRITE2 = 500;
@@ -24231,7 +24231,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
24231
24231
  };
24232
24232
  }, "stemmerCache");
24233
24233
 
24234
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
24234
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
24235
24235
  var rehearsal = new AsyncLocalStorage();
24236
24236
  var SQLITE_BUSY = 5;
24237
24237
  var pause = new Int32Array(new SharedArrayBuffer(4));
@@ -24374,7 +24374,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
24374
24374
  }
24375
24375
  }, "read");
24376
24376
 
24377
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
24377
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
24378
24378
  var FOLDED = [
24379
24379
  { table: "tasks", column: "title" },
24380
24380
  { table: "tasks", column: "close_reason" },
@@ -24411,7 +24411,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
24411
24411
  return filled;
24412
24412
  }, "fillFolded");
24413
24413
 
24414
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
24414
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
24415
24415
  import { createHash as createHash3 } from "node:crypto";
24416
24416
  var CHUNK_CHARS = 1200;
24417
24417
  var CHUNK_OVERLAP = 150;
@@ -24516,7 +24516,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
24516
24516
  return chunks2;
24517
24517
  }, "cutChunks");
24518
24518
 
24519
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/task-signature.js
24519
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/task-signature.js
24520
24520
  var DAY2 = 864e5;
24521
24521
  var CURRENCY = [
24522
24522
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -24642,7 +24642,7 @@ var dueDayOf = /* @__PURE__ */ __name((text9, createdMs) => {
24642
24642
  return best?.day ?? null;
24643
24643
  }, "dueDayOf");
24644
24644
 
24645
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
24645
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
24646
24646
  var DAY3 = 864e5;
24647
24647
  var STOP_WORDS = new Set([
24648
24648
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -24797,7 +24797,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
24797
24797
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
24798
24798
  })).sort((a, b) => b.score - a.score), "rankCandidates");
24799
24799
 
24800
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
24800
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
24801
24801
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
24802
24802
  coalesce(CASE k.chunkable_type
24803
24803
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -24939,7 +24939,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
24939
24939
  }, "dropUnusedVectors");
24940
24940
  var dropAllUnusedVectors = /* @__PURE__ */ __name((database) => database.prepare("DELETE FROM embeddings WHERE NOT EXISTS (SELECT 1 FROM chunks k WHERE k.content_hash = embeddings.content_hash) RETURNING 1").all().length, "dropAllUnusedVectors");
24941
24941
 
24942
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
24942
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
24943
24943
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
24944
24944
  r.last_message_id, r.text_start, r.text_end FROM conversations c
24945
24945
  CROSS JOIN chunks k ON k.chunkable_type = 'conversation' AND k.chunkable_id = c.id
@@ -25288,7 +25288,7 @@ var vectorCounts = /* @__PURE__ */ __name(({ orm }, models) => new Map(models.ma
25288
25288
  Number(orm.get(sql`SELECT count(*) AS n FROM embeddings WHERE model = ${model}`)?.n ?? 0)
25289
25289
  ])), "vectorCounts");
25290
25290
 
25291
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
25291
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
25292
25292
  var DOCUMENT_PICTURE = "document_picture";
25293
25293
  var SCAN_PAGE2 = 5e3;
25294
25294
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -25351,12 +25351,12 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
25351
25351
  }, "nearestPictures")
25352
25352
  }), "documentPicturesOver");
25353
25353
 
25354
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/index-text.js
25354
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/index-text.js
25355
25355
  var noteIndexText = /* @__PURE__ */ __name((title2, text9) => title2 ? `${title2}
25356
25356
 
25357
25357
  ${text9}` : text9, "noteIndexText");
25358
25358
 
25359
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/enrichments.js
25359
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/enrichments.js
25360
25360
  var ENRICHMENT_SUBJECTS = ["document", "note", "email"];
25361
25361
  var ENRICHMENT_POSITION = 1e6;
25362
25362
  var EMAIL_ENRICHMENT = "email_enrichment";
@@ -25450,7 +25450,7 @@ var enrichmentsOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
25450
25450
  }), "clear")
25451
25451
  }), "enrichmentsOver");
25452
25452
 
25453
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
25453
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
25454
25454
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
25455
25455
  const literal4 = escaped2 ?? plain2 ?? "";
25456
25456
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -25526,7 +25526,7 @@ var compile = /* @__PURE__ */ __name((node, columns2, options) => {
25526
25526
  var queryFilter = /* @__PURE__ */ __name((ast, columns2, options) => compile(ast.root, columns2, options), "queryFilter");
25527
25527
  var bound2 = /* @__PURE__ */ __name(({ sql: text9, params }) => sql.join(text9.split("?").map((part2, at2) => at2 < params.length ? sql`${sql.raw(part2)}${params[at2]}` : sql.raw(part2)), sql``), "bound");
25528
25528
 
25529
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
25529
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
25530
25530
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
25531
25531
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
25532
25532
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -25616,7 +25616,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
25616
25616
  });
25617
25617
  }, "linkMeeting");
25618
25618
 
25619
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-titles.js
25619
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-titles.js
25620
25620
  var MAX_TITLE = 120;
25621
25621
  var placeholderTitleOf = /* @__PURE__ */ __name((row2) => `${String(row2.type)} \u2014 ${String(row2.source_locator ?? "")}`, "placeholderTitleOf");
25622
25622
  var PLACEHOLDER_TITLE_SQL = "title = type || ' \u2014 ' || coalesce(source_locator, '')";
@@ -25678,7 +25678,7 @@ var fillFoundTaskTitles = /* @__PURE__ */ __name((database, warn, { batch = 500
25678
25678
  }
25679
25679
  }, "fillFoundTaskTitles");
25680
25680
 
25681
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
25681
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
25682
25682
  var EVENT_TEXT = "trim(coalesce(e.description, '') || ' ' || coalesce(e.location, '') || ' ' || coalesce((SELECT group_concat(p.name, ' ') FROM calendar_entries ce JOIN calendar_entry_participants p ON p.entry_id = ce.id WHERE ce.event_id = e.id AND ce.deleted_at IS NULL AND p.resource = 0 AND p.name IS NOT NULL), ''))";
25683
25683
  var UNSEARCHED_EVENT_TYPES = [
25684
25684
  "working-location",
@@ -25925,7 +25925,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
25925
25925
  return true;
25926
25926
  }, "resetNoteIndex");
25927
25927
 
25928
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
25928
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
25929
25929
  var keyOf2 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
25930
25930
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
25931
25931
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf2))) {
@@ -25944,7 +25944,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
25944
25944
  }
25945
25945
  }, "resolvePersonLinks");
25946
25946
 
25947
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
25947
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
25948
25948
  var canonicalTags = sqliteTable("canonical_tags", {
25949
25949
  id: integer("id").primaryKey(),
25950
25950
  name: text("name").notNull().unique(),
@@ -25953,7 +25953,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
25953
25953
  updatedAt: integer("updated_at").notNull()
25954
25954
  });
25955
25955
 
25956
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/link-revisions.js
25956
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/link-revisions.js
25957
25957
  var linkRevisions = sqliteTable("link_revisions", {
25958
25958
  id: integer("id").primaryKey(),
25959
25959
  linkId: integer("link_id").notNull(),
@@ -25965,7 +25965,7 @@ var linkRevisions = sqliteTable("link_revisions", {
25965
25965
  createdAt: integer("created_at").notNull()
25966
25966
  }, (table) => [index("link_revisions_by_link_id_created_at").on(table.linkId, table.createdAt)]);
25967
25967
 
25968
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
25968
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
25969
25969
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
25970
25970
  sourceKey: text("source_key").notNull(),
25971
25971
  collection: text("collection").notNull(),
@@ -25975,7 +25975,7 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
25975
25975
  createdAt: integer("created_at").notNull()
25976
25976
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
25977
25977
 
25978
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-changes.js
25978
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-changes.js
25979
25979
  var documentChanges = sqliteTable("document_changes", {
25980
25980
  id: integer("id").primaryKey(),
25981
25981
  accountId: integer("account_id").notNull(),
@@ -25987,13 +25987,13 @@ var documentChanges = sqliteTable("document_changes", {
25987
25987
  at: integer("at").notNull()
25988
25988
  }, (table) => [index("document_changes_by_account_id_at").on(table.accountId, table.at)]);
25989
25989
 
25990
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
25990
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
25991
25991
  var documentIndexPending = sqliteTable("document_index_pending", {
25992
25992
  id: integer("id").notNull(),
25993
25993
  indexableType: text("indexable_type").notNull()
25994
25994
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
25995
25995
 
25996
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/decision-requests.js
25996
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/decision-requests.js
25997
25997
  var decisionRequests = sqliteTable("decision_requests", {
25998
25998
  id: integer("id").primaryKey(),
25999
25999
  tokenDigest: text("token_digest").notNull().unique(),
@@ -26013,7 +26013,7 @@ var decisionRequests = sqliteTable("decision_requests", {
26013
26013
  index("decision_requests_by_channel_bot_profile_chat_id_message_id").on(table.channel, table.botProfile, table.chatId, table.messageId)
26014
26014
  ]);
26015
26015
 
26016
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/enrichments.js
26016
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/enrichments.js
26017
26017
  var enrichments = sqliteTable("enrichments", {
26018
26018
  subjectType: text("subject_type").notNull(),
26019
26019
  subjectId: integer("subject_id").notNull(),
@@ -26025,7 +26025,7 @@ var enrichments = sqliteTable("enrichments", {
26025
26025
  createdAt: integer("created_at").notNull()
26026
26026
  }, (table) => [primaryKey({ columns: [table.subjectType, table.subjectId] })]);
26027
26027
 
26028
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/templates.js
26028
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/templates.js
26029
26029
  var templates = sqliteTable("templates", {
26030
26030
  key: text("key").notNull(),
26031
26031
  channel: text("channel").notNull(),
@@ -26047,7 +26047,7 @@ var templatesHistory = sqliteTable("templates_history", {
26047
26047
  index("templates_history_by_key_channel_language_id").on(table.key, table.channel, table.language, table.id)
26048
26048
  ]);
26049
26049
 
26050
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/links.js
26050
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/links.js
26051
26051
  var links = sqliteTable("links", {
26052
26052
  id: integer("id").primaryKey(),
26053
26053
  fromType: text("from_type").notNull(),
@@ -26078,7 +26078,7 @@ var links = sqliteTable("links", {
26078
26078
  index("links_by_to_type_to_id").on(table.toType, table.toId)
26079
26079
  ]);
26080
26080
 
26081
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
26081
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
26082
26082
  var tagRedirects = sqliteTable("tag_redirects", {
26083
26083
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
26084
26084
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -26104,7 +26104,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
26104
26104
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
26105
26105
  ]);
26106
26106
 
26107
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
26107
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
26108
26108
  var accounts = sqliteTable("accounts", {
26109
26109
  id: integer("id").primaryKey(),
26110
26110
  provider: text("provider").notNull(),
@@ -28275,7 +28275,7 @@ var storeSettings = sqliteTable("store_settings", {
28275
28275
  at: integer("at").notNull()
28276
28276
  });
28277
28277
 
28278
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
28278
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
28279
28279
  var contactsOf = /* @__PURE__ */ __name(({ phones: phones2, emails: emails3 }) => {
28280
28280
  if (phones2 === void 0 && emails3 === void 0)
28281
28281
  return void 0;
@@ -28521,7 +28521,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
28521
28521
  }, "meetingIdentityPk");
28522
28522
  var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
28523
28523
 
28524
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/display-names.js
28524
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/display-names.js
28525
28525
  var QUOTES = [
28526
28526
  ['"', '"'],
28527
28527
  ["'", "'"],
@@ -28579,7 +28579,7 @@ var nameKey = /* @__PURE__ */ __name((name) => {
28579
28579
  }, "nameKey");
28580
28580
  var isReadable = /* @__PURE__ */ __name((shown2) => shown2 !== null && READABLE.test(shown2), "isReadable");
28581
28581
 
28582
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-separation.js
28582
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-separation.js
28583
28583
  var identitiesOf = /* @__PURE__ */ __name(({ database }, person2) => database.prepare("SELECT identity_id AS pk FROM identity_links WHERE person_id = ?").all(person2).map(({ pk }) => Number(pk)), "identitiesOf");
28584
28584
  var MOVED_AWAY = `moved.identity_id IN (SELECT value FROM json_each(?))
28585
28585
  AND (moved.from_person_id IN (SELECT value FROM json_each(?))
@@ -28594,7 +28594,7 @@ var apart = /* @__PURE__ */ __name(({ database }, one2, other) => {
28594
28594
  var separated = /* @__PURE__ */ __name((context, one2, other) => one2 !== other && apart(context, { identities: identitiesOf(context, one2), person: one2 }, { identities: identitiesOf(context, other), person: other }), "separated");
28595
28595
  var identitySeparated = /* @__PURE__ */ __name((context, identity, person2) => apart(context, { identities: [identity] }, { identities: identitiesOf(context, person2).filter((pk) => pk !== identity), person: person2 }), "identitySeparated");
28596
28596
 
28597
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
28597
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
28598
28598
  var MESSAGE_FIELDS = {
28599
28599
  pk: messages.id,
28600
28600
  nativeId: messages.externalId,
@@ -28774,7 +28774,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
28774
28774
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
28775
28775
  }), "chatActivity");
28776
28776
 
28777
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
28777
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
28778
28778
  var HIT_FIELDS = {
28779
28779
  ...MESSAGE_FIELDS,
28780
28780
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -28875,7 +28875,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
28875
28875
  };
28876
28876
  }, "directReplies");
28877
28877
 
28878
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
28878
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
28879
28879
  var identityRow = /* @__PURE__ */ __name(({ orm }, { provider, id: id2 }) => orm.select({ pk: identities.id, personPk: identityLinks.personId }).from(identities).innerJoin(identityLinks, eq(identityLinks.identityId, identities.id)).where(and(eq(identities.provider, provider), eq(identities.externalId, id2))).get(), "identityRow");
28880
28880
  var required = /* @__PURE__ */ __name((context, ref3) => {
28881
28881
  const found2 = identityRow(context, ref3);
@@ -29088,7 +29088,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
29088
29088
  }, "mentioning");
29089
29089
  var escaped = /* @__PURE__ */ __name((text9) => text9.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
29090
29090
 
29091
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
29091
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
29092
29092
  var BOT_KINDS = ["agent", "rule", "script", "integration"];
29093
29093
  var ownerPerson = /* @__PURE__ */ __name((database) => {
29094
29094
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -29145,7 +29145,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
29145
29145
  return { sql: bot("pb.name = ?"), params: [by.bot] };
29146
29146
  }, "proposedBySql");
29147
29147
 
29148
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review-marks.js
29148
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review-marks.js
29149
29149
  var TABLES = { memory: "memories", fact: "facts" };
29150
29150
  var HOLDING = { memory: ["proposed", "confirmed"], fact: ["proposed", "accepted"] };
29151
29151
  var KEPT = 20;
@@ -29240,7 +29240,7 @@ var scrubSourceReviews = /* @__PURE__ */ __name((database, erased, { refs }) =>
29240
29240
  return scrubbed;
29241
29241
  }, "scrubSourceReviews");
29242
29242
 
29243
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-signature.js
29243
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-signature.js
29244
29244
  var QUOTE_LIMIT = 500;
29245
29245
  var GONE = { sig: "gone", rev: null, deleted: true, changedAt: null };
29246
29246
  var part = /* @__PURE__ */ __name((value) => value == null ? "" : String(value), "part");
@@ -29519,7 +29519,7 @@ var deleteDocumentRow = /* @__PURE__ */ __name((database, id2, at2) => {
29519
29519
  database.prepare("DELETE FROM documents WHERE id = ?").run(id2);
29520
29520
  }, "deleteDocumentRow");
29521
29521
 
29522
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-accounts.js
29522
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-accounts.js
29523
29523
  var accountKeys = /* @__PURE__ */ __name((database, ids3) => {
29524
29524
  const unique2 = [...new Set(ids3)];
29525
29525
  if (unique2.length === 0)
@@ -29608,7 +29608,7 @@ var refEndsOf = /* @__PURE__ */ __name((database, text9) => {
29608
29608
  }, "refEndsOf");
29609
29609
  var refAccountsOf = /* @__PURE__ */ __name((database, text9) => refEndsOf(database, text9)?.flat(), "refAccountsOf");
29610
29610
 
29611
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
29611
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
29612
29612
  var EXCERPT_CHARS = 280;
29613
29613
  var TITLE_CHARS = 120;
29614
29614
  var MEMORY_TITLE_CHARS = 80;
@@ -30032,7 +30032,7 @@ var refsStoreOver = /* @__PURE__ */ __name((context) => ({
30032
30032
  ends: /* @__PURE__ */ __name(async (text9) => refEndsOf(context.database, text9), "ends")
30033
30033
  }), "refsStoreOver");
30034
30034
 
30035
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
30035
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
30036
30036
  var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
30037
30037
  ref: ref3,
30038
30038
  kind: read2.kind,
@@ -30070,7 +30070,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
30070
30070
  });
30071
30071
  }, "evidenceSourcesOf");
30072
30072
 
30073
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/ulid.js
30073
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/ulid.js
30074
30074
  import { randomBytes } from "node:crypto";
30075
30075
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
30076
30076
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -30083,7 +30083,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
30083
30083
  return time3 + random;
30084
30084
  }, "ulid");
30085
30085
 
30086
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-history.js
30086
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-history.js
30087
30087
  var DOCUMENT_REMOVALS = ["deleted", "unavailable", "unsynced"];
30088
30088
  var DOCUMENT_EVENTS = ["added", "changed", "restored", ...DOCUMENT_REMOVALS];
30089
30089
  var iso3 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -30203,7 +30203,7 @@ var documentHistoryOver = /* @__PURE__ */ __name(({ database }) => {
30203
30203
  };
30204
30204
  }, "documentHistoryOver");
30205
30205
 
30206
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
30206
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
30207
30207
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
30208
30208
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
30209
30209
  if (!meta && !sections?.length)
@@ -30224,11 +30224,11 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
30224
30224
  return typeof language === "string" && language !== "" ? language : null;
30225
30225
  }, "languageOf");
30226
30226
 
30227
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/file-note.js
30227
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/file-note.js
30228
30228
  var LIVE3 = "f.deleted_at IS NULL AND d.deleted_at IS NULL AND coalesce(json_extract(d.metadata, '$.catalog.active'), 1)=1";
30229
30229
  var fileNoteRow = /* @__PURE__ */ __name((database, account, local, path) => database.prepare(local ? `SELECT d.*, f.account_id AS account_id, f.external_id AS external_id, coalesce(f.external_updated_at, d.external_updated_at) AS external_updated_at FROM files f JOIN documents d ON d.id = f.document_id WHERE f.account_id = ? AND f.external_id = ? AND ${LIVE3} ORDER BY d.created_at, d.id LIMIT 1` : `SELECT d.*, f.account_id AS account_id, coalesce(f.external_updated_at, d.external_updated_at) AS external_updated_at FROM documents d JOIN files f ON f.document_id = d.id AND f.account_id = d.account_id WHERE d.account_id = ? AND d.external_id = ? AND ${LIVE3} LIMIT 1`).get(account, path), "fileNoteRow");
30230
30230
 
30231
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
30231
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
30232
30232
  var isObject2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
30233
30233
  var objectOf2 = /* @__PURE__ */ __name((value) => {
30234
30234
  if (isObject2(value))
@@ -30475,7 +30475,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
30475
30475
  };
30476
30476
  }, "filesStoreOver");
30477
30477
 
30478
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
30478
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
30479
30479
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
30480
30480
  entity: "document",
30481
30481
  backend: "sql",
@@ -30521,7 +30521,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
30521
30521
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns2, { zone: timezoneOf() });
30522
30522
  }, "importedDocumentWhere");
30523
30523
 
30524
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
30524
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
30525
30525
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
30526
30526
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
30527
30527
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -30529,7 +30529,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
30529
30529
  reason = excluded.reason, updated_at = excluded.updated_at WHERE link_reviews.status = 'open'`).run(linkable.type, linkable.id, entity, JSON.stringify([...candidates].sort((a, b) => a - b)), reason, now2, now2);
30530
30530
  }, "reviewLink");
30531
30531
 
30532
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/link-row.js
30532
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/link-row.js
30533
30533
  var iso4 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
30534
30534
  var thingRef = /* @__PURE__ */ __name((database, type, id2) => type == null || id2 == null ? null : referenceOfThing(database, storedThing(type, id2)) ?? null, "thingRef");
30535
30535
  var hasBothEnds = /* @__PURE__ */ __name((link3) => link3.from !== null && link3.to !== null, "hasBothEnds");
@@ -30563,7 +30563,7 @@ var linkOf = /* @__PURE__ */ __name((database, row2) => {
30563
30563
  };
30564
30564
  }, "linkOf");
30565
30565
 
30566
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-dates.js
30566
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-dates.js
30567
30567
  var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
30568
30568
  const fileAt = database.prepare("SELECT id, document_id FROM files WHERE account_id = ? AND external_id = ? AND kind <> 'folder' AND deleted_at IS NULL");
30569
30569
  const legacy = database.prepare("SELECT id FROM documents WHERE account_id = ? AND external_id = ? AND deleted_at IS NULL");
@@ -30584,7 +30584,7 @@ var dateFileNotes = /* @__PURE__ */ __name((database, folder, dates) => {
30584
30584
  return changed;
30585
30585
  }, "dateFileNotes");
30586
30586
 
30587
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/text-input.js
30587
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/text-input.js
30588
30588
  var textOf2 = /* @__PURE__ */ __name((text9, what, max = 1e5, allowEmpty = false) => {
30589
30589
  const value = text9.trim();
30590
30590
  if (!value && !allowEmpty || value.length > max)
@@ -30597,7 +30597,7 @@ var oneOf = /* @__PURE__ */ __name((value, allowed, what) => {
30597
30597
  return value;
30598
30598
  }, "oneOf");
30599
30599
 
30600
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
30600
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
30601
30601
  var NOTE_FORMATS = ["obsidian", "markdown"];
30602
30602
  var RELATIONSHIPS = RELATION_KINDS.map(linkKind).join(", ");
30603
30603
  var iso5 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
@@ -31133,10 +31133,10 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
31133
31133
  };
31134
31134
  }, "notesStoreOver");
31135
31135
 
31136
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/rows-page.js
31136
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/rows-page.js
31137
31137
  var pageOfRows = /* @__PURE__ */ __name((rows, limit, offset = 0) => rows.length > limit ? { items: rows.slice(0, limit), hasMore: true, nextOffset: offset + limit } : { items: rows, hasMore: false }, "pageOfRows");
31138
31138
 
31139
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
31139
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
31140
31140
  var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
31141
31141
  var iso6 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
31142
31142
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -31401,7 +31401,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
31401
31401
  };
31402
31402
  }, "memoriesStoreOver");
31403
31403
 
31404
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/reviewed.js
31404
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/reviewed.js
31405
31405
  var prefixesText = /* @__PURE__ */ __name((types) => `${article(types[0] ?? "")} ${types.map((type) => `${type}:`).join(" or ")}`, "prefixesText");
31406
31406
  var refuse = /* @__PURE__ */ __name((message3, reason, code = "validation_error") => {
31407
31407
  throw new CliError(code, message3, { reason });
@@ -31549,7 +31549,7 @@ var reviewedRowsOver = /* @__PURE__ */ __name((context) => {
31549
31549
  return { partyOf, partyThing, reviewedOf, written, keepEvidence, ownerOnly: ownerOnly2, linkedId, ...decisionsOver(context) };
31550
31550
  }, "reviewedRowsOver");
31551
31551
 
31552
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/money-lines.js
31552
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/money-lines.js
31553
31553
  var MAX_LINES = 500;
31554
31554
  var PARENTS = {
31555
31555
  invoice: {
@@ -31649,7 +31649,7 @@ var moneyLinesOver = /* @__PURE__ */ __name(({ database }) => {
31649
31649
  return { linesOf, insertLines, shownLines, appendLine, deleteLine, sumOf, retotal };
31650
31650
  }, "moneyLinesOver");
31651
31651
 
31652
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/refunds.js
31652
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/refunds.js
31653
31653
  var COUNTED = {
31654
31654
  confirmed: "np.review = 'confirmed' AND np.deleted_at IS NULL",
31655
31655
  // A proposed refund promises nothing back yet, so it must not free room an import could then fill.
@@ -31724,7 +31724,7 @@ var refundRulesOver = /* @__PURE__ */ __name((context) => {
31724
31724
  return { originalFor, refundShare, confirmable, keepsRefunded, keepsShare, keepsInvoice };
31725
31725
  }, "refundRulesOver");
31726
31726
 
31727
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
31727
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
31728
31728
  var FINANCE_TYPES = ["invoice", "payment"];
31729
31729
  var isFinanceType = /* @__PURE__ */ __name((type) => FINANCE_TYPES.includes(type), "isFinanceType");
31730
31730
  var PAID = netPaidSql("i.id");
@@ -32128,7 +32128,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
32128
32128
  };
32129
32129
  }, "financeStoreOver");
32130
32130
 
32131
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
32131
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
32132
32132
  var refuse2 = /* @__PURE__ */ __name((message3, reason) => {
32133
32133
  throw new CliError("validation_error", message3, { reason });
32134
32134
  }, "refuse");
@@ -32206,7 +32206,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
32206
32206
  };
32207
32207
  }, "paymentEntriesOver");
32208
32208
 
32209
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
32209
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
32210
32210
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
32211
32211
  var reference = /* @__PURE__ */ __name((raw) => {
32212
32212
  if (/^(document|note):[1-9]\d*$/.test(raw))
@@ -32233,7 +32233,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
32233
32233
  return valid;
32234
32234
  }, "validateEvidenceFindings");
32235
32235
 
32236
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
32236
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
32237
32237
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
32238
32238
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
32239
32239
  var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -32427,7 +32427,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
32427
32427
  };
32428
32428
  }, "proposedActionsStoreOver");
32429
32429
 
32430
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-proposals.js
32430
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-proposals.js
32431
32431
  var CONFIRMED = "proposal";
32432
32432
  var refOf = /* @__PURE__ */ __name(({ database }, pk) => {
32433
32433
  const row2 = database.prepare("SELECT provider, external_id FROM identities WHERE id = ?").get(pk);
@@ -32779,7 +32779,7 @@ var identityLinkRows = /* @__PURE__ */ __name((context, { person: person2, statu
32779
32779
  return { items, hasMore: rows.length > limit };
32780
32780
  }, "identityLinkRows");
32781
32781
 
32782
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-merges.js
32782
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-merges.js
32783
32783
  var mergeId = /* @__PURE__ */ __name((to, from2) => `merge:${to}-${from2}`, "mergeId");
32784
32784
  var parseMergeId = /* @__PURE__ */ __name((id2) => {
32785
32785
  const found2 = /^merge:([1-9]\d*)-([1-9]\d*)$/.exec(id2.trim());
@@ -32882,7 +32882,7 @@ var split = /* @__PURE__ */ __name((context, uid, refs, by) => {
32882
32882
  return recordOf(context, alone);
32883
32883
  }, "split");
32884
32884
 
32885
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-split-proposals.js
32885
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-split-proposals.js
32886
32886
  var refOf2 = /* @__PURE__ */ __name(({ provider, id: id2 }) => `${provider}:${id2}`, "refOf");
32887
32887
  var keyOf3 = /* @__PURE__ */ __name((split2, person2, identities2) => `${split2} ${person2} ${[...identities2].sort().join(" ")}`, "keyOf");
32888
32888
  var planOf = /* @__PURE__ */ __name((context, input) => {
@@ -33059,7 +33059,7 @@ var forgetErasedSplits = /* @__PURE__ */ __name((database) => {
33059
33059
  database.prepare("DELETE FROM proposed_actions WHERE id = ?").run(Number(row2.id));
33060
33060
  }, "forgetErasedSplits");
33061
33061
 
33062
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/test-data.js
33062
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/test-data.js
33063
33063
  var SEED_PEOPLE = [
33064
33064
  { name: "Owner", username: "owner" },
33065
33065
  { name: "Ann Lee", username: "ann" },
@@ -33076,7 +33076,7 @@ var RESERVED_ADDRESS_GLOBS = [
33076
33076
  ];
33077
33077
  var SEED_ID_GLOBS = ["person-[0-9]*"];
33078
33078
 
33079
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/test-people.js
33079
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/test-people.js
33080
33080
  var TEST_DATA_KIND = "test_data";
33081
33081
  var globs = /* @__PURE__ */ __name((column2, patterns) => patterns.map((pattern) => `${column2} GLOB '${pattern}'`).join(" OR "), "globs");
33082
33082
  var SURE = `(${globs("i.external_id", SEED_ID_GLOBS)} OR ${globs("lower(i.email)", RESERVED_ADDRESS_GLOBS)})`;
@@ -33145,7 +33145,7 @@ var forgetErasedTestData = /* @__PURE__ */ __name((database) => {
33145
33145
  database.prepare("DELETE FROM proposed_actions WHERE id = ?").run(Number(row2.id));
33146
33146
  }, "forgetErasedTestData");
33147
33147
 
33148
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
33148
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
33149
33149
  var accountPk = /* @__PURE__ */ __name(({ orm, now: now2 }, { provider, account, scope: scope3 }, name = null, startScope) => Number(orm.insert(accounts).values({
33150
33150
  provider,
33151
33151
  externalId: account,
@@ -33239,7 +33239,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
33239
33239
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
33240
33240
  }, "dropOrphanPeople");
33241
33241
 
33242
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
33242
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
33243
33243
  var HISTORY_KEY = "$history";
33244
33244
  var objectOf3 = /* @__PURE__ */ __name((text9) => {
33245
33245
  if (typeof text9 !== "string")
@@ -33315,7 +33315,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
33315
33315
  return rest;
33316
33316
  }, "withoutHistory");
33317
33317
 
33318
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
33318
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
33319
33319
  var chatOf = /* @__PURE__ */ __name(({ orm }, accountKey, chatKey) => orm.select({ id: chats.externalId }).from(chats).where(and(eq(chats.id, chatKey), eq(chats.accountId, accountKey))).get()?.id, "chatOf");
33320
33320
  var findChatPk = /* @__PURE__ */ __name(({ orm }, accountKey, chatId) => orm.select({ pk: chats.id }).from(chats).where(and(eq(chats.accountId, accountKey), eq(chats.externalId, chatId))).get()?.pk, "findChatPk");
33321
33321
  var setChatScope = /* @__PURE__ */ __name((context, accountKey, chatId, scope3) => {
@@ -33613,7 +33613,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
33613
33613
  }
33614
33614
  }, "replaceAutoTags");
33615
33615
 
33616
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/counters.js
33616
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/counters.js
33617
33617
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
33618
33618
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
33619
33619
  var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
@@ -33632,7 +33632,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
33632
33632
  return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
33633
33633
  }, "counterFreshness");
33634
33634
 
33635
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-tokens.js
33635
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-tokens.js
33636
33636
  var BOT_TOKEN = /(?<!\d)(\d{6,12}):[A-Za-z0-9_-]{30,40}(?![A-Za-z0-9_-])/g;
33637
33637
  var MAY_HOLD = "*[0-9][0-9][0-9][0-9][0-9][0-9]:*";
33638
33638
  var MASKED_THROUGH = "bot_tokens_masked_through";
@@ -33672,7 +33672,7 @@ var maskStoredBotTokens = /* @__PURE__ */ __name((context) => {
33672
33672
  }, "maskStoredBotTokens");
33673
33673
  var masks = /* @__PURE__ */ __name((value) => value != null && withoutBotTokens(String(value)) !== value, "masks");
33674
33674
 
33675
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/context/evidence.js
33675
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/context/evidence.js
33676
33676
  import { createHash as createHash4 } from "node:crypto";
33677
33677
  var CONTEXT_MAX_READ_BYTES = 262144;
33678
33678
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -33770,7 +33770,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
33770
33770
  return { source: source2, query, chat: chat2, senders, words: words4, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
33771
33771
  }, "contextEvidenceRequest");
33772
33772
 
33773
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
33773
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
33774
33774
  var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
33775
33775
  var ACTIVITY = `
33776
33776
  SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
@@ -33900,7 +33900,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
33900
33900
  threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
33901
33901
  }), "mailActivity");
33902
33902
 
33903
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
33903
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
33904
33904
  var GREETING = new RegExp("^(hi|hello|hey|dear|greetings|good (morning|afternoon|evening)|\u043F\u0440\u0438\u0432\u0435\u0442|\u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439(\u0442\u0435)?|\u0434\u043E\u0431\u0440(\u044B\u0439|\u043E\u0435|\u043E\u0433\u043E) (\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440|\u0443\u0442\u0440\u043E|\u0443\u0442\u0440\u0430|\u0434\u043D\u044F)|hola|buen(os|as) (d\xEDas|dias|tardes|noches)|estimad[oa]s?|querid[oa]s?)(?![\\p{L}\\p{N}])([\\s,]+\\p{L}[\\p{L}.'\u2019-]*){0,3}\\s*[,!.:]?$", "iu");
33905
33905
  var SIGN_OFF = /^(best|best regards|best wishes|kind regards|warm regards|regards|thanks|thanks again|thanks a lot|thank you|many thanks|cheers|sincerely|yours|yours truly|yours sincerely|br|с уважением|спасибо|заранее спасибо|всего доброго|всего хорошего|un saludo|saludos|saludos cordiales|atentamente|gracias|muchas gracias)[\s,.!]*$/iu;
33906
33906
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -33981,7 +33981,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
33981
33981
  return withoutSignOff(withoutGreeting(kept2)).join("\n").trim();
33982
33982
  }, "mailCore");
33983
33983
 
33984
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
33984
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
33985
33985
  var titleOf2 = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
33986
33986
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
33987
33987
  k.start_offset, k.end_offset, k.account_id, k.occurred_at,
@@ -34094,7 +34094,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
34094
34094
  return emails3 + threads;
34095
34095
  }, "drainEmailIndex");
34096
34096
 
34097
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
34097
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
34098
34098
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
34099
34099
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
34100
34100
  var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
@@ -34192,7 +34192,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
34192
34192
  var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
34193
34193
  SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
34194
34194
 
34195
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
34195
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
34196
34196
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
34197
34197
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
34198
34198
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -34242,7 +34242,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
34242
34242
  return threads.length;
34243
34243
  }, "markEmailsRestored");
34244
34244
 
34245
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-nearest.js
34245
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-nearest.js
34246
34246
  var MAIL_PIECE_ROWS = `SELECT p.id, p.content_hash AS hash, p.type, p.owner, p.position, p.email_id AS email, v.vector
34247
34247
  FROM ${MAIL_PIECES} JOIN embeddings v ON v.model = ? AND v.content_hash = p.content_hash
34248
34248
  WHERE p.account_id = ?
@@ -34302,7 +34302,7 @@ var indexedMailPieces = /* @__PURE__ */ __name((database, model, query, filter,
34302
34302
  }, "indexedMailPieces");
34303
34303
  var nearestMailPieces = /* @__PURE__ */ __name((database, model, query, filter, depth) => (filter.threadExternalId === void 0 ? indexedMailPieces(database, model, query, filter, depth) : void 0) ?? scannedMailPieces(database, model, query, filter), "nearestMailPieces");
34304
34304
 
34305
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
34305
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
34306
34306
  var sorted = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(sorted) : value !== null && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key2) => [key2, sorted(value[key2])])) : value, "sorted");
34307
34307
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
34308
34308
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -34369,7 +34369,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
34369
34369
  }
34370
34370
  }), "mailRulesOver");
34371
34371
 
34372
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
34372
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
34373
34373
  function checkMeetingCancelled(signal) {
34374
34374
  if (!signal?.aborted)
34375
34375
  return;
@@ -34380,7 +34380,7 @@ function checkMeetingCancelled(signal) {
34380
34380
  }
34381
34381
  __name(checkMeetingCancelled, "checkMeetingCancelled");
34382
34382
 
34383
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
34383
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
34384
34384
  var managerOf = /* @__PURE__ */ __name((database, meetingId) => {
34385
34385
  const found2 = database.prepare("SELECT p.display_name, i.name, l.person_id FROM meeting_participants p JOIN identities i ON i.id = p.identity_id LEFT JOIN identity_links l ON l.identity_id = p.identity_id WHERE p.meeting_id = ? AND p.role = 'manager' ORDER BY p.id LIMIT 1").get(meetingId);
34386
34386
  if (!found2)
@@ -34445,7 +34445,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
34445
34445
  createdAt: Number(row2.created_at)
34446
34446
  }), "transcriptRowOf");
34447
34447
 
34448
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
34448
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
34449
34449
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
34450
34450
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
34451
34451
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -34612,7 +34612,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
34612
34612
  }
34613
34613
  }), "meetingReadsOver");
34614
34614
 
34615
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
34615
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
34616
34616
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
34617
34617
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
34618
34618
  const params = [input.accountId];
@@ -34655,7 +34655,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
34655
34655
  return { clauses, params };
34656
34656
  }, "meetingSelectionSql");
34657
34657
 
34658
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-calls.js
34658
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-calls.js
34659
34659
  var MOST_CALLS = 2e5;
34660
34660
  var parsed3 = /* @__PURE__ */ __name((value) => {
34661
34661
  if (typeof value !== "string")
@@ -34710,7 +34710,7 @@ var meetingCallsOver = /* @__PURE__ */ __name(({ database }) => ({
34710
34710
  }
34711
34711
  }), "meetingCallsOver");
34712
34712
 
34713
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
34713
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
34714
34714
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
34715
34715
  async meetingChatLines(input) {
34716
34716
  checkMeetingCancelled(input.signal);
@@ -34738,7 +34738,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
34738
34738
  }
34739
34739
  }), "meetingChatLinesOver");
34740
34740
 
34741
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
34741
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
34742
34742
  var missing2 = /* @__PURE__ */ __name(() => {
34743
34743
  throw new CliError("not_found", "Meeting, participant or selected target not found");
34744
34744
  }, "missing");
@@ -34861,7 +34861,7 @@ function meetingContextLinksOver(context) {
34861
34861
  }
34862
34862
  __name(meetingContextLinksOver, "meetingContextLinksOver");
34863
34863
 
34864
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-documents.js
34864
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-documents.js
34865
34865
  var TRANSCRIPT_ROLE = "transcript";
34866
34866
  var roleOf3 = /* @__PURE__ */ __name((value) => MEETING_DOCUMENT_ROLES.find((role) => role === value), "roleOf");
34867
34867
  var attach = /* @__PURE__ */ __name((database, meetingId, fileId, role, metadata3, listed, now2) => {
@@ -34935,7 +34935,7 @@ var meetingTranscriptDocumentsOver = /* @__PURE__ */ __name(({ database }) => {
34935
34935
  };
34936
34936
  }, "meetingTranscriptDocumentsOver");
34937
34937
 
34938
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
34938
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
34939
34939
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
34940
34940
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
34941
34941
  var summaryOf2 = /* @__PURE__ */ __name((row2) => ({
@@ -34964,7 +34964,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
34964
34964
  return row2 ? summaryText(summaryOf2(row2)) : null;
34965
34965
  }, "indexedText");
34966
34966
 
34967
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
34967
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
34968
34968
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
34969
34969
  var meetingCurrentIndexRows = `
34970
34970
  SELECT 'meeting_transcript_row' AS indexable_type,r.id,r.id*4+1 AS rid,1 AS live,coalesce(length(CAST(r.text AS BLOB)),0) AS bytes FROM meeting_transcript_rows r JOIN meeting_transcripts t ON t.id=r.meeting_transcript_id JOIN meetings m ON m.id=t.meeting_id WHERE m.account_id=? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL
@@ -34995,7 +34995,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
34995
34995
  }, "invalidateMeetingStems");
34996
34996
  var meetingStemmableText = /* @__PURE__ */ __name((text9) => text9.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
34997
34997
 
34998
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
34998
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
34999
34999
  function meetingHitIndexOver({ database, now: now2 }) {
35000
35000
  return {
35001
35001
  async indexSearch(original) {
@@ -35063,10 +35063,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
35063
35063
  }
35064
35064
  __name(meetingHitIndexOver, "meetingHitIndexOver");
35065
35065
 
35066
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
35066
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
35067
35067
  import { createHash as createHash5 } from "node:crypto";
35068
35068
 
35069
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/correct.js
35069
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/correct.js
35070
35070
  var SHORTEST_CORRECTION = 3;
35071
35071
  var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
35072
35072
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -35113,7 +35113,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words4) => {
35113
35113
  return corrections;
35114
35114
  }, "correctWords");
35115
35115
 
35116
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/garbled.js
35116
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/garbled.js
35117
35117
  var SHORTEST_GARBLED = 4;
35118
35118
  var MOST_WIDENED = 64;
35119
35119
  var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
@@ -35205,7 +35205,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
35205
35205
  return found2.map((words4) => words4.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word2) => word2.term));
35206
35206
  }, "widenWords");
35207
35207
 
35208
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
35208
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
35209
35209
  import { readFileSync } from "node:fs";
35210
35210
  var loaded;
35211
35211
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -35264,7 +35264,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
35264
35264
  return false;
35265
35265
  }, "knownRussianWord");
35266
35266
 
35267
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
35267
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
35268
35268
  var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
35269
35269
  var MOST_WORDS = 128;
35270
35270
  var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
@@ -35520,7 +35520,7 @@ var matchedMeetingWords = /* @__PURE__ */ __name((tree, text9, stemmer2) => {
35520
35520
  return [...found2];
35521
35521
  }, "matchedMeetingWords");
35522
35522
 
35523
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
35523
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
35524
35524
  var fail = /* @__PURE__ */ __name((message3) => {
35525
35525
  throw new CliError("validation_error", message3);
35526
35526
  }, "fail");
@@ -35704,7 +35704,7 @@ function meetingHitSearchOver({ database }) {
35704
35704
  }
35705
35705
  __name(meetingHitSearchOver, "meetingHitSearchOver");
35706
35706
 
35707
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
35707
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
35708
35708
  var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
35709
35709
  async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
35710
35710
  positiveReadInteger(accountId, "accountId");
@@ -35736,7 +35736,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
35736
35736
  }
35737
35737
  }), "meetingLanguagesOver");
35738
35738
 
35739
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
35739
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
35740
35740
  import { createHash as createHash6 } from "node:crypto";
35741
35741
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
35742
35742
  if (value === void 0)
@@ -35829,7 +35829,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
35829
35829
  }
35830
35830
  }), "meetingParticipantSearchOver");
35831
35831
 
35832
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
35832
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
35833
35833
  var preparationQueries = {
35834
35834
  participants: {
35835
35835
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -35879,7 +35879,7 @@ var preparationQueries = {
35879
35879
  }
35880
35880
  };
35881
35881
 
35882
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
35882
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
35883
35883
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
35884
35884
  async preparationContext(original) {
35885
35885
  const input = validateMeetingPreparationContext(original);
@@ -35920,7 +35920,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
35920
35920
  }
35921
35921
  }), "meetingPreparationContextOver");
35922
35922
 
35923
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
35923
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
35924
35924
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
35925
35925
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
35926
35926
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -35934,7 +35934,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
35934
35934
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
35935
35935
  )`, "preparationSubjects");
35936
35936
 
35937
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
35937
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
35938
35938
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
35939
35939
  async preparationKnowledge(original) {
35940
35940
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -35979,7 +35979,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
35979
35979
  }
35980
35980
  }), "meetingPreparationKnowledgeOver");
35981
35981
 
35982
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
35982
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
35983
35983
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
35984
35984
  async preparationNotes(original) {
35985
35985
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -36032,7 +36032,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
36032
36032
  }
36033
36033
  }), "meetingPreparationNotesOver");
36034
36034
 
36035
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
36035
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
36036
36036
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
36037
36037
  async relatedHistory(original) {
36038
36038
  const input = validateMeetingRelatedHistory(original);
@@ -36103,7 +36103,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
36103
36103
  }
36104
36104
  }), "meetingRelatedHistoryOver");
36105
36105
 
36106
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
36106
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
36107
36107
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
36108
36108
  var text4 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
36109
36109
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -36184,7 +36184,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
36184
36184
  }
36185
36185
  }), "meetingReviewOver");
36186
36186
 
36187
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
36187
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
36188
36188
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
36189
36189
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
36190
36190
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -36238,7 +36238,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
36238
36238
  }
36239
36239
  }), "meetingSeriesHistoryOver");
36240
36240
 
36241
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
36241
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
36242
36242
  var MOST_ROWS = 5e5;
36243
36243
  var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
36244
36244
  EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
@@ -36307,7 +36307,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
36307
36307
  }
36308
36308
  }), "meetingStatsOver");
36309
36309
 
36310
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/name-variants.js
36310
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/name-variants.js
36311
36311
  var CYRILLIC_TO_LATIN = {
36312
36312
  \u0430: "a",
36313
36313
  \u0431: "b",
@@ -36529,7 +36529,7 @@ for (const [full, short] of Object.entries(SHORT_FORMS))
36529
36529
  }
36530
36530
  var fullNames = /* @__PURE__ */ __name((skeleton) => [skeleton, ...FULL_NAMES.get(skeleton) ?? []], "fullNames");
36531
36531
 
36532
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/name-traces.js
36532
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/name-traces.js
36533
36533
  var peopleByNameKey = /* @__PURE__ */ __name((database) => {
36534
36534
  const found2 = /* @__PURE__ */ new Map();
36535
36535
  for (const row2 of database.prepare("SELECT p.id, p.name FROM persons p WHERE p.owner = 0 AND p.name IS NOT NULL AND EXISTS (SELECT 1 FROM identity_links l WHERE l.person_id = p.id) ORDER BY p.id").all()) {
@@ -36645,7 +36645,7 @@ function* sharedTraces(database, a, b, name, except) {
36645
36645
  }
36646
36646
  __name(sharedTraces, "sharedTraces");
36647
36647
 
36648
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-matcher.js
36648
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-matcher.js
36649
36649
  var spellingsOf = /* @__PURE__ */ __name((value) => [value, value.slice(1)], "spellingsOf");
36650
36650
  var PERSON_BY = {
36651
36651
  // UNION, not OR: each branch reads its own index.
@@ -36668,7 +36668,7 @@ var personsByIdentifiers = /* @__PURE__ */ __name((database, ids3) => {
36668
36668
  return [...found2].sort((a, b) => a - b);
36669
36669
  }, "personsByIdentifiers");
36670
36670
 
36671
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-match-scan.js
36671
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-match-scan.js
36672
36672
  var BY = "rule";
36673
36673
  var RULE = { bot: "rule", kind: "rule" };
36674
36674
  var MOST_SHARING = 6;
@@ -37117,7 +37117,7 @@ var linkPhones = /* @__PURE__ */ __name((context, identities2) => {
37117
37117
  return pass.result;
37118
37118
  }, "linkPhones");
37119
37119
 
37120
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
37120
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
37121
37121
  var CURSOR_KEY = "meetings";
37122
37122
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
37123
37123
  id: Number(row2.id),
@@ -37724,7 +37724,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
37724
37724
  };
37725
37725
  }, "meetingStoreOver");
37726
37726
 
37727
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
37727
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
37728
37728
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
37729
37729
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
37730
37730
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -37750,7 +37750,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder2) => {
37750
37750
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder2))).run();
37751
37751
  }, "release");
37752
37752
 
37753
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
37753
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
37754
37754
  var THREAD_COLUMNS = {
37755
37755
  subject: {
37756
37756
  where: /* @__PURE__ */ __name(({ value }) => ({
@@ -37767,7 +37767,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
37767
37767
  AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
37768
37768
  }, "threadRows");
37769
37769
 
37770
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
37770
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
37771
37771
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
37772
37772
  id: `email:${place.emailId}`,
37773
37773
  chatId: place.threadExternalId,
@@ -38309,7 +38309,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
38309
38309
  }
38310
38310
  }), "mailStoreOver");
38311
38311
 
38312
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/search/dictionary.js
38312
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/dictionary.js
38313
38313
  import { readFileSync as readFileSync2 } from "node:fs";
38314
38314
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
38315
38315
  var folded5 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
@@ -38399,7 +38399,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
38399
38399
  }, "knownWord");
38400
38400
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
38401
38401
 
38402
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
38402
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
38403
38403
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
38404
38404
  var readsTranscripts = /* @__PURE__ */ __name((node) => (node.operator === "term" || node.operator === "phrase") && /[\p{L}\p{N}]/u.test(normalize(node.value)) && (node.field === "transcript" || node.implicit === true && (node.field === "text" || node.field === "exact")), "readsTranscripts");
38405
38405
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -38485,7 +38485,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
38485
38485
  return found2;
38486
38486
  }, "spokenTranscripts");
38487
38487
 
38488
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
38488
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
38489
38489
  var startOf = /* @__PURE__ */ __name((node) => node.operator === "wildcard" && node.implicit ? /^([\p{L}\p{N}]+)\*$/u.exec(normalize(node.value))?.[1] : void 0, "startOf");
38490
38490
  var matchOf = /* @__PURE__ */ __name((node) => {
38491
38491
  const start = startOf(node);
@@ -38543,7 +38543,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
38543
38543
  });
38544
38544
  }, "placeHits");
38545
38545
 
38546
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
38546
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
38547
38547
  var GROUPS = {
38548
38548
  chat: {
38549
38549
  key: "m.chat_id",
@@ -38565,7 +38565,7 @@ var GROUPS = {
38565
38565
  }
38566
38566
  };
38567
38567
 
38568
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/word-rarity.js
38568
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/word-rarity.js
38569
38569
  var withRarity = /* @__PURE__ */ __name((database, words4, leaves, ranked) => {
38570
38570
  const matches2 = [...new Set(leaves.flatMap(({ fragment }) => fragment.fts ?? []))];
38571
38571
  if (!matches2.length)
@@ -38582,7 +38582,7 @@ var withRarity = /* @__PURE__ */ __name((database, words4, leaves, ranked) => {
38582
38582
  }, "withRarity");
38583
38583
  var RARITY_ORDER = "coalesce(rarity.score, 0) - 0.2 * coalesce(f.rank, 0) DESC, ";
38584
38584
 
38585
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
38585
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
38586
38586
  var matchQuery = /* @__PURE__ */ __name((context, execution) => runQuery(context, execution), "matchQuery");
38587
38587
  var countQuery = /* @__PURE__ */ __name((context, execution, by) => runQuery(context, execution, by), "countQuery");
38588
38588
  var queryMessagePks = /* @__PURE__ */ __name((context, execution) => runQuery(context, execution, "pks"), "queryMessagePks");
@@ -39064,7 +39064,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
39064
39064
  };
39065
39065
  }, "runCompiled");
39066
39066
 
39067
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
39067
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
39068
39068
  function invalidMetadata() {
39069
39069
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
39070
39070
  }
@@ -39166,7 +39166,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
39166
39166
  };
39167
39167
  }), "counterTargets");
39168
39168
 
39169
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
39169
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
39170
39170
  var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
39171
39171
  var fileAttachments = /* @__PURE__ */ __name(({ database }, accountKey, { chatKey, messageId, beforePk, limit }) => database.prepare(`SELECT att.id AS pk, c.external_id AS chat_id, m.external_id AS message_id, att.position, att.kind, att.name, att.mime,
39172
39172
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -39285,7 +39285,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
39285
39285
  }));
39286
39286
  }, "attachmentViews");
39287
39287
 
39288
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
39288
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
39289
39289
  var transcript2 = /* @__PURE__ */ __name(({ orm }, chatKey, messageId) => orm.select({ text: messageTranscripts.text, source: messageTranscripts.source }).from(messageTranscripts).where(and(eq(messageTranscripts.chatId, chatKey), eq(messageTranscripts.messageExternalId, messageId))).get(), "transcript");
39290
39290
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text9, source2) => {
39291
39291
  const { orm, database, now: now2 } = context;
@@ -39323,7 +39323,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
39323
39323
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
39324
39324
  }, "intoVoiceAttachment");
39325
39325
 
39326
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
39326
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
39327
39327
  var FIELDS = [
39328
39328
  "threadExternalId",
39329
39329
  "senderIdentityId",
@@ -39647,7 +39647,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
39647
39647
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
39648
39648
  }, "writeDerivedReactions");
39649
39649
 
39650
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/keys.js
39650
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/keys.js
39651
39651
  var keysOver = /* @__PURE__ */ __name((context) => {
39652
39652
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
39653
39653
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -39668,7 +39668,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
39668
39668
  };
39669
39669
  }, "keysOver");
39670
39670
 
39671
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
39671
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
39672
39672
  var unquoted3 = /* @__PURE__ */ __name((value) => {
39673
39673
  if (typeof value !== "string")
39674
39674
  return value;
@@ -39726,7 +39726,7 @@ var forgetProfile = /* @__PURE__ */ __name((database, app, profile, now2) => {
39726
39726
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
39727
39727
  }, "forgetProfile");
39728
39728
 
39729
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
39729
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
39730
39730
  var DAY4 = 864e5;
39731
39731
  var COUNTERPART_LINK = `EXISTS (SELECT 1 FROM links l WHERE l.from_type = 'event' AND l.from_id = e.id AND l.to_type = 'person' AND l.to_id = ? AND l.kind = ${linkKind("related-to")} AND l.role = '${COUNTERPART_ROLE}')`;
39732
39732
  var accountsOf = /* @__PURE__ */ __name((filter) => {
@@ -39842,7 +39842,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
39842
39842
  return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
39843
39843
  }, "listEvents");
39844
39844
 
39845
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
39845
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
39846
39846
  var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
39847
39847
  var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey, now: now2 }, refresh) => {
39848
39848
  const unseenBefore = unreferenced(database, "identities");
@@ -39899,7 +39899,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
39899
39899
  return { entries: entryIds.length, events: goneEvents.length };
39900
39900
  }, "forgetCalendarRows");
39901
39901
 
39902
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
39902
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
39903
39903
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
39904
39904
  id: Number(row2.id),
39905
39905
  accountId: Number(row2.account_id),
@@ -40502,7 +40502,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
40502
40502
  };
40503
40503
  }, "eventStoreOver");
40504
40504
 
40505
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/erase-plan.js
40505
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/erase-plan.js
40506
40506
  var AUTHORS = /* @__PURE__ */ new Set(["author", "confirmed_by", "decided_by", "proposed_by", "actor", "closed_by"]);
40507
40507
  var LINK_ROWS = /* @__PURE__ */ new Set(["links", "mentions", "task_assignments"]);
40508
40508
  var hasChildren = /* @__PURE__ */ __name((database, table) => database.prepare(`SELECT 1 FROM sqlite_master m JOIN pragma_foreign_key_list(m.name) f WHERE m.type = 'table' AND f."table" = ?
@@ -40567,7 +40567,7 @@ var ErasePlan = class {
40567
40567
  }
40568
40568
  };
40569
40569
 
40570
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/organization-erase.js
40570
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/organization-erase.js
40571
40571
  var OWN_ROWS = /* @__PURE__ */ new Set(["organization_identities"]);
40572
40572
  var organizationOf = /* @__PURE__ */ __name((database, ref3) => {
40573
40573
  const asked = /^(?:organization:)?([1-9]\d*)$/u.exec(ref3.trim())?.[1];
@@ -40625,7 +40625,7 @@ var eraseImportedOrganizations = /* @__PURE__ */ __name((context, organizations2
40625
40625
  }
40626
40626
  }, "eraseImportedOrganizations");
40627
40627
 
40628
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-erase.js
40628
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-erase.js
40629
40629
  var personOf4 = /* @__PURE__ */ __name((context, uid) => {
40630
40630
  const asked = /^(?:person:)?([1-9]\d*)$/u.exec(uid.trim())?.[1];
40631
40631
  const known2 = asked === void 0 ? void 0 : context.database.prepare("SELECT id FROM persons WHERE id = ?").get(Number(asked));
@@ -40705,7 +40705,7 @@ var eraseImportedPeople = /* @__PURE__ */ __name((context, people2) => {
40705
40705
  }
40706
40706
  }, "eraseImportedPeople");
40707
40707
 
40708
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/account-purge.js
40708
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/account-purge.js
40709
40709
  var purgeAccount = /* @__PURE__ */ __name((context, accountKey) => {
40710
40710
  const { orm, database, now: now2 } = context;
40711
40711
  const unseenBefore = unreferenced(database, "identities");
@@ -40833,7 +40833,7 @@ var purgeCrmCopies = /* @__PURE__ */ __name((database, accountKey) => {
40833
40833
  run("DELETE FROM pipelines WHERE account_id = ?", accountKey);
40834
40834
  }, "purgeCrmCopies");
40835
40835
 
40836
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
40836
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
40837
40837
  var ACCOUNT_REASON = "an account you connected, under another name: a mailbox or messenger you read may be someone else's";
40838
40838
  var ownerNames = /* @__PURE__ */ __name(({ database }, owner) => database.prepare("SELECT i.name FROM identity_links l JOIN identities i ON i.id = l.identity_id WHERE l.person_id = ?").all(owner).map(({ name }) => new Set(nameSkeletons(displayName(typeof name === "string" ? name : null)))).filter((words4) => words4.size > 0), "ownerNames");
40839
40839
  var ownersName = /* @__PURE__ */ __name((name, owner, alone) => {
@@ -40892,7 +40892,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
40892
40892
  return personOf2(context, ref3);
40893
40893
  }, "linkToOwner");
40894
40894
 
40895
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
40895
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
40896
40896
  var PROVIDERS_SETTING = "providers";
40897
40897
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
40898
40898
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -40940,7 +40940,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
40940
40940
  });
40941
40941
  }, "registerProvider");
40942
40942
 
40943
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
40943
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
40944
40944
  var DAY5 = 864e5;
40945
40945
  var RECENTLY_CLOSED_MS = 14 * DAY5;
40946
40946
  var TEXT_LIMIT = 20;
@@ -41138,7 +41138,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
41138
41138
  };
41139
41139
  }, "taskSimilarityOver");
41140
41140
 
41141
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
41141
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
41142
41142
  var SETTING3 = "taskCategories";
41143
41143
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
41144
41144
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -41157,7 +41157,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
41157
41157
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(SETTING3, JSON.stringify(categories), now2);
41158
41158
  }, "saveTaskCategories");
41159
41159
 
41160
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
41160
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
41161
41161
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
41162
41162
  var ALLOWED = "taskAgentClose";
41163
41163
  var MIN = "taskAgentCloseMin";
@@ -41213,7 +41213,7 @@ var SUGGESTION_COLUMNS = [
41213
41213
  ];
41214
41214
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
41215
41215
 
41216
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
41216
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
41217
41217
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
41218
41218
  var KEY = "taskFirstPassPerChat";
41219
41219
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -41233,7 +41233,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
41233
41233
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY, String(value), now2);
41234
41234
  }, "saveFirstPassPerChat");
41235
41235
 
41236
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/external-links.js
41236
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/external-links.js
41237
41237
  var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
41238
41238
  var EXTERNAL_ID_CHARS = 200;
41239
41239
  var SOURCE_URL_CHARS = 2e3;
@@ -41260,7 +41260,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
41260
41260
  return text9;
41261
41261
  }, "sourceUrlOf");
41262
41262
 
41263
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
41263
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
41264
41264
  var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
41265
41265
  var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
41266
41266
  name,
@@ -41512,7 +41512,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
41512
41512
  var TASK_PEOPLE = `WITH merged AS (SELECT json_extract(value, '$[0]') AS id, json_extract(value, '$[1]') AS now FROM json_each(?)), counts AS (SELECT coalesce(m.now, a.assignee_id) AS person, count(DISTINCT t.id) AS n FROM task_assignments a JOIN tasks t ON t.id = a.task_id AND t.deleted_at IS NULL LEFT JOIN merged m ON m.id = a.assignee_id WHERE a.assignee_type = 'person' GROUP BY 1) SELECT p.id, p.name, p.owner, coalesce(c.n, 0) AS n FROM persons p LEFT JOIN counts c ON c.person = p.id WHERE NOT ${mergedAwaySql("p")} ORDER BY p.owner DESC, n DESC, p.name IS NULL, p.name COLLATE NOCASE, p.id LIMIT ?`;
41513
41513
  var mergedAssignees = /* @__PURE__ */ __name((database) => JSON.stringify(database.prepare(`SELECT DISTINCT a.assignee_id AS id FROM task_assignments a JOIN persons p ON p.id = a.assignee_id WHERE a.assignee_type = 'person' AND ${mergedAwaySql("p")}`).all().map(({ id: id2 }) => [Number(id2), currentPerson(database, Number(id2))])), "mergedAssignees");
41514
41514
 
41515
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
41515
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
41516
41516
  var authorNamed = /* @__PURE__ */ __name((database, row2) => {
41517
41517
  if (row2.author_type == null)
41518
41518
  return null;
@@ -41540,7 +41540,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
41540
41540
  return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
41541
41541
  }, "addComment");
41542
41542
 
41543
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
41543
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
41544
41544
  var TASK_RELATION_KINDS = [
41545
41545
  "blocked-by",
41546
41546
  "follow-up-of",
@@ -41670,7 +41670,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record3) => {
41670
41670
  };
41671
41671
  }, "taskRelationsStoreOver");
41672
41672
 
41673
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
41673
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
41674
41674
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
41675
41675
  var TASK_EVENT_KINDS = [
41676
41676
  "created",
@@ -42229,7 +42229,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
42229
42229
  };
42230
42230
  }, "workTasksOver");
42231
42231
 
42232
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
42232
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
42233
42233
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
42234
42234
  const { database, now: now2 } = context;
42235
42235
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -42278,7 +42278,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
42278
42278
  };
42279
42279
  }, "taskCloseOver");
42280
42280
 
42281
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
42281
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
42282
42282
  var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
42283
42283
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
42284
42284
  const { database, now: now2 } = context;
@@ -42497,7 +42497,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
42497
42497
  };
42498
42498
  }, "taskPairsOver");
42499
42499
 
42500
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
42500
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
42501
42501
  var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
42502
42502
  var TASK_STATS_SQL = {
42503
42503
  rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? PROJECT_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
@@ -42536,7 +42536,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
42536
42536
  }, "statNames")
42537
42537
  }), "taskStatsOver");
42538
42538
 
42539
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
42539
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
42540
42540
  var COLUMNS3 = "t.id AS row_id, t.package_id, t.source_locator, t.source_kind, t.source_group, t.type, t.status, t.close_reason, t.source, t.created_at, t.due_at, t.closed_at, t.closed_by_type, t.closed_by_id, t.key, t.category, t.claimed_by, t.claimed_until, p.name AS account";
42541
42541
  var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
42542
42542
  const key2 = inboxKey(account);
@@ -42752,7 +42752,7 @@ var oneOf4 = /* @__PURE__ */ __name((values, value, column2) => {
42752
42752
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
42753
42753
  }, "oneOf");
42754
42754
 
42755
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/accounts.js
42755
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/accounts.js
42756
42756
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
42757
42757
  const { database } = context;
42758
42758
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -42822,7 +42822,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
42822
42822
  };
42823
42823
  }, "accountsStoreOver");
42824
42824
 
42825
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
42825
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
42826
42826
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
42827
42827
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
42828
42828
  const message3 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -42846,7 +42846,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
42846
42846
  })), "keepDownloads");
42847
42847
  var keepProviderRefs = /* @__PURE__ */ __name((context, chatKey, messageId, files2) => updatePlaced(context, chatKey, messageId, files2.filter((file) => Object.keys(file.providerRef).length > 0), (file) => refColumn(file.providerRef)), "keepProviderRefs");
42848
42848
 
42849
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/attachments.js
42849
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/attachments.js
42850
42850
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
42851
42851
  const { database } = context;
42852
42852
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -42903,7 +42903,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
42903
42903
  }, "keepAttachmentText")
42904
42904
  }), "attachmentsStoreOver");
42905
42905
 
42906
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
42906
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
42907
42907
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
42908
42908
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
42909
42909
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -43088,7 +43088,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
43088
43088
  return done;
43089
43089
  }, "rekeyChats");
43090
43090
 
43091
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
43091
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
43092
43092
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
43093
43093
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
43094
43094
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -43146,7 +43146,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
43146
43146
  return { ...coverage, oldestMessageAt: toIso(oldest) };
43147
43147
  }, "chatCoverage");
43148
43148
 
43149
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/chats.js
43149
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/chats.js
43150
43150
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
43151
43151
  const { database } = context;
43152
43152
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -43295,7 +43295,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
43295
43295
  };
43296
43296
  }, "chatsStoreOver");
43297
43297
 
43298
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
43298
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
43299
43299
  import { createHash as createHash7 } from "node:crypto";
43300
43300
  var BATCH_CONTEXT = 50;
43301
43301
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -43435,7 +43435,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
43435
43435
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
43436
43436
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
43437
43437
 
43438
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
43438
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
43439
43439
  import { setTimeout } from "node:timers/promises";
43440
43440
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
43441
43441
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -43790,7 +43790,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
43790
43790
  AND NOT EXISTS (SELECT 1 FROM messages d
43791
43791
  WHERE d.id IN (l.message_id, l.parent_id) AND d.deleted_at > l.created_at)`).map(({ id: id2, parent: parent2 }) => [id2, parent2])), "agentAnswers");
43792
43792
 
43793
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/conversations.js
43793
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/conversations.js
43794
43794
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
43795
43795
  const { database } = context;
43796
43796
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -43906,7 +43906,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
43906
43906
  };
43907
43907
  }, "conversationsStoreOver");
43908
43908
 
43909
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/counters.js
43909
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/counters.js
43910
43910
  var LIVE_MESSAGE = "SELECT m.id AS pk FROM messages m JOIN chats c ON c.id=m.chat_id JOIN accounts ac ON ac.id=m.account_id WHERE ac.provider=? AND ac.external_id=? AND c.external_id=? AND m.external_id=? AND m.deleted_at IS NULL";
43911
43911
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
43912
43912
  const { database } = context;
@@ -43931,7 +43931,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
43931
43931
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
43932
43932
  }), "countersStoreOver");
43933
43933
 
43934
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
43934
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
43935
43935
  var MENTION_STATUSES = ["found", "linked", "proposed", "dismissed"];
43936
43936
  var MENTION_QUERY = defineQuery({
43937
43937
  entity: "mention",
@@ -44150,7 +44150,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
44150
44150
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
44151
44151
  }, "listPlaces");
44152
44152
 
44153
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/mentions.js
44153
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/mentions.js
44154
44154
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
44155
44155
  const { database } = context;
44156
44156
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -44185,7 +44185,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
44185
44185
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
44186
44186
  }), "mentionsStoreOver");
44187
44187
 
44188
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
44188
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
44189
44189
  var FAR = Number.MAX_SAFE_INTEGER;
44190
44190
  var MUTED_NOW = "(coalesce(c.muted,0)=1 AND (c.muted_until IS NULL OR c.muted_until>?))";
44191
44191
  var chatsIn = /* @__PURE__ */ __name((scope3, kinds2, now2) => {
@@ -44284,7 +44284,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
44284
44284
  });
44285
44285
  }, "waitingChats");
44286
44286
 
44287
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-activity-counts.js
44287
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-activity-counts.js
44288
44288
  var SQL = `SELECT coalesce(nullif(trim(c.title), ''), (SELECT sender_name FROM messages WHERE chat_id = c.id AND outgoing = 0 AND deleted_at IS NULL ORDER BY sent_at DESC LIMIT 1)) AS title, ${MUTED_NOW} AS muted, w.messages, w.sent, (SELECT max(sent_at) FROM messages WHERE chat_id = c.id AND deleted_at IS NULL AND sent_at < ?) AS last FROM chats c, (SELECT count(*) AS messages, coalesce(sum(outgoing = 1), 0) AS sent FROM messages WHERE chat_id = ? AND deleted_at IS NULL AND sent_at >= ? AND sent_at < ?) w WHERE c.id = ?`;
44289
44289
  var chatActivityCounts = /* @__PURE__ */ __name(({ database }, chatKeys, { since, until, now: now2 }) => {
44290
44290
  const statement = database.prepare(SQL);
@@ -44304,7 +44304,7 @@ var chatActivityCounts = /* @__PURE__ */ __name(({ database }, chatKeys, { since
44304
44304
  return found2;
44305
44305
  }, "chatActivityCounts");
44306
44306
 
44307
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
44307
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
44308
44308
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
44309
44309
  const read2 = database.prepare("SELECT m.id, m.external_id, m.text, m.sent_at, m.sender_name, coalesce(m.sender_chat_external_id, i.external_id) AS sender_id FROM messages m LEFT JOIN identities i ON i.id = m.sender_identity_id WHERE m.chat_id = ? AND m.deleted_at IS NULL AND (m.text LIKE '%google.com%' OR m.text LIKE '%forms.gle%') " + (messageId === void 0 ? "" : "AND m.external_id = ? ") + "ORDER BY m.sent_at DESC, m.id DESC");
44310
44310
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -44319,7 +44319,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
44319
44319
  }));
44320
44320
  }, "documentLinkMessages");
44321
44321
 
44322
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
44322
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
44323
44323
  var stemmerFor = stemmerCache();
44324
44324
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
44325
44325
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -44363,7 +44363,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
44363
44363
  });
44364
44364
  }, "laterSharingRare");
44365
44365
 
44366
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/messages.js
44366
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/messages.js
44367
44367
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
44368
44368
  const { database } = context;
44369
44369
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -44504,7 +44504,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
44504
44504
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
44505
44505
  }), "messagesStoreOver");
44506
44506
 
44507
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-links.js
44507
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-links.js
44508
44508
  var AGENT_METHOD = "agent";
44509
44509
  var personsOf = /* @__PURE__ */ __name(({ database }) => new Map(database.prepare("SELECT identity_id, person_id FROM identity_links").all().map((row2) => [Number(row2.identity_id), Number(row2.person_id)])), "personsOf");
44510
44510
  var weaknessOf = /* @__PURE__ */ __name((context, kind3, value, holders, sides, others) => {
@@ -44648,7 +44648,7 @@ var agentMerges = /* @__PURE__ */ __name((context, { limit, offset }) => {
44648
44648
  return { items: found2.slice(offset, offset + limit), hasMore: found2.length > offset + limit };
44649
44649
  }, "agentMerges");
44650
44650
 
44651
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-rekey.js
44651
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/identity-rekey.js
44652
44652
  var quoted2 = /* @__PURE__ */ __name((name) => `"${name.replace(/"/g, '""')}"`, "quoted");
44653
44653
  var columnsOf3 = /* @__PURE__ */ __name((database, table) => database.prepare("SELECT name, pk, type FROM pragma_table_info(?)").all(table), "columnsOf");
44654
44654
  var foreignKeysTo = /* @__PURE__ */ __name((database, table) => database.prepare(`SELECT m.name AS tbl, f."from" AS col FROM sqlite_master m JOIN pragma_foreign_key_list(m.name) f
@@ -44792,7 +44792,7 @@ var rekeyIdentities = /* @__PURE__ */ __name((context, provider, pairs, { lockMs
44792
44792
  return done;
44793
44793
  }, "rekeyIdentities");
44794
44794
 
44795
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/person-kinds.js
44795
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/person-kinds.js
44796
44796
  var PERSON_KINDS = ["person", "organization", "automated", "stranger", "unsorted", "test"];
44797
44797
  var AUTOMATED_WORDS = /* @__PURE__ */ new Set([
44798
44798
  "noreply",
@@ -44855,7 +44855,7 @@ var isCompanyName = /* @__PURE__ */ __name((name) => {
44855
44855
  return wordsOf3(name.replaceAll(".", "")).some((word2) => LEGAL_FORMS.has(word2) || COMPANY_WORDS.has(word2));
44856
44856
  }, "isCompanyName");
44857
44857
 
44858
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-ties.js
44858
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-ties.js
44859
44859
  var SMALL_GROUP_MEMBERS = 10;
44860
44860
  var PERSON_TIES = ["chat", "small-group", "mail", "meeting", "crm", "phone-book"];
44861
44861
  var ALWAYS_SHOWN = ["owner", "added", "task"];
@@ -44910,7 +44910,7 @@ var shownReasons = /* @__PURE__ */ __name((database, people2) => {
44910
44910
  return new Map([...found2].map(([person2, reasons]) => [person2, ORDER.filter((one2) => reasons.has(one2))]));
44911
44911
  }, "shownReasons");
44912
44912
 
44913
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/people-list.js
44913
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/people-list.js
44914
44914
  var PEOPLE_SORTS = ["interactions", "recent", "name", "tasks"];
44915
44915
  var MIN_QUERY = 3;
44916
44916
  var matching2 = /* @__PURE__ */ __name((query) => {
@@ -45255,7 +45255,7 @@ var similarPeople = /* @__PURE__ */ __name((database, typed, limit) => {
45255
45255
  return withLastContact(database, rows).map((person2, at2) => ({ ...person2, sameName: same[at2] === true }));
45256
45256
  }, "similarPeople");
45257
45257
 
45258
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-doubts.js
45258
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-doubts.js
45259
45259
  var DOUBT_REASONS = ["owner-other-name", "test-data", "shared-address", "mixed-names"];
45260
45260
  var COLUMNS5 = "l.person_id AS person, p.owner, p.name AS person_name, i.id AS pk, i.provider, i.external_id, i.name, i.phone, i.email, i.username, l.method, l.author, l.created_at, EXISTS (SELECT 1 FROM accounts a WHERE a.provider = i.provider AND a.external_id = i.external_id) AS account FROM identity_links l JOIN identities i ON i.id = l.identity_id JOIN persons p ON p.id = l.person_id";
45261
45261
  var text5 = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? value : null, "text");
@@ -45511,7 +45511,7 @@ var markTestData = /* @__PURE__ */ __name((context, uid, by) => {
45511
45511
  return { person: `person:${person2}`, identities: identities2 };
45512
45512
  }, "markTestData");
45513
45513
 
45514
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
45514
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
45515
45515
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
45516
45516
  var IN_SCOPES = "IN (SELECT value FROM json_each(?))";
45517
45517
  var projectScope = /* @__PURE__ */ __name((id2) => `(SELECT p.scope FROM main.projects p WHERE p.id=${id2})`, "projectScope");
@@ -45580,7 +45580,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database, now: now2 }, uid, {
45580
45580
  });
45581
45581
  }, "personPreparation");
45582
45582
 
45583
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
45583
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
45584
45584
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
45585
45585
  const id2 = Number(uid);
45586
45586
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -45588,7 +45588,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
45588
45588
  return Boolean(database.prepare("SELECT 1 FROM persons p JOIN identity_links l ON l.person_id=p.id JOIN account_identities a ON a.identity_id=l.identity_id WHERE p.id=? AND a.account_id IN (SELECT value FROM json_each(?)) LIMIT 1").get(currentPerson(database, id2), JSON.stringify(accountIds)));
45589
45589
  }, "personSeenInAccounts");
45590
45590
 
45591
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
45591
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
45592
45592
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
45593
45593
  const row2 = database.prepare("SELECT a.id AS account_id, i.id AS identity_id FROM accounts a JOIN account_identities ai ON ai.account_id=a.id JOIN identities i ON i.id=ai.identity_id WHERE a.provider=? AND a.external_id=? AND i.provider=? AND i.external_id=?").get(key2.provider, key2.account, key2.provider, personId);
45594
45594
  if (!row2)
@@ -45655,7 +45655,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
45655
45655
  return { id: id2, personId, removed: true };
45656
45656
  }, "removeNote");
45657
45657
 
45658
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/people.js
45658
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/people.js
45659
45659
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
45660
45660
  const { database } = context;
45661
45661
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -45799,13 +45799,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
45799
45799
  };
45800
45800
  }, "peopleStoreOver");
45801
45801
 
45802
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
45802
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
45803
45803
  import { createHash as createHash9 } from "node:crypto";
45804
45804
 
45805
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
45805
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
45806
45806
  import { createHash as createHash8 } from "node:crypto";
45807
45807
 
45808
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
45808
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
45809
45809
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
45810
45810
  var AUTHOR_MEASURES = [
45811
45811
  "messages",
@@ -45945,7 +45945,7 @@ var withoutUrls = /* @__PURE__ */ __name((text9) => text9.replace(/\S+/gu, (toke
45945
45945
  var rankingWords = /* @__PURE__ */ __name((text9) => withoutUrls(text9).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
45946
45946
  var rankingQuestion = /* @__PURE__ */ __name((text9) => withoutUrls(text9).includes("?"), "rankingQuestion");
45947
45947
 
45948
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
45948
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
45949
45949
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
45950
45950
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
45951
45951
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -46167,7 +46167,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
46167
46167
  };
46168
46168
  }, "rankReplyGraph");
46169
46169
 
46170
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
46170
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
46171
46171
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
46172
46172
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
46173
46173
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -46341,7 +46341,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
46341
46341
  return { items, evidence, summary, graph: graph.quality };
46342
46342
  }, "calculateAdminStatistics");
46343
46343
 
46344
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
46344
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
46345
46345
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
46346
46346
  const dates = [];
46347
46347
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -46363,7 +46363,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
46363
46363
  return dates[0].node.resolution.date;
46364
46364
  }, "rankingContextRange");
46365
46365
 
46366
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
46366
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
46367
46367
  var reactionCounts = /* @__PURE__ */ __name((stored4) => {
46368
46368
  let counts;
46369
46369
  try {
@@ -46658,7 +46658,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
46658
46658
  });
46659
46659
  }, "rankQuery");
46660
46660
 
46661
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
46661
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
46662
46662
  function fail2(message3, reason = "query.too-large") {
46663
46663
  throw new CliError("validation_error", message3, { reason, complete: false });
46664
46664
  }
@@ -46835,7 +46835,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
46835
46835
  return result;
46836
46836
  }), "adminStatisticsQuery");
46837
46837
 
46838
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
46838
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
46839
46839
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
46840
46840
  if (!execution.accounts.length)
46841
46841
  return { conversations: [], chats: [] };
@@ -46853,7 +46853,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
46853
46853
  return { conversations: conversations2, chats: chats2 };
46854
46854
  }, "conversationEligibility");
46855
46855
 
46856
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
46856
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
46857
46857
  import { createHash as createHash10 } from "node:crypto";
46858
46858
  var EVIDENCE_BYTES = 64 * 1024;
46859
46859
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -47003,7 +47003,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
47003
47003
  return result;
47004
47004
  }, "rankingEvidence");
47005
47005
 
47006
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/queries.js
47006
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/queries.js
47007
47007
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
47008
47008
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
47009
47009
  if (execution.corpus === "mail")
@@ -47024,7 +47024,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
47024
47024
  };
47025
47025
  }, "queriesStoreOver");
47026
47026
 
47027
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
47027
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
47028
47028
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
47029
47029
  const { database, now: now2 } = context;
47030
47030
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -47063,10 +47063,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
47063
47063
  }));
47064
47064
  }, "chatEventsOf");
47065
47065
 
47066
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
47066
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
47067
47067
  import { createHash as createHash11 } from "node:crypto";
47068
47068
 
47069
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/calendar.js
47069
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/calendar.js
47070
47070
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
47071
47071
  const format = new Intl.DateTimeFormat("en-CA", {
47072
47072
  timeZone: zone,
@@ -47086,7 +47086,7 @@ var weekKey = /* @__PURE__ */ __name((day3) => {
47086
47086
  return date3.toISOString().slice(0, 10);
47087
47087
  }, "weekKey");
47088
47088
 
47089
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/retention.js
47089
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/retention.js
47090
47090
  var RETENTION_TOLERANCE = 864e5;
47091
47091
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
47092
47092
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -47140,7 +47140,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
47140
47140
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
47141
47141
  }, "retentionCohorts");
47142
47142
 
47143
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
47143
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
47144
47144
  var iso11 = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString(), "iso");
47145
47145
  var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
47146
47146
  validateRetentionOptions(options);
@@ -47271,7 +47271,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
47271
47271
  };
47272
47272
  }, "retentionQuery");
47273
47273
 
47274
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
47274
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
47275
47275
  var iso12 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
47276
47276
  var marksOf = /* @__PURE__ */ __name(({ isBot: isBot2, flagged, deleted, hasPhoto }) => ({
47277
47277
  ...isBot2 === void 0 ? {} : { bot: isBot2 },
@@ -47400,7 +47400,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
47400
47400
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
47401
47401
  })), "trackedChats");
47402
47402
 
47403
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/roster.js
47403
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/roster.js
47404
47404
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
47405
47405
  const { database } = context;
47406
47406
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -47456,7 +47456,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
47456
47456
  };
47457
47457
  }, "rosterStoreOver");
47458
47458
 
47459
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
47459
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
47460
47460
  var pendingNormalization = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL").get()?.n), "pendingNormalization");
47461
47461
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
47462
47462
  const next = database.prepare(`SELECT id AS pk, text FROM messages WHERE normalized_text IS NULL AND deleted_at IS NULL AND id > ? ORDER BY id LIMIT ?`);
@@ -47480,7 +47480,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
47480
47480
  }
47481
47481
  }, "backfillNormalized");
47482
47482
 
47483
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
47483
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
47484
47484
  var INDEX2 = "message_words";
47485
47485
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
47486
47486
  const row2 = indexRow(database, INDEX2);
@@ -47607,7 +47607,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
47607
47607
  });
47608
47608
  }, "resetSearchIndex");
47609
47609
 
47610
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
47610
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
47611
47611
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
47612
47612
  const filled = { stemmed: 0, drained: 0 };
47613
47613
  const before2 = stemsState(database);
@@ -47702,7 +47702,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
47702
47702
  return resetStems(database, { now: now2 });
47703
47703
  }, "followDefaultStemmers");
47704
47704
 
47705
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
47705
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
47706
47706
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
47707
47707
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms) => {
47708
47708
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -47724,7 +47724,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
47724
47724
  });
47725
47725
  }, "termCandidates");
47726
47726
 
47727
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/search-index.js
47727
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/search-index.js
47728
47728
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
47729
47729
  const { database } = context;
47730
47730
  const stemmerFor2 = stemmerCache();
@@ -47749,7 +47749,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
47749
47749
  };
47750
47750
  }, "searchIndexStoreOver");
47751
47751
 
47752
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
47752
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
47753
47753
  var HISTORY_KEPT = 1e3;
47754
47754
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
47755
47755
  var COLUMNS6 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -47819,7 +47819,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
47819
47819
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
47820
47820
  }, "clearHistory");
47821
47821
 
47822
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/searches.js
47822
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/searches.js
47823
47823
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
47824
47824
  const { database } = context;
47825
47825
  return {
@@ -47843,7 +47843,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
47843
47843
  };
47844
47844
  }, "searchesStoreOver");
47845
47845
 
47846
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/added-sources.js
47846
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/added-sources.js
47847
47847
  import { createHash as createHash12 } from "node:crypto";
47848
47848
  var ADDED_KINDS = ["text", "file", "page"];
47849
47849
  var TEXT_COLUMNS = "kind = ?, title = ?, file_name = ?, extension = ?, url = ?, mime = ?, size = ?, content_hash = ?, body = ?, extraction = ?, metadata = ?, language = ?";
@@ -48085,7 +48085,7 @@ var addedSourcesOver = /* @__PURE__ */ __name((context) => {
48085
48085
  };
48086
48086
  }, "addedSourcesOver");
48087
48087
 
48088
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
48088
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
48089
48089
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
48090
48090
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
48091
48091
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -48133,7 +48133,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
48133
48133
  };
48134
48134
  }, "agentActionsStoreOver");
48135
48135
 
48136
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/base-suggest.js
48136
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/base-suggest.js
48137
48137
  var baseSettingKey = /* @__PURE__ */ __name((kind3) => `stages.base.${kind3}`, "baseSettingKey");
48138
48138
  var storedPipeline = /* @__PURE__ */ __name((value) => {
48139
48139
  if (typeof value !== "string")
@@ -48179,11 +48179,11 @@ var suggestBaseStages = /* @__PURE__ */ __name((database, kind3, pipelines2, { o
48179
48179
  }
48180
48180
  }, "suggestBaseStages");
48181
48181
 
48182
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/copy-viewer.js
48182
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/copy-viewer.js
48183
48183
  var viewerSql = /* @__PURE__ */ __name((alias2, viewer) => viewer === void 0 ? { sql: "1", params: [] } : viewer.assignee === null ? { sql: "0", params: [] } : { sql: `json_extract(${alias2}.metadata, '$.assignee') = ?`, params: [viewer.assignee] }, "viewerSql");
48184
48184
  var seenBy = /* @__PURE__ */ __name((viewer, row2) => viewer === void 0 || row2.provider !== viewer.account.provider || row2.account !== viewer.account.account || viewer.assignee !== null && row2.assignee === viewer.assignee, "seenBy");
48185
48185
 
48186
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/records.js
48186
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/records.js
48187
48187
  import { createHash as createHash13 } from "node:crypto";
48188
48188
  var RECORDS_SCHEMA_VERSION = 1;
48189
48189
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -48514,7 +48514,7 @@ var fieldReferences = /* @__PURE__ */ __name((record3, options = {}) => {
48514
48514
  return found2;
48515
48515
  }, "fieldReferences");
48516
48516
 
48517
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-rows.js
48517
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-rows.js
48518
48518
  var TABLES2 = { deal: "deals", lead: "leads" };
48519
48519
  var MONEY_REFUSALS = ["money.currency", "money.amount"];
48520
48520
  var amountFault = /* @__PURE__ */ __name((item, code) => {
@@ -48686,7 +48686,7 @@ var crmRowsOver = /* @__PURE__ */ __name((context) => {
48686
48686
  return { savePipeline, saveItemRow };
48687
48687
  }, "crmRowsOver");
48688
48688
 
48689
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-activities.js
48689
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-activities.js
48690
48690
  var ACTIVITY_RECORD = "crm.activity";
48691
48691
  var forgetActivitiesOn = /* @__PURE__ */ __name((database, accountId, kind3, externalIds, at2) => {
48692
48692
  const removed = "rr.target_type = ? AND rr.target_external_id IN (SELECT value FROM json_each(?))";
@@ -48874,7 +48874,7 @@ var seenSql = /* @__PURE__ */ __name((viewer) => {
48874
48874
  };
48875
48875
  }, "seenSql");
48876
48876
 
48877
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-stage-entries.js
48877
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-stage-entries.js
48878
48878
  var STAGE_ENTRY_RECORD = "crm.stage-entry";
48879
48879
  var STAGE_ENTRY_DAYS = 90;
48880
48880
  var STAGE_TASK_DAYS = 7;
@@ -48944,7 +48944,7 @@ var crmStageEntriesOver = /* @__PURE__ */ __name((context) => {
48944
48944
  return { save: save2, pending, handled, expire };
48945
48945
  }, "crmStageEntriesOver");
48946
48946
 
48947
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/stage-amounts.js
48947
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/stage-amounts.js
48948
48948
  var TABLES3 = { deal: "deals", lead: "leads" };
48949
48949
  var stageAmountsOf = /* @__PURE__ */ __name(({ database }, kind3, stageIds, { since, until }, viewer) => {
48950
48950
  const seen = viewerSql("d", viewer);
@@ -48962,7 +48962,7 @@ var stageAmountsOf = /* @__PURE__ */ __name(({ database }, kind3, stageIds, { si
48962
48962
  });
48963
48963
  }, "stageAmountsOf");
48964
48964
 
48965
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/pipeline-period.js
48965
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/pipeline-period.js
48966
48966
  var TABLES4 = { deal: "deals", lead: "leads" };
48967
48967
  var DAY7 = 864e5;
48968
48968
  var LOST_REASONS = 10;
@@ -49119,7 +49119,7 @@ var pipelinePeriod = /* @__PURE__ */ __name((context, pipeline, window, zone, vi
49119
49119
  };
49120
49120
  }, "pipelinePeriod");
49121
49121
 
49122
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
49122
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/deals.js
49123
49123
  var TABLES5 = { deal: "deals", lead: "leads" };
49124
49124
  var itemsSql = /* @__PURE__ */ __name((kind3) => `SELECT d.*, s.name AS stage_name, s.pipeline_id, p.name AS pipeline_name, b.name AS author_name, b.kind AS author_kind, a.provider AS account_provider, a.external_id AS account_external_id, bs.id AS base_stage_ref_id, bs.name AS base_stage_name FROM ${TABLES5[kind3]} d JOIN pipeline_stages s ON s.id = d.stage_id JOIN pipelines p ON p.id = s.pipeline_id LEFT JOIN bots b ON d.author_type = 'bot' AND b.id = d.author_id LEFT JOIN accounts a ON a.id = d.account_id LEFT JOIN pipeline_stages bs ON s.base_confirmed = 1 AND bs.id = s.base_stage_id`, "itemsSql");
49125
49125
  var MAX_STAGES = 30;
@@ -49592,7 +49592,7 @@ var dealsStoreOver = /* @__PURE__ */ __name((context) => {
49592
49592
  };
49593
49593
  }, "dealsStoreOver");
49594
49594
 
49595
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/owner-languages.js
49595
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/owner-languages.js
49596
49596
  var KEY2 = "ownerLanguages";
49597
49597
  var ISO_639_1 = new Set("aa ab ae af ak am an ar as av ay az ba be bg bi bm bn bo br bs ca ce ch co cr cs cu cv cy da de dv dz ee el en eo es et eu fa ff fi fj fo fr fy ga gd gl gn gu gv ha he hi ho hr ht hu hy hz ia id ie ig ii ik io is it iu ja jv ka kg ki kj kk kl km kn ko kr ks ku kv kw ky la lb lg li ln lo lt lu lv mg mh mi mk ml mn mr ms mt my na nb nd ne ng nl nn no nr nv ny oc oj om or os pa pi pl ps pt qu rm rn ro ru rw sa sc sd se sg si sk sl sm sn so sq sr ss st su sv sw ta te tg th ti tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa wo xh yi yo za zh zu".split(" "));
49598
49598
  var DEFAULT_OWNER_LANGUAGES = ["ru"];
@@ -49622,7 +49622,7 @@ var saveOwnerLanguages = /* @__PURE__ */ __name((database, languages, now2) => {
49622
49622
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(KEY2, JSON.stringify(languages), now2);
49623
49623
  }, "saveOwnerLanguages");
49624
49624
 
49625
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/base-stages.js
49625
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/base-stages.js
49626
49626
  var OUTCOMES = {
49627
49627
  lead: ["open", "open", "open", "won", "lost"],
49628
49628
  deal: ["open", "open", "open", "open", "won", "lost"]
@@ -49955,7 +49955,7 @@ var baseStagesStoreOver = /* @__PURE__ */ __name((context) => {
49955
49955
  };
49956
49956
  }, "baseStagesStoreOver");
49957
49957
 
49958
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
49958
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
49959
49959
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
49960
49960
  }) => {
49961
49961
  const { database, now: now2 } = context;
@@ -50014,7 +50014,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
50014
50014
  };
50015
50015
  }, "botUpdateStoreOver");
50016
50016
 
50017
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projection.js
50017
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projection.js
50018
50018
  var IMPORTER = { bot: "import" };
50019
50019
  var importersProposal = /* @__PURE__ */ __name((entity) => entity.review === "proposed" && entity.author.type === "bot" && entity.author.name === IMPORTER.bot, "importersProposal");
50020
50020
  var codeOf = /* @__PURE__ */ __name((error) => {
@@ -50059,7 +50059,7 @@ var moneyLinesOf = /* @__PURE__ */ __name((projection, list2) => (Array.isArray(
50059
50059
  };
50060
50060
  }), "moneyLinesOf");
50061
50061
 
50062
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
50062
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/relation-role-labels.js
50063
50063
  var label = /* @__PURE__ */ __name((en, ru, es) => ({ en, ru, es }), "label");
50064
50064
  var ROLE_LABELS = {
50065
50065
  organization: {
@@ -50100,7 +50100,7 @@ var ROLE_LABELS = {
50100
50100
  }
50101
50101
  };
50102
50102
 
50103
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-roles.js
50103
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-roles.js
50104
50104
  var settingOf = /* @__PURE__ */ __name((list2) => `relationships.roles.${list2}`, "settingOf");
50105
50105
  var isList = /* @__PURE__ */ __name((list2) => Object.hasOwn(ROLE_LISTS, list2), "isList");
50106
50106
  var listOf2 = /* @__PURE__ */ __name((list2) => {
@@ -50184,7 +50184,7 @@ var relationRolesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
50184
50184
  };
50185
50185
  }, "relationRolesOver");
50186
50186
 
50187
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-settings.js
50187
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-settings.js
50188
50188
  var CRM_LINK_MODES = ["reported", "review"];
50189
50189
  var COMPANY_TYPE_MEANINGS = ["customer-of", "supplier", "partner-of"];
50190
50190
  var CRM_SCOPES = ["mine", "all"];
@@ -50415,7 +50415,7 @@ var crmSettingsOf = /* @__PURE__ */ __name((database) => database.prepare("SELEC
50415
50415
  return [{ setting: String(row2.key), value: settingValue(database, parsed5.key, parsed5.name) }];
50416
50416
  }), "crmSettingsOf");
50417
50417
 
50418
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
50418
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
50419
50419
  var isoOf = /* @__PURE__ */ __name((ms) => ms === void 0 ? null : new Date(ms).toISOString(), "isoOf");
50420
50420
  var relationOf = /* @__PURE__ */ __name((link3, now2) => ({
50421
50421
  id: link3.id,
@@ -50775,7 +50775,7 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
50775
50775
  provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
50776
50776
  }, "decidedOrigin");
50777
50777
 
50778
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/reported-relations.js
50778
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/reported-relations.js
50779
50779
  var keyOf4 = /* @__PURE__ */ __name((kind3, fromType, fromId, toType, toId, role) => `${String(kind3)}|${String(fromType)}:${String(fromId)}|${String(toType)}:${String(toId)}|${role == null ? "" : String(role)}`, "keyOf");
50780
50780
  var metadataOf = /* @__PURE__ */ __name((relation) => relation.metadata && Object.keys(relation.metadata).length ? JSON.stringify(relation.metadata) : null, "metadataOf");
50781
50781
  var syncReportedIn = /* @__PURE__ */ __name((context, key2, relationships, scope3, { source: source2 = "import", by = { bot: key2.provider, kind: "rule" }, onOutcome } = {}) => {
@@ -50913,7 +50913,7 @@ var relationsStoreOver = /* @__PURE__ */ __name((context) => ({
50913
50913
  syncReported: /* @__PURE__ */ __name(async (key2, relationships, scope3, options) => write(context.database, () => syncReportedIn(context, key2, relationships, scope3, options)), "syncReported")
50914
50914
  }), "relationsStoreOver");
50915
50915
 
50916
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relationships.js
50916
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relationships.js
50917
50917
  var importSource = /* @__PURE__ */ __name((provider) => `import:${provider}`, "importSource");
50918
50918
  var noRelationships = /* @__PURE__ */ __name(() => ({
50919
50919
  added: 0,
@@ -51103,7 +51103,7 @@ var recordRelationshipsOver = /* @__PURE__ */ __name((context) => {
51103
51103
  return { report, placeOf: placeOf2, withdrawFrom };
51104
51104
  }, "recordRelationshipsOver");
51105
51105
 
51106
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/business-contracts.js
51106
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/business-contracts.js
51107
51107
  var CONTRACTS = "SELECT k.*, b.name AS author_name, b.kind AS author_kind FROM contracts k LEFT JOIN bots b ON k.author_type = 'bot' AND b.id = k.author_id";
51108
51108
  var DAY_MS2 = 864e5;
51109
51109
  var deadlineOf = /* @__PURE__ */ __name((expiration, days) => expiration === null || days === null ? null : new Date(Date.parse(`${expiration}T00:00:00Z`) - days * DAY_MS2).toISOString().slice(0, 10), "deadlineOf");
@@ -51262,7 +51262,7 @@ var contractsStoreOver = /* @__PURE__ */ __name((context) => {
51262
51262
  };
51263
51263
  }, "contractsStoreOver");
51264
51264
 
51265
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/business-search.js
51265
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/business-search.js
51266
51266
  var BUSINESS_FIND_MAX = 2001;
51267
51267
  var party2 = /* @__PURE__ */ __name((kind3, id2, as) => `LEFT JOIN persons ${as}p ON ${kind3} = 'person' AND ${as}p.id = ${id2} AND ${as}p.owner = 0 LEFT JOIN organizations ${as}o ON ${kind3} = 'organization' AND ${as}o.id = ${id2} LEFT JOIN projects ${as}j ON ${kind3} = 'project' AND ${as}j.id = ${id2}`, "party");
51268
51268
  var partyName = /* @__PURE__ */ __name((as) => `coalesce(${as}p.name, ${as}o.name, ${as}j.name)`, "partyName");
@@ -51367,7 +51367,7 @@ var businessSearchOver = /* @__PURE__ */ __name(({ database }) => {
51367
51367
  };
51368
51368
  }, "businessSearchOver");
51369
51369
 
51370
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
51370
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
51371
51371
  var CATALOG_QUERY = defineQuery({
51372
51372
  entity: "document",
51373
51373
  backend: "sql",
@@ -51600,10 +51600,10 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
51600
51600
  };
51601
51601
  }, "catalogStoreOver");
51602
51602
 
51603
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/content.js
51603
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/content.js
51604
51604
  import { createHash as createHash14 } from "node:crypto";
51605
51605
 
51606
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-files.js
51606
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-files.js
51607
51607
  import { sep } from "node:path";
51608
51608
  var MOST = 500;
51609
51609
  var CURRENTLY = /* @__PURE__ */ __name((table) => `EXISTS (SELECT 1 FROM ${table} r WHERE r.account_id = f.account_id AND r.external_id = f.owner_id AND r.deleted_at IS NULL AND json_extract(r.metadata, '$.assignee') = ?)`, "CURRENTLY");
@@ -51728,7 +51728,7 @@ var crmFilesOver = /* @__PURE__ */ __name((context) => {
51728
51728
  };
51729
51729
  }, "crmFilesOver");
51730
51730
 
51731
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/content.js
51731
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/content.js
51732
51732
  var MOST2 = 500;
51733
51733
  var TABLE = {
51734
51734
  author: "content_authors",
@@ -52007,7 +52007,7 @@ var contentStoreOver = /* @__PURE__ */ __name((context) => {
52007
52007
  };
52008
52008
  }, "contentStoreOver");
52009
52009
 
52010
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
52010
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
52011
52011
  var remote = /* @__PURE__ */ __name(() => `CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source') IN (${documentAccountProvidersSql()}) ELSE 0 END`, "remote");
52012
52012
  var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${remote()}) THEN
52013
52013
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -52020,7 +52020,7 @@ var contextDocumentTimeKind = /* @__PURE__ */ __name(() => `CASE WHEN (${remoteT
52020
52020
  THEN 'source-modified' ELSE 'stored-update' END`, "contextDocumentTimeKind");
52021
52021
  var contextDocumentUrl = /* @__PURE__ */ __name(() => `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`, "contextDocumentUrl");
52022
52022
 
52023
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
52023
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
52024
52024
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
52025
52025
  const { source: source2, words: words4, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
52026
52026
  signal?.throwIfAborted();
@@ -52119,7 +52119,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
52119
52119
  });
52120
52120
  }, "readMeetingContextEvidence");
52121
52121
 
52122
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
52122
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
52123
52123
  var corpora = {
52124
52124
  message: {
52125
52125
  table: "messages",
@@ -52364,7 +52364,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
52364
52364
  }
52365
52365
  }), "contextRecordsOver");
52366
52366
 
52367
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-changes.js
52367
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-changes.js
52368
52368
  var CRM_CHANGES = [
52369
52369
  "created",
52370
52370
  "moved",
@@ -52507,7 +52507,7 @@ var crmReadsOver = /* @__PURE__ */ __name((context) => {
52507
52507
  };
52508
52508
  }, "crmReadsOver");
52509
52509
 
52510
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-contacts.js
52510
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm-contacts.js
52511
52511
  var PLACEHOLDER = /(?:^|\s)null(?:\s+#\d+)?(?=\s|$)/gi;
52512
52512
  var withoutPlaceholder = /* @__PURE__ */ __name((name) => name.replace(PLACEHOLDER, " ").replace(/\s+/g, " ").trim() || null, "withoutPlaceholder");
52513
52513
  var DryRun = class extends Error {
@@ -52586,7 +52586,7 @@ var removeCrmContacts = /* @__PURE__ */ __name((context, key2, { users, before:
52586
52586
  }
52587
52587
  }, "removeCrmContacts");
52588
52588
 
52589
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
52589
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/crm.js
52590
52590
  var PENDING = "crm:pending-relations";
52591
52591
  var PENDING_DAYS = 30;
52592
52592
  var PENDING_MOST = 5e3;
@@ -53141,10 +53141,10 @@ var crmCopiesOver = /* @__PURE__ */ __name((context, people2) => {
53141
53141
  };
53142
53142
  }, "crmCopiesOver");
53143
53143
 
53144
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
53144
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
53145
53145
  import { createHash as createHash15, randomBytes as randomBytes2 } from "node:crypto";
53146
53146
 
53147
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/decision-requests.js
53147
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/decision-requests.js
53148
53148
  var DECISION_ACTIONS = ["confirm", "reject", "ask-confirm", "ask-reject", "back", "later"];
53149
53149
  var DECISION_TTL_MS = 72 * 60 * 60 * 1e3;
53150
53150
  var CALLBACK_PREFIX = "wcr1:";
@@ -53158,7 +53158,7 @@ var callbackDataOf = /* @__PURE__ */ __name((token) => {
53158
53158
  }, "callbackDataOf");
53159
53159
  var parseCallbackData = /* @__PURE__ */ __name((data) => typeof data === "string" ? CALLBACK.exec(data)?.[1] : void 0, "parseCallbackData");
53160
53160
 
53161
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
53161
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/decision-requests.js
53162
53162
  var digestOf = /* @__PURE__ */ __name((token) => createHash15("sha256").update(token).digest("hex"), "digestOf");
53163
53163
  var newToken = /* @__PURE__ */ __name(() => randomBytes2(16).toString("base64url"), "newToken");
53164
53164
  var requestOf = /* @__PURE__ */ __name((row2) => ({
@@ -53257,7 +53257,7 @@ var decisionRequestStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
53257
53257
  };
53258
53258
  }, "decisionRequestStoreOver");
53259
53259
 
53260
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-listing.js
53260
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-listing.js
53261
53261
  var MEETING_ROW_KINDS = ["meeting", "call", "event"];
53262
53262
  var DAY9 = 864e5;
53263
53263
  var JOINED = `(SELECT ce.event_id FROM calendar_entries ce JOIN events je ON je.id = ce.event_id
@@ -53644,7 +53644,7 @@ var meetingListingOver = /* @__PURE__ */ __name((context) => {
53644
53644
  };
53645
53645
  }, "meetingListingOver");
53646
53646
 
53647
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-listing.js
53647
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-listing.js
53648
53648
  var DOCUMENT_KINDS = [
53649
53649
  "transcript",
53650
53650
  "doc",
@@ -53881,7 +53881,7 @@ var documentListingOver = /* @__PURE__ */ __name((context) => {
53881
53881
  };
53882
53882
  }, "documentListingOver");
53883
53883
 
53884
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
53884
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
53885
53885
  var NOTE_FIELDS = [
53886
53886
  "text",
53887
53887
  "exact",
@@ -54378,7 +54378,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
54378
54378
  };
54379
54379
  }, "noteSearchOver");
54380
54380
 
54381
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
54381
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
54382
54382
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
54383
54383
  var inEventAccounts = /* @__PURE__ */ __name((event2) => searchableCopy(event2, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
54384
54384
  var EVENT_CORPUS = {
@@ -54518,7 +54518,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
54518
54518
  };
54519
54519
  }, "eventSearchOver");
54520
54520
 
54521
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
54521
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
54522
54522
  var NAMED4 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
54523
54523
  var iso14 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
54524
54524
  var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -54781,7 +54781,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
54781
54781
  };
54782
54782
  }, "factsStoreOver");
54783
54783
 
54784
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
54784
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
54785
54785
  var invalid6 = /* @__PURE__ */ __name((message3) => {
54786
54786
  throw new CliError("validation_error", message3);
54787
54787
  }, "invalid");
@@ -54949,7 +54949,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
54949
54949
  return { snapshot: snapshot2, snapshotParts, previous, settle, keepWaiting, named: named2, sameDecision, create };
54950
54950
  }, "findingsCoreOver");
54951
54951
 
54952
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
54952
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
54953
54953
  var stale = /* @__PURE__ */ __name(() => {
54954
54954
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
54955
54955
  reason: "evidence-findings.stale"
@@ -55213,7 +55213,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
55213
55213
  };
55214
55214
  }, "evidenceFindingsStoreOver");
55215
55215
 
55216
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
55216
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
55217
55217
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
55218
55218
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
55219
55219
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -55267,7 +55267,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
55267
55267
  }, "forPerson")
55268
55268
  }), "involvementStoreOver");
55269
55269
 
55270
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/labelled.js
55270
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/labelled.js
55271
55271
  var LABELLED = {
55272
55272
  note: "note",
55273
55273
  document: "document",
@@ -55280,7 +55280,7 @@ var LABELLED = {
55280
55280
  };
55281
55281
  var accountMeetingTagging = /* @__PURE__ */ __name((alias2) => `(${alias2}.taggable_type <> 'meeting' OR EXISTS (SELECT 1 FROM meetings mt WHERE mt.id = ${alias2}.taggable_id AND mt.deleted_at IS NULL AND (? IS NULL OR mt.account_id = ?)))`, "accountMeetingTagging");
55282
55282
 
55283
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
55283
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
55284
55284
  import { createHash as createHash16 } from "node:crypto";
55285
55285
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
55286
55286
  var id = /* @__PURE__ */ __name((value) => {
@@ -55366,7 +55366,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
55366
55366
  };
55367
55367
  }, "meetingProjectsStoreOver");
55368
55368
 
55369
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
55369
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
55370
55370
  var ORGANIZATIONS_QUERY = {
55371
55371
  entity: "organization",
55372
55372
  backend: "sql",
@@ -55407,7 +55407,7 @@ var REMINDERS_QUERY = {
55407
55407
  })
55408
55408
  };
55409
55409
 
55410
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/organization-categories.js
55410
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/organization-categories.js
55411
55411
  var OWN2 = "(SELECT id FROM organizations WHERE deleted_at IS NULL AND json_extract(metadata, '$.own') = 1)";
55412
55412
  var EMPLOYED = "('employee', 'contractor', 'founder')";
55413
55413
  var categorySql = /* @__PURE__ */ __name(({ category, accounts: accounts2 }, now2) => {
@@ -55428,7 +55428,7 @@ var categorySql = /* @__PURE__ */ __name(({ category, accounts: accounts2 }, now
55428
55428
  return { sql: `EXISTS (SELECT 1 FROM links l WHERE ${where} AND ${usable})`, params: keys };
55429
55429
  }, "categorySql");
55430
55430
 
55431
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
55431
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/organizations.js
55432
55432
  var organizationOf2 = /* @__PURE__ */ __name((row2) => ({
55433
55433
  id: String(row2.id),
55434
55434
  ref: `organization:${row2.id}`,
@@ -55477,7 +55477,7 @@ var organizationsReadsOver = /* @__PURE__ */ __name(({ database, now: now2 }) =>
55477
55477
  }), "setOwnOrganization")
55478
55478
  }), "organizationsReadsOver");
55479
55479
 
55480
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-list.js
55480
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-list.js
55481
55481
  var KINDS = RELATION_KINDS.map(linkKind).join(", ");
55482
55482
  var ACCOUNT_ENDS = [
55483
55483
  ["deal", "deals"],
@@ -55640,13 +55640,13 @@ var relationListOver = /* @__PURE__ */ __name((context) => {
55640
55640
  __name(proposalItem, "proposalItem");
55641
55641
  }, "relationListOver");
55642
55642
 
55643
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-reads.js
55643
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-reads.js
55644
55644
  var relationReadsOver = /* @__PURE__ */ __name((context) => ({
55645
55645
  ...relationListOver(context),
55646
55646
  ...relationRolesOver(context)
55647
55647
  }), "relationReadsOver");
55648
55648
 
55649
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review.js
55649
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/source-review.js
55650
55650
  var TABLES6 = { memory: "memories", fact: "facts" };
55651
55651
  var RETIRED = /* @__PURE__ */ new Set(["superseded", "reversed", "rejected", "stale"]);
55652
55652
  var DEFAULT_LIMIT = 500;
@@ -55889,16 +55889,16 @@ var sourceReviewStoreOver = /* @__PURE__ */ __name((context) => {
55889
55889
  };
55890
55890
  }, "sourceReviewStoreOver");
55891
55891
 
55892
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
55892
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
55893
55893
  import { createHash as createHash19 } from "node:crypto";
55894
55894
 
55895
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
55895
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
55896
55896
  import { createHash as createHash18 } from "node:crypto";
55897
55897
 
55898
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
55898
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
55899
55899
  import { createHash as createHash17 } from "node:crypto";
55900
55900
 
55901
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
55901
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
55902
55902
  var consolidationId = /* @__PURE__ */ __name((value, field4) => {
55903
55903
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
55904
55904
  throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
@@ -55949,7 +55949,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
55949
55949
  return input;
55950
55950
  }, "consolidationApplyInput");
55951
55951
 
55952
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
55952
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
55953
55953
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
55954
55954
  id: String(row2.id),
55955
55955
  sourceId: String(row2.source_id),
@@ -56024,7 +56024,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
56024
56024
  }, { beforeCommit: check3 });
56025
56025
  }, "applyTagConsolidation");
56026
56026
 
56027
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
56027
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
56028
56028
  var selections = [
56029
56029
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
56030
56030
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -56168,7 +56168,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
56168
56168
  };
56169
56169
  }, "previewRows");
56170
56170
 
56171
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
56171
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
56172
56172
  var kinds = ["project", "tag", "topic"];
56173
56173
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
56174
56174
  if (signal?.aborted)
@@ -56432,7 +56432,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
56432
56432
  };
56433
56433
  }, "vocabularyStoreOver");
56434
56434
 
56435
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
56435
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
56436
56436
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
56437
56437
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
56438
56438
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -56986,7 +56986,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
56986
56986
  return key2.padEnd(3, "X");
56987
56987
  }, "projectKey");
56988
56988
 
56989
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
56989
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
56990
56990
  var DAY10 = 864e5;
56991
56991
  var SETTING5 = "logs_pruned_at";
56992
56992
  var LOG_RETENTION = { agentActionsMs: 90 * DAY10, botUpdatePayloadsMs: 30 * DAY10 };
@@ -57013,7 +57013,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
57013
57013
  };
57014
57014
  }, "logPruner");
57015
57015
 
57016
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/mail/findings.js
57016
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mail/findings.js
57017
57017
  var MAIL_FINDINGS_PER_RUN = 30;
57018
57018
  var MAIL_FINDINGS_PER_SENDER = 5;
57019
57019
  var invalid8 = /* @__PURE__ */ __name((message3) => {
@@ -57389,7 +57389,7 @@ var checkMailFindings = /* @__PURE__ */ __name((input) => {
57389
57389
  }, "checkMailFindings");
57390
57390
  var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
57391
57391
 
57392
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
57392
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
57393
57393
  var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
57394
57394
  var orderOperationsOver = /* @__PURE__ */ __name((context) => {
57395
57395
  const { database, now: now2 } = context;
@@ -57604,7 +57604,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
57604
57604
  };
57605
57605
  }, "ordersStoreOver");
57606
57606
 
57607
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
57607
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
57608
57608
  var MAIL_EDITS = {
57609
57609
  task: ["title", "type", "reason", "commitment", "project", "dueAt", "dueEvidence", "assignee", "assigneeEvidence"],
57610
57610
  fact: ["statement", "type", "reason", "subject", "project"],
@@ -58093,7 +58093,7 @@ ${evidence.join("\n")}`, agent);
58093
58093
  };
58094
58094
  }, "mailFindingsStoreOver");
58095
58095
 
58096
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
58096
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
58097
58097
  var stale3 = /* @__PURE__ */ __name(() => {
58098
58098
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
58099
58099
  reason: "meeting-findings.stale"
@@ -58306,7 +58306,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
58306
58306
  };
58307
58307
  }, "meetingFindingsStoreOver");
58308
58308
 
58309
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
58309
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
58310
58310
  var RANK_BATCH = 512;
58311
58311
  var LIVE6 = "FROM chunks k JOIN meeting_transcripts t ON k.chunkable_type = 'meeting_transcript' AND t.id = k.chunkable_id JOIN meetings m ON m.id = t.meeting_id WHERE m.account_id = ? AND m.deleted_at IS NULL AND t.deleted_at IS NULL AND t.superseded_at IS NULL";
58312
58312
  var limitOf2 = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -58577,7 +58577,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
58577
58577
  }
58578
58578
  }), "meetingVectorsOver");
58579
58579
 
58580
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
58580
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
58581
58581
  var OTHER_SOURCES = ["document", "note", "email"];
58582
58582
  var TEXTS = {
58583
58583
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -58678,7 +58678,7 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
58678
58678
  };
58679
58679
  }, "sourceMentionStoreOver");
58680
58680
 
58681
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/money-transactions.js
58681
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/money-transactions.js
58682
58682
  var TRANSACTIONS = "SELECT t.*, w.name AS wallet_name, b.name AS author_name, b.kind AS author_kind, (SELECT coalesce(sum(amount), 0) FROM transaction_splits WHERE transaction_id = t.id) AS split FROM financial_transactions t JOIN financial_accounts w ON w.id = t.financial_account_id LEFT JOIN bots b ON t.author_type = 'bot' AND b.id = t.author_id";
58683
58683
  var MAX_SPLITS = 100;
58684
58684
  var transactionOperationsOver = /* @__PURE__ */ __name((context) => {
@@ -58912,11 +58912,11 @@ var transactionsStoreOver = /* @__PURE__ */ __name((context) => {
58912
58912
  };
58913
58913
  }, "transactionsStoreOver");
58914
58914
 
58915
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
58915
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
58916
58916
  import { accessSync, constants, existsSync as existsSync2, mkdirSync as mkdirSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
58917
58917
  import { dirname as dirname2 } from "node:path";
58918
58918
 
58919
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
58919
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
58920
58920
  import { readFileSync as readFileSync3 } from "node:fs";
58921
58921
  var CLIENTS_SETTING = "clients";
58922
58922
  var coreVersion = (() => {
@@ -58977,7 +58977,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
58977
58977
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
58978
58978
  }, "refusalAdvice");
58979
58979
 
58980
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
58980
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
58981
58981
  var GENERATED = [
58982
58982
  {
58983
58983
  "name": "20261010184427_initial",
@@ -60437,7 +60437,7 @@ WHERE json_type(params, '$.selection') = 'object';`
60437
60437
  }
60438
60438
  ];
60439
60439
 
60440
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
60440
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/rollback-copy.js
60441
60441
  import { mkdirSync, rmSync, statfsSync, writeFileSync } from "node:fs";
60442
60442
  import { basename, dirname, join as join3, parse } from "node:path";
60443
60443
  var DERIVED = /(_fts|_words|_stems|_trigrams|_pending)$|^(embeddings|chunks|chunk_messages|mentions|involvements|search_terms)$|^vector_index/;
@@ -60670,7 +60670,7 @@ var rollBack2 = /* @__PURE__ */ __name((database, path) => {
60670
60670
  return { ...result, foreignKeyViolations };
60671
60671
  }, "rollBack");
60672
60672
 
60673
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
60673
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
60674
60674
  var V31_TABLES = [
60675
60675
  "accounts",
60676
60676
  "account_identities",
@@ -60846,7 +60846,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
60846
60846
  return migrations;
60847
60847
  }, "generatedMigrations");
60848
60848
 
60849
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/migrations.js
60849
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/migrations.js
60850
60850
  var MIGRATIONS = generatedMigrations();
60851
60851
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
60852
60852
  version INTEGER PRIMARY KEY,
@@ -60943,7 +60943,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
60943
60943
  }
60944
60944
  }, "migrate");
60945
60945
 
60946
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
60946
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
60947
60947
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
60948
60948
  const pending = database.prepare("SELECT id, join_url FROM meetings WHERE join_url IS NOT NULL AND join_key IS NULL AND id > ? ORDER BY id LIMIT ?");
60949
60949
  if (pending.get(0, 1) === void 0)
@@ -60965,7 +60965,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
60965
60965
  }
60966
60966
  }, "fillJoinKeys");
60967
60967
 
60968
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/slow-queries.js
60968
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/slow-queries.js
60969
60969
  var queryShape = /* @__PURE__ */ __name((sql2) => sql2.replace(/'(?:[^']|'')*'/g, "?").replace(/\b\d+(?:\.\d+)?\b/g, "?").replace(/\s+/g, " ").trim().slice(0, 400), "queryShape");
60970
60970
  var rowsOf2 = /* @__PURE__ */ __name((result) => Array.isArray(result) ? result.length : result && typeof result === "object" && "changes" in result ? Number(result.changes) : result === void 0 || result === null ? 0 : 1, "rowsOf");
60971
60971
  var timeQueries = /* @__PURE__ */ __name((client, methods) => {
@@ -60999,7 +60999,7 @@ var timeQueries = /* @__PURE__ */ __name((client, methods) => {
60999
60999
  return client;
61000
61000
  }, "timeQueries");
61001
61001
 
61002
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
61002
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
61003
61003
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
61004
61004
  refuseOwnerStoreInTests(path);
61005
61005
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
@@ -61013,8 +61013,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
61013
61013
  }, "openSqlite");
61014
61014
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
61015
61015
  quietSqliteWarning();
61016
- const { drizzle } = await import("./node-IACCI2CW.js");
61017
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-WYIRC7C7.js");
61016
+ const { drizzle } = await import("./node-NLJINXVQ.js");
61017
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-KDFQDYVZ.js");
61018
61018
  const client = await nodeClient(path, { readOnly });
61019
61019
  try {
61020
61020
  if (!readOnly)
@@ -61029,8 +61029,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
61029
61029
  }
61030
61030
  }, "openUnderNode");
61031
61031
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
61032
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-JIFY7MAE.js");
61033
- const { drizzle } = await import("./bun-DTJVSRY3.js");
61032
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-KSKWRLLO.js");
61033
+ const { drizzle } = await import("./bun-NS5YLOQT.js");
61034
61034
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
61035
61035
  try {
61036
61036
  if (!readOnly)
@@ -61045,7 +61045,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
61045
61045
  }
61046
61046
  }, "openUnderBun");
61047
61047
 
61048
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
61048
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
61049
61049
  var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
61050
61050
  var paymentOf = /* @__PURE__ */ __name((metadata3) => {
61051
61051
  try {
@@ -61113,7 +61113,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
61113
61113
  });
61114
61114
  }, "movePaymentFacts");
61115
61115
 
61116
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
61116
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
61117
61117
  var readCompatibility = /* @__PURE__ */ __name((database, command) => {
61118
61118
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
61119
61119
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -61131,7 +61131,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
61131
61131
  throw new CliError("configuration_error", `The store needs schema ${MIGRATIONS.at(-1)?.version ?? 0} maintenance before a read-only open`);
61132
61132
  }, "assertReadCompatible");
61133
61133
 
61134
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
61134
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
61135
61135
  var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
61136
61136
  var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
61137
61137
  if (provenance2?.startsWith("rule:"))
@@ -61177,7 +61177,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
61177
61177
  });
61178
61178
  }, "moveSuggestedLinks");
61179
61179
 
61180
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
61180
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
61181
61181
  var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
61182
61182
  var TEST_PROVIDER = "chat";
61183
61183
  var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
@@ -61198,7 +61198,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
61198
61198
  }
61199
61199
  }, "purgeTestAccounts");
61200
61200
 
61201
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
61201
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
61202
61202
  var BACKFILL_ON_OPEN = 5e3;
61203
61203
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
61204
61204
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -61310,7 +61310,7 @@ var openStoreContext = /* @__PURE__ */ __name(async (options = {}) => {
61310
61310
  }
61311
61311
  }, "openStoreContext");
61312
61312
 
61313
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/products.js
61313
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/products.js
61314
61314
  var PRODUCTS = "SELECT c.*, b.name AS author_name, b.kind AS author_kind FROM catalog_items c LEFT JOIN bots b ON c.author_type = 'bot' AND b.id = c.author_id";
61315
61315
  var productOperationsOver = /* @__PURE__ */ __name((context) => {
61316
61316
  const { database, now: now2 } = context;
@@ -61418,13 +61418,13 @@ var productsStoreOver = /* @__PURE__ */ __name((context) => {
61418
61418
  };
61419
61419
  }, "productsStoreOver");
61420
61420
 
61421
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
61421
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
61422
61422
  import { createHash as createHash21 } from "node:crypto";
61423
61423
 
61424
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
61424
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
61425
61425
  import { createHash as createHash20 } from "node:crypto";
61426
61426
 
61427
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
61427
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
61428
61428
  var text7 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
61429
61429
  var ref = text7(2048);
61430
61430
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -61494,7 +61494,7 @@ var projectAnnotationsSchema = strictObject({
61494
61494
  }))
61495
61495
  });
61496
61496
 
61497
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
61497
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
61498
61498
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
61499
61499
  var invalid11 = /* @__PURE__ */ __name((field4) => {
61500
61500
  throw new CliError("validation_error", `invalid project annotations.${field4}`);
@@ -61627,7 +61627,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json4) => {
61627
61627
  return createHash20("sha256").update(JSON.stringify(normalized)).digest("hex");
61628
61628
  }, "projectAnnotationsFingerprint");
61629
61629
 
61630
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
61630
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
61631
61631
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
61632
61632
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
61633
61633
  var targetSchema = strictObject({
@@ -61734,7 +61734,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
61734
61734
  }, "planBoundProjectAnnotations");
61735
61735
  var planProjectAnnotations = /* @__PURE__ */ __name((json4, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json4), projectAnnotationsFingerprint(json4), target, bindings), "planProjectAnnotations");
61736
61736
 
61737
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
61737
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
61738
61738
  import { createHash as createHash22 } from "node:crypto";
61739
61739
  var text8 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
61740
61740
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -61828,7 +61828,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json4) => {
61828
61828
  })).digest("hex");
61829
61829
  }, "projectAnnotationSnapshotFingerprint");
61830
61830
 
61831
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
61831
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
61832
61832
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
61833
61833
  if (!request || typeof request !== "object" || Array.isArray(request))
61834
61834
  throw new CliError("validation_error", "project annotation request is required");
@@ -61845,7 +61845,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
61845
61845
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
61846
61846
  }, "projectAnnotationRequest");
61847
61847
 
61848
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
61848
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
61849
61849
  var SnapshotBudget = class {
61850
61850
  static {
61851
61851
  __name(this, "SnapshotBudget");
@@ -61871,13 +61871,13 @@ var SnapshotBudget = class {
61871
61871
  }
61872
61872
  };
61873
61873
 
61874
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
61874
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
61875
61875
  import { createHash as createHash24 } from "node:crypto";
61876
61876
 
61877
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
61877
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
61878
61878
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json4, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json4), projectAnnotationSnapshotFingerprint(json4), target, bindings), "planProjectAnnotationSnapshot");
61879
61879
 
61880
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
61880
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
61881
61881
  import { createHash as createHash23 } from "node:crypto";
61882
61882
  var invalid13 = /* @__PURE__ */ __name(() => {
61883
61883
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -62020,7 +62020,7 @@ var ProjectSnapshotSources = class {
62020
62020
  }
62021
62021
  };
62022
62022
 
62023
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
62023
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
62024
62024
  var unsupported = /* @__PURE__ */ __name(() => {
62025
62025
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
62026
62026
  }, "unsupported");
@@ -62198,7 +62198,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
62198
62198
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
62199
62199
  }), "projectAnnotationSnapshot");
62200
62200
 
62201
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
62201
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
62202
62202
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
62203
62203
  const current2 = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
62204
62204
  const sources = new ProjectSnapshotSources(database, budget);
@@ -62260,7 +62260,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
62260
62260
  };
62261
62261
  }), "previewAnnotationSnapshot");
62262
62262
 
62263
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
62263
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
62264
62264
  var metadataOf2 = /* @__PURE__ */ __name((database, link3, to) => {
62265
62265
  const provenance2 = link3.provenance === null ? {} : { provenance: link3.provenance };
62266
62266
  if (link3.kind === "evidence" && to)
@@ -62327,7 +62327,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
62327
62327
  return mappings;
62328
62328
  }, "restoreAnnotationRecords");
62329
62329
 
62330
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
62330
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
62331
62331
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
62332
62332
  async preview(request) {
62333
62333
  const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
@@ -62357,7 +62357,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
62357
62357
  }
62358
62358
  }), "projectAnnotationStoreOver");
62359
62359
 
62360
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relations.js
62360
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-relations.js
62361
62361
  var isDerived = /* @__PURE__ */ __name((role) => role.startsWith("fields."), "isDerived");
62362
62362
  var recordRelationsOver = /* @__PURE__ */ __name(({ database }) => {
62363
62363
  const sql2 = /* @__PURE__ */ __name((text9) => database.prepare(text9), "sql");
@@ -62428,7 +62428,7 @@ var recordRelationsOver = /* @__PURE__ */ __name(({ database }) => {
62428
62428
  return { entityRef, relatedOf, storedRelations, relate, missingOf };
62429
62429
  }, "recordRelationsOver");
62430
62430
 
62431
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-remap.js
62431
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-remap.js
62432
62432
  var recordRemapOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
62433
62433
  const pointedAt = /* @__PURE__ */ __name((type, id2) => {
62434
62434
  for (const { table, pointer } of pointerPairs(database))
@@ -62482,7 +62482,7 @@ var recordRemapOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
62482
62482
  return { pointedAt, remap };
62483
62483
  }, "recordRemapOver");
62484
62484
 
62485
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-run.js
62485
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-run.js
62486
62486
  var runs = 0;
62487
62487
  var PAGE = 500;
62488
62488
  var recordRunOver = /* @__PURE__ */ __name((context, writes) => {
@@ -62695,7 +62695,7 @@ var waitingPointer = /* @__PURE__ */ __name((index2, missing4) => {
62695
62695
  return pointerOf("records", index2, "fields", key2);
62696
62696
  }, "waitingPointer");
62697
62697
 
62698
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-matching.js
62698
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-matching.js
62699
62699
  var valuesOf = /* @__PURE__ */ __name((value) => (Array.isArray(value) ? value : [value]).filter((one2) => typeof one2 === "string"), "valuesOf");
62700
62700
  var SCHEME = /^(email|domain|tax-id:[a-z]{2}|registration:[a-z]{2})$/;
62701
62701
  var ORG_EMAIL = "org-email";
@@ -62861,7 +62861,7 @@ var renameMade = /* @__PURE__ */ __name(({ database, now: now2 }, type, id2, nam
62861
62861
  ]);
62862
62862
  }, "renameMade");
62863
62863
 
62864
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-direct.js
62864
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-direct.js
62865
62865
  var productFields = /* @__PURE__ */ __name((fields4) => ({
62866
62866
  name: given2(fields4, "name"),
62867
62867
  unit: given2(fields4, "unit"),
@@ -62984,7 +62984,7 @@ var DIRECT_PROJECTORS = {
62984
62984
  lead: dealProjector("lead")
62985
62985
  };
62986
62986
 
62987
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-document.js
62987
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-document.js
62988
62988
  var TEXT_ONLY = { storage: "text", localPath: null };
62989
62989
  var textOf7 = /* @__PURE__ */ __name(({ fields: fields4, externalId }) => {
62990
62990
  const text9 = String(fields4.text ?? "");
@@ -63053,7 +63053,7 @@ var DOCUMENT_PROJECTORS = {
63053
63053
  }
63054
63054
  };
63055
63055
 
63056
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-money.js
63056
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-money.js
63057
63057
  var allocatedByOthers = /* @__PURE__ */ __name((context, paymentId) => {
63058
63058
  const importer = authorActor(context, IMPORTER).actor;
63059
63059
  return context.database.prepare("SELECT 1 FROM payment_allocations WHERE payment_id = ? AND NOT (author_type = ? AND author_id = ?) LIMIT 1").get(paymentId, importer.type, importer.id) !== void 0;
@@ -63263,7 +63263,7 @@ var MONEY_PROJECTORS = {
63263
63263
  }
63264
63264
  };
63265
63265
 
63266
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-phone.js
63266
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors-phone.js
63267
63267
  var CALLS_CALENDAR = "calls";
63268
63268
  var importOnly = /* @__PURE__ */ __name((source2, type) => {
63269
63269
  if (!isImportedProvider(source2.provider))
@@ -63438,7 +63438,7 @@ var PHONE_PROJECTORS = {
63438
63438
  }
63439
63439
  };
63440
63440
 
63441
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors.js
63441
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-projectors.js
63442
63442
  var RECORD_PROJECTORS = {
63443
63443
  ...MONEY_PROJECTORS,
63444
63444
  ...DIRECT_PROJECTORS,
@@ -63449,7 +63449,7 @@ var RECORD_PROJECTORS = {
63449
63449
  project: null
63450
63450
  };
63451
63451
 
63452
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-settling.js
63452
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-settling.js
63453
63453
  var recordSettlingOver = /* @__PURE__ */ __name(({ database }, finance) => {
63454
63454
  const sql2 = /* @__PURE__ */ __name((text9) => database.prepare(text9), "sql");
63455
63455
  const freeOn = /* @__PURE__ */ __name((invoice, payment) => {
@@ -63511,7 +63511,7 @@ var recordSettlingOver = /* @__PURE__ */ __name(({ database }, finance) => {
63511
63511
  return { settle, checkShares };
63512
63512
  }, "recordSettlingOver");
63513
63513
 
63514
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-stamps.js
63514
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-stamps.js
63515
63515
  import { createHash as createHash25 } from "node:crypto";
63516
63516
  var VOLATILE = /* @__PURE__ */ new Set(["id", "created_at", "updated_at", "metadata"]);
63517
63517
  var content = /* @__PURE__ */ __name((row2) => row2 === void 0 ? null : Object.fromEntries(Object.entries(row2).filter(([column2]) => !VOLATILE.has(column2))), "content");
@@ -63527,7 +63527,7 @@ var importStampsOver = /* @__PURE__ */ __name(({ database }) => {
63527
63527
  return { stamp, untouched };
63528
63528
  }, "importStampsOver");
63529
63529
 
63530
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/subscriptions.js
63530
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/subscriptions.js
63531
63531
  var SUBSCRIPTIONS = "SELECT s.*, b.name AS author_name, b.kind AS author_kind FROM subscriptions s LEFT JOIN bots b ON s.author_type = 'bot' AND b.id = s.author_id";
63532
63532
  var PRICES = "SELECT p.*, b.name AS author_name, b.kind AS author_kind FROM subscription_prices p LEFT JOIN bots b ON p.author_type = 'bot' AND b.id = p.author_id";
63533
63533
  var PRICE_REF = /^subscription_price:([1-9]\d{0,15})$/;
@@ -63764,7 +63764,7 @@ var subscriptionsStoreOver = /* @__PURE__ */ __name((context) => {
63764
63764
  };
63765
63765
  }, "subscriptionsStoreOver");
63766
63766
 
63767
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/wallets.js
63767
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/wallets.js
63768
63768
  var WALLETS = "SELECT w.*, b.name AS author_name, b.kind AS author_kind FROM financial_accounts w LEFT JOIN bots b ON w.author_type = 'bot' AND b.id = w.author_id";
63769
63769
  var SIGNED = "CASE t.direction WHEN 'in' THEN t.amount ELSE -t.amount END";
63770
63770
  var walletOperationsOver = /* @__PURE__ */ __name((context) => {
@@ -63889,7 +63889,7 @@ var walletsStoreOver = /* @__PURE__ */ __name((context) => {
63889
63889
  };
63890
63890
  }, "walletsStoreOver");
63891
63891
 
63892
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/record-writes.js
63892
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/record-writes.js
63893
63893
  var specOf = /* @__PURE__ */ __name((type) => RECORD_TYPES[type], "specOf");
63894
63894
  var unsettled = /* @__PURE__ */ __name((fields4, relations) => recordFingerprint(fields4, relations.filter((relation) => !AMOUNT_ROLES.includes(relation.role))), "unsettled");
63895
63895
  var tableOf2 = /* @__PURE__ */ __name((type) => typeof type === "string" && Object.hasOwn(DECIDED_TABLES, type) ? DECIDED_TABLES[type] : void 0, "tableOf");
@@ -64148,7 +64148,7 @@ var recordWritesOver = /* @__PURE__ */ __name((context) => {
64148
64148
  return { writeOne, project: project2, completeDependents, entityRef, missingOf: relations.missingOf };
64149
64149
  }, "recordWritesOver");
64150
64150
 
64151
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
64151
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
64152
64152
  var LIMIT = 1e3;
64153
64153
  var iso17 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
64154
64154
  var checkLimit = /* @__PURE__ */ __name((limit) => {
@@ -64372,7 +64372,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
64372
64372
  };
64373
64373
  }, "recordStoreOver");
64374
64374
 
64375
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/templates.js
64375
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/templates.js
64376
64376
  var templateOf = /* @__PURE__ */ __name((row2) => ({
64377
64377
  key: row2.key,
64378
64378
  channel: row2.channel,
@@ -64427,12 +64427,12 @@ var storedTemplateBodies = /* @__PURE__ */ __name((database, key2, language) =>
64427
64427
  return Object.fromEntries(rows.map((row2) => [row2.channel, row2.body]));
64428
64428
  }, "storedTemplateBodies");
64429
64429
 
64430
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/domain/tracker.js
64430
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/tracker.js
64431
64431
  var trackerTitleOf = /* @__PURE__ */ __name((kind3, record3) => kind3 === "issue" ? record3.title : kind3 === "comment" ? record3.body.split("\n")[0]?.slice(0, 120) || "(comment)" : record3.name, "trackerTitleOf");
64432
64432
  var trackerBodyOf = /* @__PURE__ */ __name((kind3, record3) => kind3 === "comment" ? record3.body : kind3 === "issue" || kind3 === "project" ? record3.description : null, "trackerBodyOf");
64433
64433
  var trackerParentOf = /* @__PURE__ */ __name((kind3, record3) => kind3 === "comment" ? record3.issue : kind3 === "state" || kind3 === "label" ? record3.team : kind3 === "issue" ? record3.team : null, "trackerParentOf");
64434
64434
 
64435
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/tracker.js
64435
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/tracker.js
64436
64436
  var MOST3 = 500;
64437
64437
  var itemOf2 = /* @__PURE__ */ __name((row2) => ({
64438
64438
  kind: String(row2.kind),
@@ -64602,7 +64602,7 @@ var trackerStoreOver = /* @__PURE__ */ __name((context) => {
64602
64602
  };
64603
64603
  }, "trackerStoreOver");
64604
64604
 
64605
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/store-errors.js
64605
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/store-errors.js
64606
64606
  var refusalOf2 = /* @__PURE__ */ __name((error) => error instanceof Error && error.name === "DrizzleQueryError" && error.cause instanceof CliError ? error.cause : error, "refusalOf");
64607
64607
  var wrapped2 = /* @__PURE__ */ new WeakMap();
64608
64608
  var storeErrors = /* @__PURE__ */ __name((area) => {
@@ -64637,7 +64637,7 @@ var storeErrors = /* @__PURE__ */ __name((area) => {
64637
64637
  return proxy;
64638
64638
  }, "storeErrors");
64639
64639
 
64640
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
64640
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
64641
64641
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
64642
64642
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
64643
64643
  let merged2 = { from: from2, to };
@@ -64650,7 +64650,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
64650
64650
  }, "markRange");
64651
64651
  var ranges = /* @__PURE__ */ __name(({ orm }, chatKey) => orm.select({ from: syncRanges.fromKey, to: syncRanges.toKey }).from(syncRanges).where(eq(syncRanges.chatId, chatKey)).orderBy(syncRanges.fromKey).all(), "ranges");
64652
64652
 
64653
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
64653
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
64654
64654
  var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
64655
64655
  var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
64656
64656
  chatId: String(row2.key).slice(prefix.length),
@@ -64671,7 +64671,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
64671
64671
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
64672
64672
  }, "setTaskAnalysisMark");
64673
64673
 
64674
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
64674
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
64675
64675
  var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
64676
64676
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
64677
64677
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf6(account));
@@ -64681,7 +64681,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
64681
64681
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(keyOf6(account), JSON.stringify(until), now2);
64682
64682
  }, "setTaskRulesStop");
64683
64683
 
64684
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sync.js
64684
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sync.js
64685
64685
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
64686
64686
  const { database } = context;
64687
64687
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -64740,7 +64740,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
64740
64740
  };
64741
64741
  }, "syncStoreOver");
64742
64742
 
64743
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/tags.js
64743
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/tags.js
64744
64744
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
64745
64745
  const { database } = context;
64746
64746
  return {
@@ -64762,7 +64762,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
64762
64762
  };
64763
64763
  }, "tagsStoreOver");
64764
64764
 
64765
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
64765
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
64766
64766
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
64767
64767
  var neighbours = /* @__PURE__ */ __name(({ orm }, chatKey, messagePk, sentAt, { messages: messages2, withinMs }, side) => orm.all(sql`SELECT sender_name AS sender, text, sent_at AS sentAt FROM messages
64768
64768
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -64889,7 +64889,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
64889
64889
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
64890
64890
  }, "savePictureChunks");
64891
64891
 
64892
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
64892
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
64893
64893
  var messagesToEmbed = /* @__PURE__ */ __name(({ orm }, accountPk2, { chatKey, model, after: after2, limit }) => orm.all(sql`SELECT m.id AS messagePk, m.text, m.sent_at AS sentAt, k.content_hash AS hash,
64894
64894
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
64895
64895
  FROM messages m
@@ -64978,7 +64978,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
64978
64978
  return plain2(best(found2));
64979
64979
  }, "nearestMessages");
64980
64980
 
64981
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/vectors.js
64981
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/vectors.js
64982
64982
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
64983
64983
  const { database } = context;
64984
64984
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -65242,7 +65242,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
65242
65242
  vectorCounts: /* @__PURE__ */ __name(async (models) => vectorCounts(context, models), "vectorCounts")
65243
65243
  }), "vectorsStoreOver");
65244
65244
 
65245
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
65245
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
65246
65246
  import { existsSync as existsSync3, readFileSync as readFileSync4 } from "node:fs";
65247
65247
  import { dirname as dirname3, join as join4 } from "node:path";
65248
65248
  var BOOKKEEPING2 = ["schema_migrations", "store_settings"];
@@ -65330,10 +65330,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
65330
65330
  }
65331
65331
  }, "lastBackup");
65332
65332
 
65333
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/providers.js
65333
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/providers.js
65334
65334
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
65335
65335
 
65336
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
65336
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
65337
65337
  var COUNTED_TABLES = [
65338
65338
  "accounts",
65339
65339
  "chats",
@@ -65418,7 +65418,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
65418
65418
  };
65419
65419
  }, "storeContents");
65420
65420
 
65421
- // node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/store/store.js
65421
+ // node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/store/store.js
65422
65422
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
65423
65423
  const context = await openStoreContext(options);
65424
65424
  try {