@wirecat/drive-cli 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/bin/drive.js +2 -2
  2. package/dist/bundle/{all-profiles-LTHNCWQW.js → all-profiles-O7CNQ7FO.js} +8 -8
  3. package/dist/bundle/{anthropic-NOJEF3V2.js → anthropic-6T67J2CE.js} +5 -5
  4. package/dist/bundle/app-server-BVBZT3UY.js +237 -0
  5. package/dist/bundle/{bun-ADJVI4HY.js → bun-O6RL6LRQ.js} +2 -2
  6. package/dist/bundle/{bun-sqlite-GNXLBF2A.js → bun-sqlite-54W7JUY3.js} +4 -4
  7. package/dist/bundle/{chunk-IGB5CJCA.js → chunk-2DLAJGRN.js} +1 -1
  8. package/dist/bundle/{chunk-NQ6LLDDC.js → chunk-3HRDEJJW.js} +4 -4
  9. package/dist/bundle/{chunk-XPEWOPJR.js → chunk-3Z7WSD2A.js} +10 -8
  10. package/dist/bundle/{chunk-WPGCDWPU.js → chunk-44FV5JAS.js} +21 -21
  11. package/dist/bundle/{chunk-GX4WEMAG.js → chunk-4DW6QGEV.js} +11 -11
  12. package/dist/bundle/{chunk-IP4OK7RQ.js → chunk-4NGLRHWO.js} +1 -1
  13. package/dist/bundle/{chunk-LNB7BIZL.js → chunk-5MGIL5LW.js} +19 -17
  14. package/dist/bundle/{chunk-66N2DGGC.js → chunk-5MYFPQDA.js} +21 -14
  15. package/dist/bundle/{chunk-MWUITL6N.js → chunk-5TC3NCAF.js} +2 -2
  16. package/dist/bundle/{chunk-4UE7AVHZ.js → chunk-A3FU4RR6.js} +4 -4
  17. package/dist/bundle/{chunk-PIN5RZ3D.js → chunk-AIXLOMH4.js} +1 -1
  18. package/dist/bundle/{chunk-WZUJKUBK.js → chunk-AOOD3RMK.js} +7 -7
  19. package/dist/bundle/{chunk-Z4O6C7WR.js → chunk-AUS6TKP5.js} +35 -33
  20. package/dist/bundle/{chunk-OECPFZLP.js → chunk-BEXHAGXH.js} +96 -95
  21. package/dist/bundle/{chunk-3V6NPZY7.js → chunk-BHE7ZY2N.js} +45 -45
  22. package/dist/bundle/{chunk-GKHM6I64.js → chunk-BJ3JRO34.js} +7 -7
  23. package/dist/bundle/{chunk-2FTZBZOB.js → chunk-BQUPOB5H.js} +8 -8
  24. package/dist/bundle/{chunk-CDI67JSB.js → chunk-CFZWPIVC.js} +20 -20
  25. package/dist/bundle/{chunk-EVWXODYV.js → chunk-CKR3DVUK.js} +11 -11
  26. package/dist/bundle/{chunk-AN3GVZTU.js → chunk-CVIKKIGE.js} +1 -1
  27. package/dist/bundle/{chunk-7XWUOCGW.js → chunk-D67JGWSC.js} +2 -2
  28. package/dist/bundle/{chunk-UC44ZMQV.js → chunk-DDYR6DYL.js} +1 -1
  29. package/dist/bundle/{chunk-C6SMAEED.js → chunk-DL7D6Y3B.js} +199 -199
  30. package/dist/bundle/{chunk-PDH2QQQV.js → chunk-DORXXBFC.js} +7 -7
  31. package/dist/bundle/{chunk-DCTXOMOR.js → chunk-DXKVEOSS.js} +20 -2
  32. package/dist/bundle/{chunk-ZQNXKWUY.js → chunk-FEULDMWM.js} +258 -244
  33. package/dist/bundle/{chunk-TDC6JGDA.js → chunk-G3FAOS52.js} +2 -2
  34. package/dist/bundle/{chunk-HOIUIKWS.js → chunk-GHOWRW7E.js} +4 -3
  35. package/dist/bundle/{chunk-C4XP5T73.js → chunk-GNFHZZ55.js} +5 -5
  36. package/dist/bundle/{chunk-K4N2DKE5.js → chunk-GOR3Z2FR.js} +2 -2
  37. package/dist/bundle/{chunk-WQMVSQPP.js → chunk-GQW4GRYR.js} +6 -6
  38. package/dist/bundle/{chunk-Y5EJSZXV.js → chunk-GWPKIRNQ.js} +5 -5
  39. package/dist/bundle/{chunk-HA3WCVGY.js → chunk-HEPIOCHN.js} +51 -49
  40. package/dist/bundle/{chunk-DC4T3FNP.js → chunk-IAW5A7OR.js} +27 -27
  41. package/dist/bundle/{chunk-4TQSNQVV.js → chunk-IGMRWQP3.js} +25 -25
  42. package/dist/bundle/{chunk-65GGKAQ7.js → chunk-IKNU5A5Y.js} +3 -3
  43. package/dist/bundle/{chunk-ZPMLLONT.js → chunk-JVTVAZ5X.js} +19 -19
  44. package/dist/bundle/{chunk-A6ZKTNTZ.js → chunk-K74PQVQZ.js} +7 -7
  45. package/dist/bundle/{server-2UQDEWTS.js → chunk-K7FRUB33.js} +40 -63
  46. package/dist/bundle/{chunk-ZS635F4O.js → chunk-KADPV4YA.js} +2 -2
  47. package/dist/bundle/{chunk-ZIHLE7LG.js → chunk-KJMBV574.js} +3252 -3019
  48. package/dist/bundle/{chunk-ICKNJIGE.js → chunk-LHIL46I3.js} +2 -2
  49. package/dist/bundle/{chunk-LWT55XC5.js → chunk-LJARCTGL.js} +4 -4
  50. package/dist/bundle/{chunk-64WJYT2F.js → chunk-LOTQ2HMT.js} +9 -9
  51. package/dist/bundle/{chunk-MJR2OTO4.js → chunk-LZ5OTVWH.js} +6 -6
  52. package/dist/bundle/{chunk-V7GN5BI7.js → chunk-MAXN7COO.js} +1 -1
  53. package/dist/bundle/{chunk-LW2G4U6W.js → chunk-MFS52LTZ.js} +1 -1
  54. package/dist/bundle/{chunk-YJX4X564.js → chunk-NB2N6L3R.js} +6 -6
  55. package/dist/bundle/{chunk-GTYY6BIE.js → chunk-NDNTLUPS.js} +2 -2
  56. package/dist/bundle/{chunk-TOYPN2XX.js → chunk-NLEB26GA.js} +2 -2
  57. package/dist/bundle/{chunk-4TIC23D2.js → chunk-NM26XAS2.js} +1 -1
  58. package/dist/bundle/{chunk-7PVNJAQ2.js → chunk-NP3XLLN3.js} +3 -3
  59. package/dist/bundle/{chunk-LY26NW3I.js → chunk-NW7IMGRR.js} +1 -1
  60. package/dist/bundle/{chunk-NZIHPYY5.js → chunk-OWXTPXIQ.js} +11 -11
  61. package/dist/bundle/{chunk-BPBIBVFH.js → chunk-PDBBBUY7.js} +10 -10
  62. package/dist/bundle/{chunk-ZU732VCC.js → chunk-PH74B2VZ.js} +3 -3
  63. package/dist/bundle/{chunk-PJDO7AFZ.js → chunk-PJ7IQVOM.js} +2 -2
  64. package/dist/bundle/{chunk-CFT7UHF6.js → chunk-QTJUH3LS.js} +3 -3
  65. package/dist/bundle/{chunk-YE3J6DLY.js → chunk-QW36EOAM.js} +2 -2
  66. package/dist/bundle/{chunk-HLONHTSG.js → chunk-QWSRPXCJ.js} +4 -4
  67. package/dist/bundle/{chunk-LVDHWNJF.js → chunk-R2A3K7ZF.js} +5 -5
  68. package/dist/bundle/{chunk-SGOPYPVW.js → chunk-R2QRP7EJ.js} +9 -9
  69. package/dist/bundle/{chunk-35GRI4DI.js → chunk-RCS2SCX5.js} +5 -5
  70. package/dist/bundle/{chunk-CEO5HPRL.js → chunk-RJ633GFA.js} +2 -2
  71. package/dist/bundle/{chunk-N47CYWEM.js → chunk-SMHQA5J6.js} +13 -8
  72. package/dist/bundle/{chunk-YFLKH3NZ.js → chunk-SWMMR3FR.js} +2 -2
  73. package/dist/bundle/{chunk-P5KGFT7U.js → chunk-TRMIV3OA.js} +2 -2
  74. package/dist/bundle/{chunk-7NCG2SHR.js → chunk-VAGF723Z.js} +1 -1
  75. package/dist/bundle/{chunk-PWKXHDBQ.js → chunk-VCYFEWPD.js} +26 -26
  76. package/dist/bundle/{chunk-NKZ6V4JW.js → chunk-VHQNVG3J.js} +5 -5
  77. package/dist/bundle/{chunk-6KFA6HOM.js → chunk-VHT2WI4I.js} +19 -19
  78. package/dist/bundle/{chunk-QLZGLPJL.js → chunk-VYBOYBLX.js} +6 -6
  79. package/dist/bundle/{chunk-YJZBJ2TM.js → chunk-WUFCYDKB.js} +2 -2
  80. package/dist/bundle/{chunk-2YU3CXFD.js → chunk-XAZQTJXR.js} +40 -29
  81. package/dist/bundle/{chunk-I5EJHKNC.js → chunk-XEBFFKXO.js} +3 -3
  82. package/dist/bundle/{chunk-AH3SNVCV.js → chunk-XF5MFUEB.js} +15 -15
  83. package/dist/bundle/{chunk-VO4KOLQZ.js → chunk-ZBM4GEV2.js} +5 -4
  84. package/dist/bundle/{chunk-5ZVLM6YR.js → chunk-ZKXDI45R.js} +1 -1
  85. package/dist/bundle/command-contract-MXCBV3GJ.js +38 -0
  86. package/dist/bundle/drive.js +7 -7
  87. package/dist/bundle/{echarts-RFTK737T.js → echarts-LD3AI55P.js} +2 -2
  88. package/dist/bundle/{embed-5NAGJUMD.js → embed-FJKIIM43.js} +5 -5
  89. package/dist/bundle/{embedder-EWXLIGBY.js → embedder-NNQ5ZC25.js} +8 -8
  90. package/dist/bundle/{entry-YCPJ6H6U.js → entry-ZYSNPDSD.js} +6 -6
  91. package/dist/bundle/failure-M5HSCCJJ.js +37 -0
  92. package/dist/bundle/{first-run-LNAZDBB4.js → first-run-KA2UPZAU.js} +9 -9
  93. package/dist/bundle/first-screen-VQ3RXDMF.js +36 -0
  94. package/dist/bundle/{google-5FFKRHHC.js → google-ZYDFTHLN.js} +9 -9
  95. package/dist/bundle/google-api-2GT5PAW2.js +82 -0
  96. package/dist/bundle/{identity-53ZMPL2O.js → identity-R5OKB5O5.js} +2 -2
  97. package/dist/bundle/{instructions-FHNL7CMW.js → instructions-RZMSW3OC.js} +3 -1
  98. package/dist/bundle/{login-VXXZZR6G.js → login-JU6NKW5P.js} +64 -64
  99. package/dist/bundle/mcp-JOQMFGBC.js +95 -0
  100. package/dist/bundle/{mcp-IXFC2VVR.js → mcp-OQBZXELQ.js} +2 -2
  101. package/dist/bundle/{mcp-F4XZO76F.js → mcp-Z362OMZG.js} +77 -83
  102. package/dist/bundle/{node-ZMCACJVS.js → node-ZRLYQL7J.js} +2 -2
  103. package/dist/bundle/{node-sqlite-QJQ5S7KS.js → node-sqlite-TXPSRROT.js} +4 -4
  104. package/dist/bundle/{oauth-TZFDPAFE.js → oauth-NAIBKERJ.js} +6 -6
  105. package/dist/bundle/{open-IYM25QTL.js → open-3P5EPXPV.js} +3 -3
  106. package/dist/bundle/{process-ZPTLNVQS.js → process-LL77573L.js} +1 -1
  107. package/dist/bundle/{program-YX7DZMPR.js → program-PA2J6OFM.js} +129 -151
  108. package/dist/bundle/{prompt-TGWTVIEK.js → prompt-3TX2SWOY.js} +4 -4
  109. package/dist/bundle/{reasons-Q5LOQESQ.js → reasons-GF2TYGX6.js} +3 -3
  110. package/dist/bundle/{recognize-AGPMWKIY.js → recognize-IFXOJHEA.js} +5 -5
  111. package/dist/bundle/{remote-QV7QSLAK.js → remote-663M42Y5.js} +6 -6
  112. package/dist/bundle/{rerank-HZKJJCS4.js → rerank-OT2F2DBV.js} +6 -6
  113. package/dist/bundle/{serve-NRJQOVT4.js → serve-PDNNI6O6.js} +8 -8
  114. package/dist/bundle/server-BFOEPMR7.js +56 -0
  115. package/dist/bundle/server-K566PJ7H.js +69 -0
  116. package/dist/bundle/{services-NZQWVMOE.js → services-5MCTECBU.js} +28 -28
  117. package/dist/bundle/{sqlite-runtime-6MXHTYYU.js → sqlite-runtime-BF3KDM7W.js} +4 -4
  118. package/dist/bundle/{state-IF2FLTSY.js → state-SZX65E74.js} +5 -5
  119. package/dist/bundle/{store-HVIBXOXS.js → store-TCWNLA3V.js} +14 -14
  120. package/dist/bundle/{store-HBD54IRL.js → store-UKPGGAPW.js} +16 -16
  121. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +57 -0
  122. package/dist/bundle/tokens-DFCFRF7I.js +103 -0
  123. package/dist/commands/mcp.d.ts.map +1 -1
  124. package/dist/commands/mcp.js +5 -9
  125. package/dist/commands/mcp.js.map +1 -1
  126. package/dist/contract-overrides.d.ts.map +1 -1
  127. package/dist/contract-overrides.js +13 -32
  128. package/dist/contract-overrides.js.map +1 -1
  129. package/dist/mcp.d.ts +1 -8
  130. package/dist/mcp.d.ts.map +1 -1
  131. package/dist/mcp.js +1 -8
  132. package/dist/mcp.js.map +1 -1
  133. package/dist/state.d.ts +8 -0
  134. package/dist/state.d.ts.map +1 -1
  135. package/dist/state.js +7 -0
  136. package/dist/state.js.map +1 -1
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +2 -2
  140. package/dist/bundle/command-contract-HX35D7KV.js +0 -38
  141. package/dist/bundle/failure-XBWHHBEW.js +0 -37
  142. package/dist/bundle/first-screen-P5NNFJD7.js +0 -36
  143. package/dist/bundle/google-api-TJCFOOAP.js +0 -82
  144. package/dist/bundle/mcp-2CJCJXSW.js +0 -95
  145. package/dist/bundle/server-R4JUHFSW.js +0 -56
  146. package/dist/bundle/store-maintenance-command-U3F4RGJB.js +0 -57
  147. package/dist/bundle/tokens-5D5YUA2Q.js +0 -103
  148. /package/dist/bundle/{chunk-IVQ6342B.js → chunk-O5EHUB2V.js} +0 -0
  149. /package/dist/bundle/{chunk-X5DFDGWS.js → chunk-Q2Z3VCM4.js} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  MAX_TEXT_CHARS
5
- } from "./chunk-MWUITL6N.js";
5
+ } from "./chunk-5TC3NCAF.js";
6
6
  import {
7
7
  COUNTER_FIELDS,
8
8
  DOCUMENT_ACCOUNT_PROVIDERS,
@@ -34,7 +34,7 @@ import {
34
34
  rankingWords,
35
35
  useStoredProviders,
36
36
  validCounter
37
- } from "./chunk-WZUJKUBK.js";
37
+ } from "./chunk-AOOD3RMK.js";
38
38
  import {
39
39
  FACT_STATUSES,
40
40
  FACT_TYPES,
@@ -51,7 +51,7 @@ import {
51
51
  WORK_TASK_TYPES,
52
52
  linkKind,
53
53
  matches
54
- } from "./chunk-YJX4X564.js";
54
+ } from "./chunk-NB2N6L3R.js";
55
55
  import {
56
56
  CHAT_MESSAGES_READ,
57
57
  MEETING_FINDINGS_KIND,
@@ -79,7 +79,7 @@ import {
79
79
  validateMeetingPreparationContext,
80
80
  validateMeetingRelatedHistory,
81
81
  validateMeetingSeriesHistory
82
- } from "./chunk-3V6NPZY7.js";
82
+ } from "./chunk-BHE7ZY2N.js";
83
83
  import {
84
84
  QUERY_LIMITS,
85
85
  dateRange,
@@ -90,7 +90,7 @@ import {
90
90
  validateQuery,
91
91
  walkQuery,
92
92
  zonedMoment
93
- } from "./chunk-SGOPYPVW.js";
93
+ } from "./chunk-R2QRP7EJ.js";
94
94
  import {
95
95
  DEFAULT_STEMMERS,
96
96
  DEFAULT_STEMMERS_VERSION,
@@ -103,24 +103,24 @@ import {
103
103
  fold,
104
104
  normalize,
105
105
  parseStemmers
106
- } from "./chunk-2FTZBZOB.js";
106
+ } from "./chunk-BQUPOB5H.js";
107
107
  import {
108
108
  DEFAULT_TASK_CATEGORIES,
109
109
  sharedConfigPath,
110
110
  storedTaskCategories,
111
111
  taskCategoriesReader
112
- } from "./chunk-WQMVSQPP.js";
112
+ } from "./chunk-GQW4GRYR.js";
113
113
  import {
114
114
  storePath
115
- } from "./chunk-P5KGFT7U.js";
115
+ } from "./chunk-TRMIV3OA.js";
116
116
  import {
117
117
  PRAGMAS,
118
118
  quietSqliteWarning,
119
119
  storeCapable
120
- } from "./chunk-QLZGLPJL.js";
120
+ } from "./chunk-VYBOYBLX.js";
121
121
  import {
122
122
  singleLine
123
- } from "./chunk-6KFA6HOM.js";
123
+ } from "./chunk-VHT2WI4I.js";
124
124
  import {
125
125
  CliError,
126
126
  array,
@@ -138,7 +138,7 @@ import {
138
138
  safeParse,
139
139
  strictObject,
140
140
  string
141
- } from "./chunk-GKHM6I64.js";
141
+ } from "./chunk-BJ3JRO34.js";
142
142
  import {
143
143
  resolveFrom
144
144
  } from "./chunk-Y5E2WNWB.js";
@@ -166,12 +166,12 @@ import {
166
166
  sql,
167
167
  sqliteTable,
168
168
  text
169
- } from "./chunk-LY26NW3I.js";
169
+ } from "./chunk-NW7IMGRR.js";
170
170
  import {
171
171
  __name
172
172
  } from "./chunk-ZVVMGPBJ.js";
173
173
 
174
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/account-store.js
174
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/account-store.js
175
175
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
176
176
  const methods = whole;
177
177
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -299,7 +299,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
299
299
  };
300
300
  }, "bindAccount");
301
301
 
302
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/query.js
302
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/query.js
303
303
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
304
304
  var inSource = /* @__PURE__ */ __name((source2, provider) => source2 === "all" || source2 === "bots" && isBotProvider(provider) || source2 === "personal" && !isBotProvider(provider) || source2 === provider || providerNamed(source2)?.name === provider || isKind(source2) && kindOf(provider) === source2, "inSource");
305
305
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -322,7 +322,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
322
322
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
323
323
  }, "sourceOf");
324
324
 
325
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/account-list.js
325
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/account-list.js
326
326
  var ACCOUNT_GROUPS = "accountGroups";
327
327
  var ACCOUNT_GROUPS_SETTING = "account_groups";
328
328
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -509,7 +509,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
509
509
  return { accounts: [...chosen.values()], skipped };
510
510
  }, "fitting");
511
511
 
512
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
512
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
513
513
  var IndexBuilderOn = class {
514
514
  static {
515
515
  __name(this, "IndexBuilderOn");
@@ -704,7 +704,7 @@ function alias(table, alias2) {
704
704
  }
705
705
  __name(alias, "alias");
706
706
 
707
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
707
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
708
708
  var ENTITY_TABLES = {
709
709
  account: "accounts",
710
710
  attachment: "attachments",
@@ -744,7 +744,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
744
744
  return { table, pointer, type, count, known: known2 };
745
745
  }).filter(({ count }) => count > 0)), "orphanPointers");
746
746
 
747
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
747
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
748
748
  var canonicalTags = sqliteTable("canonical_tags", {
749
749
  id: integer("id").primaryKey(),
750
750
  name: text("name").notNull().unique(),
@@ -753,7 +753,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
753
753
  updatedAt: integer("updated_at").notNull()
754
754
  });
755
755
 
756
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
756
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
757
757
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
758
758
  sourceKey: text("source_key").notNull(),
759
759
  collection: text("collection").notNull(),
@@ -763,13 +763,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
763
763
  createdAt: integer("created_at").notNull()
764
764
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
765
765
 
766
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
766
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
767
767
  var documentIndexPending = sqliteTable("document_index_pending", {
768
768
  id: integer("id").notNull(),
769
769
  indexableType: text("indexable_type").notNull()
770
770
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
771
771
 
772
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
772
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
773
773
  var tagRedirects = sqliteTable("tag_redirects", {
774
774
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
775
775
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -795,7 +795,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
795
795
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
796
796
  ]);
797
797
 
798
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
798
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
799
799
  var accounts = sqliteTable("accounts", {
800
800
  id: integer("id").primaryKey(),
801
801
  provider: text("provider").notNull(),
@@ -2264,7 +2264,7 @@ var storeSettings = sqliteTable("store_settings", {
2264
2264
  at: integer("at").notNull()
2265
2265
  });
2266
2266
 
2267
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2267
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2268
2268
  var ARMS = [
2269
2269
  [
2270
2270
  "message",
@@ -2391,7 +2391,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2391
2391
  return recomputed;
2392
2392
  }, "drainInvolvementQueue");
2393
2393
 
2394
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2394
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2395
2395
  import { domainToUnicode } from "node:url";
2396
2396
 
2397
2397
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12413,7 +12413,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12413
12413
  }, "oa");
12414
12414
  var na = { parse: O, get: aa, isValid: oa };
12415
12415
 
12416
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12416
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12417
12417
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12418
12418
  var ID = /^[\w-]{10,}$/;
12419
12419
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12454,7 +12454,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
12454
12454
  return { url, documentId: googleDocumentId(url) };
12455
12455
  }), "googleDocumentLinks");
12456
12456
 
12457
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12457
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12458
12458
  var PHONE_PLANS = [
12459
12459
  {
12460
12460
  country: "us",
@@ -12834,7 +12834,7 @@ var PHONE_PLANS = [
12834
12834
  }
12835
12835
  ];
12836
12836
 
12837
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/phones.js
12837
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/phones.js
12838
12838
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
12839
12839
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
12840
12840
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -12875,7 +12875,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
12875
12875
  return void 0;
12876
12876
  }, "nationalPhone");
12877
12877
 
12878
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/places.js
12878
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/places.js
12879
12879
  var BEFORE = [
12880
12880
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
12881
12881
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13135,7 +13135,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
13135
13135
  return found2.sort((a, b) => a.start - b.start);
13136
13136
  }, "findPlaces");
13137
13137
 
13138
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13138
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13139
13139
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13140
13140
  var MENTION_VERSIONS = {
13141
13141
  phone: 1,
@@ -13325,7 +13325,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13325
13325
  };
13326
13326
  }, "typedPhone");
13327
13327
 
13328
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13328
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13329
13329
  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";
13330
13330
  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";
13331
13331
  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";
@@ -13333,7 +13333,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13333
13333
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13334
13334
  var NAME_WORDS = WORDS.split(" ");
13335
13335
 
13336
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13336
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13337
13337
  var LATIN_TO_CYRILLIC = {
13338
13338
  shch: "\u0449",
13339
13339
  sch: "\u0449",
@@ -13541,7 +13541,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
13541
13541
  return found2;
13542
13542
  }, "findUnknownNames");
13543
13543
 
13544
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13544
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13545
13545
  var NOT_FILES = /* @__PURE__ */ new Set([
13546
13546
  "webpage",
13547
13547
  "share",
@@ -13573,7 +13573,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
13573
13573
  });
13574
13574
  }, "matchDownloads");
13575
13575
 
13576
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13576
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13577
13577
  var QUERY_VERSION = 1;
13578
13578
  var QUERY_LIMITS2 = {
13579
13579
  ...QUERY_LIMITS,
@@ -13604,7 +13604,7 @@ function exhausted(budget) {
13604
13604
  }
13605
13605
  __name(exhausted, "exhausted");
13606
13606
 
13607
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13607
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13608
13608
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
13609
13609
  var literal2 = /* @__PURE__ */ __name((c) => ({
13610
13610
  kind: "char",
@@ -14004,7 +14004,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14004
14004
  return out;
14005
14005
  }, "foldRegex");
14006
14006
 
14007
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14007
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14008
14008
  var PRESET_VERSION = 1;
14009
14009
  var PRESETS = {
14010
14010
  password: {
@@ -14058,7 +14058,7 @@ var PRESETS = {
14058
14058
  }
14059
14059
  };
14060
14060
 
14061
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14061
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14062
14062
  var FIELD_VERSION = 2;
14063
14063
  var UNITS = {
14064
14064
  "": 1,
@@ -14558,12 +14558,12 @@ var QUERY_OPERATORS = [
14558
14558
  { name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
14559
14559
  ];
14560
14560
 
14561
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14561
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14562
14562
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
14563
14563
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
14564
14564
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
14565
14565
 
14566
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14566
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14567
14567
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
14568
14568
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
14569
14569
  var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
@@ -14587,7 +14587,7 @@ var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
14587
14587
  };
14588
14588
  }, "linkMatch");
14589
14589
 
14590
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14590
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14591
14591
  var SETTING = "phoneCountries";
14592
14592
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
14593
14593
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -14618,7 +14618,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
14618
14618
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
14619
14619
  }, "valueMatch");
14620
14620
 
14621
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14621
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14622
14622
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
14623
14623
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
14624
14624
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -14646,7 +14646,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
14646
14646
  return 2 * intersection2 / (aa2.size + bb.size);
14647
14647
  }, "vocabularySimilarity");
14648
14648
 
14649
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14649
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14650
14650
  import { createHash } from "node:crypto";
14651
14651
  var folded2 = /* @__PURE__ */ __name((name) => {
14652
14652
  try {
@@ -14712,7 +14712,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
14712
14712
  });
14713
14713
  }, "guardTagCreation");
14714
14714
 
14715
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14715
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14716
14716
  var invalid = /* @__PURE__ */ __name((message2) => {
14717
14717
  throw new CliError("validation_error", message2);
14718
14718
  }, "invalid");
@@ -14789,7 +14789,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
14789
14789
  };
14790
14790
  }, "createTagRedirectIndex");
14791
14791
 
14792
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14792
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14793
14793
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
14794
14794
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
14795
14795
  if (!row2)
@@ -14817,7 +14817,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
14817
14817
  return snapshot2;
14818
14818
  }, "tagRedirectSnapshot");
14819
14819
 
14820
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14820
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14821
14821
  import { createHash as createHash2 } from "node:crypto";
14822
14822
  var TASK_KEY_PREFIXES = {
14823
14823
  question: "Q",
@@ -14835,6 +14835,7 @@ var typedKey = /* @__PURE__ */ __name((database, kind3) => {
14835
14835
  return key2;
14836
14836
  }
14837
14837
  }, "typedKey");
14838
+ var INBOX_KEY_LENGTH = 10;
14838
14839
  var inboxKey = /* @__PURE__ */ __name((account) => `IN${createHash2("sha256").update(account).digest("hex").slice(0, 8).toUpperCase()}`, "inboxKey");
14839
14840
  var linkInbox = /* @__PURE__ */ __name((database, account, accountId) => {
14840
14841
  database.prepare("UPDATE projects SET account_id = ? WHERE key = ? AND account_id IS NULL").run(accountId, inboxKey(account));
@@ -14844,7 +14845,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
14844
14845
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
14845
14846
  }, "taskAccountOf");
14846
14847
 
14847
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14848
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14848
14849
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
14849
14850
  var REFERABLE = {
14850
14851
  note: { tombstone: true },
@@ -15002,7 +15003,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
15002
15003
  }, "taskIdOf");
15003
15004
  var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
15004
15005
 
15005
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15006
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15006
15007
  var toMs = /* @__PURE__ */ __name((iso10) => {
15007
15008
  if (iso10 === null || iso10 === void 0)
15008
15009
  return null;
@@ -15016,7 +15017,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15016
15017
  var DELIVERY = { delivered: 1, read: 2 };
15017
15018
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15018
15019
 
15019
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15020
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15020
15021
  var TAG_KINDS = ["tag", "topic"];
15021
15022
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15022
15023
  var TAG_TYPE = {
@@ -15207,7 +15208,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15207
15208
  return result;
15208
15209
  }, "tagsOf");
15209
15210
 
15210
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15211
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15211
15212
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15212
15213
  var SPEECH = speech("att");
15213
15214
  var quoted = /* @__PURE__ */ __name((value) => `"${value.replaceAll('"', '""')}"`, "quoted");
@@ -15560,7 +15561,7 @@ var FIELD_COMPILERS = {
15560
15561
  subject
15561
15562
  };
15562
15563
 
15563
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15564
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15564
15565
  var placeOf = /* @__PURE__ */ __name((database) => {
15565
15566
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
15566
15567
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -15576,7 +15577,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
15576
15577
  };
15577
15578
  }, "placeOf");
15578
15579
 
15579
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15580
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15580
15581
  var DRAIN_ON_WRITE = 500;
15581
15582
  var METHOD = "rules";
15582
15583
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -15739,7 +15740,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
15739
15740
  return queued.length;
15740
15741
  }, "drainMentions");
15741
15742
 
15742
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15743
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15743
15744
  var indexRow = /* @__PURE__ */ __name((database, name) => {
15744
15745
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
15745
15746
  if (!exists2)
@@ -15747,7 +15748,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
15747
15748
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
15748
15749
  }, "indexRow");
15749
15750
 
15750
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15751
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15751
15752
  var INDEX = "message_stems";
15752
15753
  var SETTING2 = "searchStemmers";
15753
15754
  var DRAIN_ON_WRITE2 = 500;
@@ -15869,7 +15870,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
15869
15870
  };
15870
15871
  }, "stemmerCache");
15871
15872
 
15872
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15873
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15873
15874
  var connections = /* @__PURE__ */ new WeakMap();
15874
15875
  var connectionOf = /* @__PURE__ */ __name((database) => {
15875
15876
  let connection = connections.get(database);
@@ -15928,7 +15929,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
15928
15929
  }
15929
15930
  }, "read");
15930
15931
 
15931
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15932
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15932
15933
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
15933
15934
  coalesce(CASE k.chunkable_type
15934
15935
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16070,7 +16071,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16070
16071
  }, "dropUnusedVectors");
16071
16072
  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");
16072
16073
 
16073
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16074
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16074
16075
  var accountPk = /* @__PURE__ */ __name(({ orm, now: now2 }, { provider, account, scope: scope3 }, name = null) => Number(orm.insert(accounts).values({ provider, externalId: account, name, scope: scope3 ?? "personal", createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
16075
16076
  target: [accounts.provider, accounts.externalId],
16076
16077
  set: {
@@ -16175,7 +16176,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16175
16176
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16176
16177
  }, "dropOrphanPeople");
16177
16178
 
16178
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
16179
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
16179
16180
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
16180
16181
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
16181
16182
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -16194,7 +16195,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
16194
16195
  }
16195
16196
  }, "resolvePersonLinks");
16196
16197
 
16197
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
16198
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
16198
16199
  var flag = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
16199
16200
  var prepare = /* @__PURE__ */ __name((orm) => ({
16200
16201
  find: orm.select({
@@ -16413,7 +16414,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
16413
16414
  return saved.pk;
16414
16415
  }, "meetingIdentityPk");
16415
16416
 
16416
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16417
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16417
16418
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
16418
16419
  const literal4 = escaped2 ?? plain2 ?? "";
16419
16420
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -16478,7 +16479,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
16478
16479
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
16479
16480
  var bound2 = /* @__PURE__ */ __name(({ sql: text5, params }) => sql.join(text5.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
16480
16481
 
16481
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
16482
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
16482
16483
  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");
16483
16484
  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");
16484
16485
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -16750,7 +16751,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
16750
16751
  }
16751
16752
  }, "replaceAutoTags");
16752
16753
 
16753
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16754
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16754
16755
  import { createHash as createHash3 } from "node:crypto";
16755
16756
  var CHUNK_CHARS = 1200;
16756
16757
  var CHUNK_OVERLAP = 150;
@@ -16855,7 +16856,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16855
16856
  return chunks2;
16856
16857
  }, "cutChunks");
16857
16858
 
16858
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
16859
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
16859
16860
  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");
16860
16861
  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;
16861
16862
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -16936,7 +16937,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
16936
16937
  return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
16937
16938
  }, "mailCore");
16938
16939
 
16939
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
16940
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
16940
16941
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
16941
16942
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
16942
16943
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17026,7 +17027,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17026
17027
  });
17027
17028
  }, "linkMeeting");
17028
17029
 
17029
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/task-signature.js
17030
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/task-signature.js
17030
17031
  var DAY = 864e5;
17031
17032
  var CURRENCY = [
17032
17033
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -17143,7 +17144,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
17143
17144
  return best?.day ?? null;
17144
17145
  }, "dueDayOf");
17145
17146
 
17146
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17147
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17147
17148
  var DAY2 = 864e5;
17148
17149
  var STOP_WORDS = new Set([
17149
17150
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -17298,7 +17299,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
17298
17299
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
17299
17300
  })).sort((a, b) => b.score - a.score), "rankCandidates");
17300
17301
 
17301
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17302
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17302
17303
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
17303
17304
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
17304
17305
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -17569,7 +17570,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
17569
17570
  };
17570
17571
  }, "readiness");
17571
17572
 
17572
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17573
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17573
17574
  var DOCUMENT_PICTURE = "document_picture";
17574
17575
  var SCAN_PAGE2 = 5e3;
17575
17576
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -17632,7 +17633,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
17632
17633
  }, "nearestPictures")
17633
17634
  }), "documentPicturesOver");
17634
17635
 
17635
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17636
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17636
17637
  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), ''))";
17637
17638
  var UNSEARCHED_EVENT_TYPES = [
17638
17639
  "working-location",
@@ -17814,7 +17815,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17814
17815
  return true;
17815
17816
  }, "resetNoteIndex");
17816
17817
 
17817
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17818
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17818
17819
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
17819
17820
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
17820
17821
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -17924,7 +17925,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor) => {
17924
17925
  return emails3 + threads;
17925
17926
  }, "drainEmailIndex");
17926
17927
 
17927
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
17928
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
17928
17929
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
17929
17930
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
17930
17931
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -17948,7 +17949,7 @@ var setEmailFlags = /* @__PURE__ */ __name((database, accountId, flags, now2) =>
17948
17949
  return changed;
17949
17950
  }, "setEmailFlags");
17950
17951
 
17951
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
17952
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
17952
17953
  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");
17953
17954
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
17954
17955
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -18015,7 +18016,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
18015
18016
  }
18016
18017
  }), "mailRulesOver");
18017
18018
 
18018
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
18019
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
18019
18020
  var FOLDED = [
18020
18021
  { table: "tasks", column: "title" },
18021
18022
  { table: "tasks", column: "close_reason" },
@@ -18047,7 +18048,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
18047
18048
  return filled2;
18048
18049
  }, "fillFolded");
18049
18050
 
18050
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18051
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18051
18052
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
18052
18053
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
18053
18054
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -18055,7 +18056,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
18055
18056
  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);
18056
18057
  }, "reviewLink");
18057
18058
 
18058
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18059
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18059
18060
  function checkMeetingCancelled(signal) {
18060
18061
  if (!signal?.aborted)
18061
18062
  return;
@@ -18066,7 +18067,7 @@ function checkMeetingCancelled(signal) {
18066
18067
  }
18067
18068
  __name(checkMeetingCancelled, "checkMeetingCancelled");
18068
18069
 
18069
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18070
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18070
18071
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
18071
18072
  id: Number(row2.id),
18072
18073
  accountId: Number(row2.account_id),
@@ -18116,7 +18117,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
18116
18117
  createdAt: Number(row2.created_at)
18117
18118
  }), "transcriptRowOf");
18118
18119
 
18119
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18120
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18120
18121
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
18121
18122
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
18122
18123
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -18283,7 +18284,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
18283
18284
  }
18284
18285
  }), "meetingReadsOver");
18285
18286
 
18286
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18287
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18287
18288
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18288
18289
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
18289
18290
  const params = [input.accountId];
@@ -18326,7 +18327,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18326
18327
  return { clauses, params };
18327
18328
  }, "meetingSelectionSql");
18328
18329
 
18329
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18330
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18330
18331
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18331
18332
  async meetingChatLines(input) {
18332
18333
  checkMeetingCancelled(input.signal);
@@ -18354,7 +18355,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18354
18355
  }
18355
18356
  }), "meetingChatLinesOver");
18356
18357
 
18357
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18358
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18358
18359
  var MESSAGE_FIELDS = {
18359
18360
  pk: messages.id,
18360
18361
  nativeId: messages.externalId,
@@ -18520,7 +18521,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
18520
18521
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
18521
18522
  }), "chatActivity");
18522
18523
 
18523
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18524
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18524
18525
  var HIT_FIELDS = {
18525
18526
  ...MESSAGE_FIELDS,
18526
18527
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -18619,7 +18620,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
18619
18620
  };
18620
18621
  }, "directReplies");
18621
18622
 
18622
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18623
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18623
18624
  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");
18624
18625
  var required = /* @__PURE__ */ __name((context, ref3) => {
18625
18626
  const found2 = identityRow(context, ref3);
@@ -18750,7 +18751,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
18750
18751
  }, "mentioning");
18751
18752
  var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
18752
18753
 
18753
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18754
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18754
18755
  var missing2 = /* @__PURE__ */ __name(() => {
18755
18756
  throw new CliError("not_found", "Meeting, participant or selected target not found");
18756
18757
  }, "missing");
@@ -18872,7 +18873,7 @@ function meetingContextLinksOver(context) {
18872
18873
  }
18873
18874
  __name(meetingContextLinksOver, "meetingContextLinksOver");
18874
18875
 
18875
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
18876
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
18876
18877
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
18877
18878
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
18878
18879
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -18901,7 +18902,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
18901
18902
  return row2 ? summaryText(summaryOf(row2)) : null;
18902
18903
  }, "indexedText");
18903
18904
 
18904
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
18905
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
18905
18906
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
18906
18907
  var meetingCurrentIndexRows = `
18907
18908
  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
@@ -18932,7 +18933,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
18932
18933
  }, "invalidateMeetingStems");
18933
18934
  var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
18934
18935
 
18935
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
18936
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
18936
18937
  function meetingHitIndexOver({ database, now: now2 }) {
18937
18938
  return {
18938
18939
  async indexSearch(original) {
@@ -19000,10 +19001,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
19000
19001
  }
19001
19002
  __name(meetingHitIndexOver, "meetingHitIndexOver");
19002
19003
 
19003
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19004
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19004
19005
  import { createHash as createHash4 } from "node:crypto";
19005
19006
 
19006
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19007
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19007
19008
  var trigrams = /* @__PURE__ */ __name((term) => {
19008
19009
  const padded = ` ${term} `;
19009
19010
  const pieces = /* @__PURE__ */ new Set();
@@ -19012,7 +19013,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
19012
19013
  return [...pieces];
19013
19014
  }, "trigrams");
19014
19015
 
19015
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/correct.js
19016
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/correct.js
19016
19017
  var SHORTEST_CORRECTION = 3;
19017
19018
  var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
19018
19019
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -19059,7 +19060,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
19059
19060
  return corrections;
19060
19061
  }, "correctWords");
19061
19062
 
19062
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/garbled.js
19063
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/garbled.js
19063
19064
  var SHORTEST_GARBLED = 4;
19064
19065
  var MOST_WIDENED = 64;
19065
19066
  var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
@@ -19151,7 +19152,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
19151
19152
  return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word) => word.term));
19152
19153
  }, "widenWords");
19153
19154
 
19154
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19155
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19155
19156
  import { readFileSync } from "node:fs";
19156
19157
  var loaded;
19157
19158
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -19210,7 +19211,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
19210
19211
  return false;
19211
19212
  }, "knownRussianWord");
19212
19213
 
19213
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19214
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19214
19215
  var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
19215
19216
  var MOST_WORDS = 128;
19216
19217
  var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
@@ -19437,7 +19438,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
19437
19438
  return check3(tree);
19438
19439
  }, "matchMeetingText");
19439
19440
 
19440
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19441
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19441
19442
  var fail3 = /* @__PURE__ */ __name((message2) => {
19442
19443
  throw new CliError("validation_error", message2);
19443
19444
  }, "fail");
@@ -19614,7 +19615,7 @@ function meetingHitSearchOver({ database }) {
19614
19615
  }
19615
19616
  __name(meetingHitSearchOver, "meetingHitSearchOver");
19616
19617
 
19617
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19618
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19618
19619
  import { createHash as createHash5 } from "node:crypto";
19619
19620
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
19620
19621
  if (value === void 0)
@@ -19704,7 +19705,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
19704
19705
  }
19705
19706
  }), "meetingParticipantSearchOver");
19706
19707
 
19707
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19708
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19708
19709
  var preparationQueries = {
19709
19710
  participants: {
19710
19711
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -19754,7 +19755,7 @@ var preparationQueries = {
19754
19755
  }
19755
19756
  };
19756
19757
 
19757
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19758
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19758
19759
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19759
19760
  async preparationContext(original) {
19760
19761
  const input = validateMeetingPreparationContext(original);
@@ -19795,7 +19796,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19795
19796
  }
19796
19797
  }), "meetingPreparationContextOver");
19797
19798
 
19798
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
19799
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
19799
19800
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
19800
19801
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
19801
19802
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -19809,7 +19810,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
19809
19810
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
19810
19811
  )`, "preparationSubjects");
19811
19812
 
19812
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
19813
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
19813
19814
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
19814
19815
  async preparationKnowledge(original) {
19815
19816
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -19854,7 +19855,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
19854
19855
  }
19855
19856
  }), "meetingPreparationKnowledgeOver");
19856
19857
 
19857
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
19858
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
19858
19859
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
19859
19860
  async preparationNotes(original) {
19860
19861
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -19907,7 +19908,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
19907
19908
  }
19908
19909
  }), "meetingPreparationNotesOver");
19909
19910
 
19910
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
19911
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
19911
19912
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
19912
19913
  async relatedHistory(original) {
19913
19914
  const input = validateMeetingRelatedHistory(original);
@@ -19978,7 +19979,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
19978
19979
  }
19979
19980
  }), "meetingRelatedHistoryOver");
19980
19981
 
19981
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
19982
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
19982
19983
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
19983
19984
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
19984
19985
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -20059,7 +20060,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
20059
20060
  }
20060
20061
  }), "meetingReviewOver");
20061
20062
 
20062
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20063
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20063
20064
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
20064
20065
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
20065
20066
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -20113,7 +20114,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20113
20114
  }
20114
20115
  }), "meetingSeriesHistoryOver");
20115
20116
 
20116
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20117
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20117
20118
  var MOST_ROWS = 5e5;
20118
20119
  var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20119
20120
  async meetingStats(input) {
@@ -20160,7 +20161,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20160
20161
  }
20161
20162
  }), "meetingStatsOver");
20162
20163
 
20163
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20164
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20164
20165
  var CURSOR_KEY = "meetings";
20165
20166
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
20166
20167
  id: Number(row2.id),
@@ -20712,7 +20713,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
20712
20713
  };
20713
20714
  }, "meetingStoreOver");
20714
20715
 
20715
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20716
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20716
20717
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
20717
20718
  id: `email:${place.emailId}`,
20718
20719
  chatId: place.threadExternalId,
@@ -21280,7 +21281,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor = stem
21280
21281
  }
21281
21282
  }), "mailStoreOver");
21282
21283
 
21283
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21284
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21284
21285
  import { readFileSync as readFileSync2 } from "node:fs";
21285
21286
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
21286
21287
  var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
@@ -21370,7 +21371,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
21370
21371
  }, "knownWord");
21371
21372
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
21372
21373
 
21373
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21374
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21374
21375
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
21375
21376
  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");
21376
21377
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -21456,7 +21457,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
21456
21457
  return found2;
21457
21458
  }, "spokenTranscripts");
21458
21459
 
21459
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21460
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21460
21461
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
21461
21462
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
21462
21463
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -21503,7 +21504,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
21503
21504
  });
21504
21505
  }, "placeHits");
21505
21506
 
21506
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21507
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21507
21508
  var MESSAGES2 = {
21508
21509
  rows: "messages",
21509
21510
  threads: "chats",
@@ -21965,7 +21966,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
21965
21966
  };
21966
21967
  }, "runQuery");
21967
21968
 
21968
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
21969
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
21969
21970
  function invalidMetadata() {
21970
21971
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
21971
21972
  }
@@ -22067,7 +22068,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
22067
22068
  };
22068
22069
  }), "counterTargets");
22069
22070
 
22070
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22071
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22071
22072
  var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
22072
22073
  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,
22073
22074
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -22186,7 +22187,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
22186
22187
  }));
22187
22188
  }, "attachmentViews");
22188
22189
 
22189
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22190
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22190
22191
  var transcript = /* @__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");
22191
22192
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
22192
22193
  const { orm, database, now: now2 } = context;
@@ -22224,7 +22225,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
22224
22225
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
22225
22226
  }, "intoVoiceAttachment");
22226
22227
 
22227
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22228
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22228
22229
  var FIELDS = [
22229
22230
  "threadExternalId",
22230
22231
  "senderIdentityId",
@@ -22531,7 +22532,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
22531
22532
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
22532
22533
  }, "writeDerivedReactions");
22533
22534
 
22534
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
22535
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
22535
22536
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
22536
22537
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
22537
22538
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -22557,7 +22558,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
22557
22558
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
22558
22559
  }, "release");
22559
22560
 
22560
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/keys.js
22561
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/keys.js
22561
22562
  var keysOver = /* @__PURE__ */ __name((context) => {
22562
22563
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
22563
22564
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -22578,7 +22579,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
22578
22579
  };
22579
22580
  }, "keysOver");
22580
22581
 
22581
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22582
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22582
22583
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
22583
22584
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
22584
22585
  if (!row2)
@@ -22613,7 +22614,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
22613
22614
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
22614
22615
  }, "saveProfile");
22615
22616
 
22616
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22617
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22617
22618
  var BOT_KINDS = ["agent", "script", "integration"];
22618
22619
  var ownerPerson = /* @__PURE__ */ __name((database) => {
22619
22620
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -22649,7 +22650,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
22649
22650
  return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
22650
22651
  }, "originOfActor");
22651
22652
 
22652
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22653
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22653
22654
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
22654
22655
  const owner = ownerPerson(context.database).id;
22655
22656
  const strays = context.database.prepare("SELECT DISTINCT l.person_id AS person FROM identity_links l JOIN identities i ON i.id = l.identity_id JOIN accounts a ON a.provider = i.provider AND a.external_id = i.external_id WHERE l.person_id <> ?").all(owner);
@@ -22670,7 +22671,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
22670
22671
  return personOf(context, ref3);
22671
22672
  }, "linkToOwner");
22672
22673
 
22673
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22674
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22674
22675
  var PROVIDERS_SETTING = "providers";
22675
22676
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
22676
22677
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -22705,7 +22706,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
22705
22706
  });
22706
22707
  }, "registerProvider");
22707
22708
 
22708
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22709
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22709
22710
  var DAY3 = 864e5;
22710
22711
  var RECENTLY_CLOSED_MS = 14 * DAY3;
22711
22712
  var TEXT_LIMIT = 20;
@@ -22904,7 +22905,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
22904
22905
  };
22905
22906
  }, "taskSimilarityOver");
22906
22907
 
22907
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
22908
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
22908
22909
  var SETTING3 = "taskCategories";
22909
22910
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
22910
22911
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -22923,7 +22924,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
22923
22924
  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);
22924
22925
  }, "saveTaskCategories");
22925
22926
 
22926
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
22927
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
22927
22928
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
22928
22929
  var ALLOWED = "taskAgentClose";
22929
22930
  var MIN = "taskAgentCloseMin";
@@ -22979,7 +22980,7 @@ var SUGGESTION_COLUMNS = [
22979
22980
  ];
22980
22981
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
22981
22982
 
22982
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/ulid.js
22983
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/ulid.js
22983
22984
  import { randomBytes } from "node:crypto";
22984
22985
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
22985
22986
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -22992,7 +22993,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
22992
22993
  return time3 + random;
22993
22994
  }, "ulid");
22994
22995
 
22995
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
22996
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
22996
22997
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
22997
22998
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
22998
22999
  if (!meta && !sections?.length)
@@ -23013,7 +23014,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
23013
23014
  return typeof language === "string" && language !== "" ? language : null;
23014
23015
  }, "languageOf");
23015
23016
 
23016
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23017
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23017
23018
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
23018
23019
  var objectOf = /* @__PURE__ */ __name((value) => {
23019
23020
  if (isObject(value))
@@ -23256,7 +23257,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
23256
23257
  };
23257
23258
  }, "filesStoreOver");
23258
23259
 
23259
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23260
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23260
23261
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
23261
23262
  entity: "document",
23262
23263
  backend: "sql",
@@ -23302,7 +23303,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
23302
23303
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
23303
23304
  }, "importedDocumentWhere");
23304
23305
 
23305
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23306
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23306
23307
  var NOTE_FORMATS = ["obsidian", "markdown"];
23307
23308
  var iso = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
23308
23309
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso(value), "optionalIso");
@@ -23811,7 +23812,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
23811
23812
  };
23812
23813
  }, "notesStoreOver");
23813
23814
 
23814
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
23815
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
23815
23816
  var NAMED = "SELECT m.*, b.name AS author_name FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
23816
23817
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
23817
23818
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -23927,7 +23928,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
23927
23928
  };
23928
23929
  }, "memoriesStoreOver");
23929
23930
 
23930
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
23931
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
23931
23932
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
23932
23933
  var KEY = "taskFirstPassPerChat";
23933
23934
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -23947,7 +23948,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
23947
23948
  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);
23948
23949
  }, "saveFirstPassPerChat");
23949
23950
 
23950
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
23951
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
23951
23952
  var TASK_RELATION_KINDS = [
23952
23953
  "blocked-by",
23953
23954
  "follow-up-of",
@@ -24077,7 +24078,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
24077
24078
  };
24078
24079
  }, "taskRelationsStoreOver");
24079
24080
 
24080
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24081
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24081
24082
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
24082
24083
  var TASK_EVENT_KINDS = [
24083
24084
  "created",
@@ -24364,7 +24365,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
24364
24365
  };
24365
24366
  }, "workTasksOver");
24366
24367
 
24367
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
24368
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
24368
24369
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
24369
24370
  const { database, now: now2 } = context;
24370
24371
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -24410,7 +24411,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
24410
24411
  };
24411
24412
  }, "taskCloseOver");
24412
24413
 
24413
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
24414
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
24414
24415
  var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
24415
24416
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
24416
24417
  const { database, now: now2 } = context;
@@ -24629,7 +24630,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
24629
24630
  };
24630
24631
  }, "taskPairsOver");
24631
24632
 
24632
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
24633
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
24633
24634
  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";
24634
24635
  var taskStoreOver = /* @__PURE__ */ __name((context) => {
24635
24636
  const { database, now: now2 } = context;
@@ -24824,7 +24825,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
24824
24825
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
24825
24826
  }, "oneOf");
24826
24827
 
24827
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/accounts.js
24828
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/accounts.js
24828
24829
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
24829
24830
  const { database } = context;
24830
24831
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -24866,7 +24867,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
24866
24867
  };
24867
24868
  }, "accountsStoreOver");
24868
24869
 
24869
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
24870
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
24870
24871
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
24871
24872
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
24872
24873
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -24890,7 +24891,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
24890
24891
  })), "keepDownloads");
24891
24892
  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");
24892
24893
 
24893
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/attachments.js
24894
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/attachments.js
24894
24895
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
24895
24896
  const { database } = context;
24896
24897
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -24947,7 +24948,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
24947
24948
  }, "keepAttachmentText")
24948
24949
  }), "attachmentsStoreOver");
24949
24950
 
24950
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
24951
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
24951
24952
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
24952
24953
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
24953
24954
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -25127,7 +25128,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
25127
25128
  return done;
25128
25129
  }, "rekeyChats");
25129
25130
 
25130
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25131
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25131
25132
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
25132
25133
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
25133
25134
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -25159,7 +25160,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
25159
25160
  });
25160
25161
  }, "chatCompleteness");
25161
25162
 
25162
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/chats.js
25163
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/chats.js
25163
25164
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25164
25165
  const { database } = context;
25165
25166
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -25259,7 +25260,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25259
25260
  };
25260
25261
  }, "chatsStoreOver");
25261
25262
 
25262
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
25263
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
25263
25264
  import { createHash as createHash6 } from "node:crypto";
25264
25265
  var BATCH_CONTEXT = 50;
25265
25266
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -25397,7 +25398,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
25397
25398
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
25398
25399
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
25399
25400
 
25400
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
25401
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
25401
25402
  import { setTimeout } from "node:timers/promises";
25402
25403
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
25403
25404
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -25709,7 +25710,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
25709
25710
  AND NOT EXISTS (SELECT 1 FROM messages d
25710
25711
  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");
25711
25712
 
25712
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/conversations.js
25713
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/conversations.js
25713
25714
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
25714
25715
  const { database } = context;
25715
25716
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -25816,7 +25817,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
25816
25817
  };
25817
25818
  }, "conversationsStoreOver");
25818
25819
 
25819
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/counters.js
25820
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/counters.js
25820
25821
  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";
25821
25822
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
25822
25823
  const { database } = context;
@@ -25841,7 +25842,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
25841
25842
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
25842
25843
  }), "countersStoreOver");
25843
25844
 
25844
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
25845
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
25845
25846
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
25846
25847
  var MENTION_QUERY = defineQuery({
25847
25848
  entity: "mention",
@@ -26057,7 +26058,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
26057
26058
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
26058
26059
  }, "listPlaces");
26059
26060
 
26060
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/mentions.js
26061
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/mentions.js
26061
26062
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
26062
26063
  const { database } = context;
26063
26064
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -26092,7 +26093,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26092
26093
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
26093
26094
  }), "mentionsStoreOver");
26094
26095
 
26095
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26096
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26096
26097
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
26097
26098
  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");
26098
26099
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -26107,7 +26108,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
26107
26108
  }));
26108
26109
  }, "documentLinkMessages");
26109
26110
 
26110
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/messages.js
26111
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/messages.js
26111
26112
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
26112
26113
  const { database } = context;
26113
26114
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -26237,7 +26238,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26237
26238
  directReplies: /* @__PURE__ */ __name(async (parents, limit) => directReplies(context, parents, limit), "directReplies")
26238
26239
  }), "messagesStoreOver");
26239
26240
 
26240
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
26241
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
26241
26242
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
26242
26243
  var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
26243
26244
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -26294,7 +26295,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
26294
26295
  });
26295
26296
  }, "personPreparation");
26296
26297
 
26297
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
26298
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
26298
26299
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
26299
26300
  const id2 = Number(uid);
26300
26301
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -26302,7 +26303,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
26302
26303
  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(id2, JSON.stringify(accountIds)));
26303
26304
  }, "personSeenInAccounts");
26304
26305
 
26305
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
26306
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
26306
26307
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
26307
26308
  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);
26308
26309
  if (!row2)
@@ -26368,7 +26369,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
26368
26369
  return { id: id2, personId, removed: true };
26369
26370
  }, "removeNote");
26370
26371
 
26371
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/people.js
26372
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/people.js
26372
26373
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
26373
26374
  const { database } = context;
26374
26375
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -26422,6 +26423,15 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
26422
26423
  personOf: /* @__PURE__ */ __name(async (identity) => personOf(context, identity), "personOf"),
26423
26424
  personSeenInAccounts: /* @__PURE__ */ __name(async (uid, accountIds) => personSeenInAccounts(context, uid, accountIds), "personSeenInAccounts"),
26424
26425
  personByUid: /* @__PURE__ */ __name(async (uid) => personByUid(context, uid), "personByUid"),
26426
+ owner: /* @__PURE__ */ __name(async () => {
26427
+ try {
26428
+ return personByUid(context, String(ownerPerson(database).id));
26429
+ } catch (error) {
26430
+ if (error instanceof CliError && error.code === "configuration_error")
26431
+ return void 0;
26432
+ throw error;
26433
+ }
26434
+ }, "owner"),
26425
26435
  preparation: /* @__PURE__ */ __name(async (uid, options) => personPreparation(context, uid, options), "preparation"),
26426
26436
  linkIdentities: /* @__PURE__ */ __name(async (person2, other, options) => {
26427
26437
  return write(database, () => linkIdentities(context, person2, other, options));
@@ -26433,13 +26443,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
26433
26443
  };
26434
26444
  }, "peopleStoreOver");
26435
26445
 
26436
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
26446
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
26437
26447
  import { createHash as createHash8 } from "node:crypto";
26438
26448
 
26439
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26449
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26440
26450
  import { createHash as createHash7 } from "node:crypto";
26441
26451
 
26442
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
26452
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
26443
26453
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
26444
26454
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
26445
26455
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -26661,7 +26671,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
26661
26671
  };
26662
26672
  }, "rankReplyGraph");
26663
26673
 
26664
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26674
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26665
26675
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
26666
26676
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
26667
26677
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -26835,7 +26845,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
26835
26845
  return { items, evidence, summary, graph: graph.quality };
26836
26846
  }, "calculateAdminStatistics");
26837
26847
 
26838
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
26848
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
26839
26849
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
26840
26850
  const dates = [];
26841
26851
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -26857,7 +26867,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
26857
26867
  return dates[0].node.resolution.date;
26858
26868
  }, "rankingContextRange");
26859
26869
 
26860
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
26870
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
26861
26871
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
26862
26872
  let counts;
26863
26873
  try {
@@ -27152,7 +27162,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
27152
27162
  });
27153
27163
  }, "rankQuery");
27154
27164
 
27155
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27165
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27156
27166
  function fail4(message2, reason = "query.too-large") {
27157
27167
  throw new CliError("validation_error", message2, { reason, complete: false });
27158
27168
  }
@@ -27329,7 +27339,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
27329
27339
  return result;
27330
27340
  }), "adminStatisticsQuery");
27331
27341
 
27332
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
27342
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
27333
27343
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
27334
27344
  if (!execution.accounts.length)
27335
27345
  return { conversations: [], chats: [] };
@@ -27347,7 +27357,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
27347
27357
  return { conversations: conversations2, chats: chats2 };
27348
27358
  }, "conversationEligibility");
27349
27359
 
27350
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
27360
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
27351
27361
  import { createHash as createHash9 } from "node:crypto";
27352
27362
  var EVIDENCE_BYTES = 64 * 1024;
27353
27363
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -27497,7 +27507,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
27497
27507
  return result;
27498
27508
  }, "rankingEvidence");
27499
27509
 
27500
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/queries.js
27510
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/queries.js
27501
27511
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
27502
27512
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
27503
27513
  if (execution.corpus === "mail")
@@ -27514,7 +27524,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor) => {
27514
27524
  };
27515
27525
  }, "queriesStoreOver");
27516
27526
 
27517
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
27527
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
27518
27528
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
27519
27529
  const { database, now: now2 } = context;
27520
27530
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -27553,10 +27563,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
27553
27563
  }));
27554
27564
  }, "chatEventsOf");
27555
27565
 
27556
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27566
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27557
27567
  import { createHash as createHash10 } from "node:crypto";
27558
27568
 
27559
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/calendar.js
27569
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/calendar.js
27560
27570
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
27561
27571
  const format = new Intl.DateTimeFormat("en-CA", {
27562
27572
  timeZone: zone,
@@ -27571,7 +27581,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
27571
27581
  };
27572
27582
  }, "calendarKey");
27573
27583
 
27574
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/retention.js
27584
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/retention.js
27575
27585
  var RETENTION_TOLERANCE = 864e5;
27576
27586
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
27577
27587
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -27625,7 +27635,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
27625
27635
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
27626
27636
  }, "retentionCohorts");
27627
27637
 
27628
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27638
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27629
27639
  var iso5 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
27630
27640
  var week = /* @__PURE__ */ __name((day) => {
27631
27641
  const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
@@ -27761,7 +27771,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
27761
27771
  };
27762
27772
  }, "retentionQuery");
27763
27773
 
27764
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
27774
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
27765
27775
  var iso6 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
27766
27776
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
27767
27777
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -27892,7 +27902,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
27892
27902
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
27893
27903
  })), "trackedChats");
27894
27904
 
27895
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/roster.js
27905
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/roster.js
27896
27906
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
27897
27907
  const { database } = context;
27898
27908
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -27948,7 +27958,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
27948
27958
  };
27949
27959
  }, "rosterStoreOver");
27950
27960
 
27951
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
27961
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
27952
27962
  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");
27953
27963
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
27954
27964
  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 ?`);
@@ -27972,7 +27982,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
27972
27982
  }
27973
27983
  }, "backfillNormalized");
27974
27984
 
27975
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
27985
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
27976
27986
  var INDEX2 = "message_words";
27977
27987
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
27978
27988
  const row2 = indexRow(database, INDEX2);
@@ -28099,7 +28109,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
28099
28109
  });
28100
28110
  }, "resetSearchIndex");
28101
28111
 
28102
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28112
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28103
28113
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
28104
28114
  const filled2 = { stemmed: 0, drained: 0 };
28105
28115
  const before2 = stemsState(database);
@@ -28194,7 +28204,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
28194
28204
  return resetStems(database, { now: now2 });
28195
28205
  }, "followDefaultStemmers");
28196
28206
 
28197
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
28207
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
28198
28208
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
28199
28209
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
28200
28210
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -28216,7 +28226,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
28216
28226
  });
28217
28227
  }, "termCandidates");
28218
28228
 
28219
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/search-index.js
28229
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/search-index.js
28220
28230
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
28221
28231
  const { database } = context;
28222
28232
  const stemmerFor = stemmerCache();
@@ -28238,7 +28248,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
28238
28248
  };
28239
28249
  }, "searchIndexStoreOver");
28240
28250
 
28241
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
28251
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
28242
28252
  var HISTORY_KEPT = 1e3;
28243
28253
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
28244
28254
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -28307,7 +28317,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
28307
28317
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
28308
28318
  }, "clearHistory");
28309
28319
 
28310
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/searches.js
28320
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/searches.js
28311
28321
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
28312
28322
  const { database } = context;
28313
28323
  return {
@@ -28331,7 +28341,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
28331
28341
  };
28332
28342
  }, "searchesStoreOver");
28333
28343
 
28334
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
28344
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
28335
28345
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
28336
28346
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
28337
28347
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -28374,7 +28384,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
28374
28384
  };
28375
28385
  }, "agentActionsStoreOver");
28376
28386
 
28377
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
28387
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
28378
28388
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
28379
28389
  }) => {
28380
28390
  const { database, now: now2 } = context;
@@ -28433,7 +28443,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
28433
28443
  };
28434
28444
  }, "botUpdateStoreOver");
28435
28445
 
28436
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
28446
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
28437
28447
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
28438
28448
  id: Number(row2.id),
28439
28449
  accountId: Number(row2.account_id),
@@ -28992,7 +29002,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
28992
29002
  };
28993
29003
  }, "eventStoreOver");
28994
29004
 
28995
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
29005
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
28996
29006
  var CATALOG_QUERY = defineQuery({
28997
29007
  entity: "document",
28998
29008
  backend: "sql",
@@ -29234,7 +29244,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
29234
29244
  };
29235
29245
  }, "catalogStoreOver");
29236
29246
 
29237
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/context/evidence.js
29247
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/context/evidence.js
29238
29248
  import { createHash as createHash11 } from "node:crypto";
29239
29249
  var CONTEXT_MAX_READ_BYTES = 262144;
29240
29250
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -29332,7 +29342,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
29332
29342
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
29333
29343
  }, "contextEvidenceRequest");
29334
29344
 
29335
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
29345
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
29336
29346
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
29337
29347
  var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
29338
29348
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -29345,7 +29355,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
29345
29355
  THEN 'source-modified' ELSE 'stored-update' END`;
29346
29356
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
29347
29357
 
29348
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
29358
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
29349
29359
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
29350
29360
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
29351
29361
  signal?.throwIfAborted();
@@ -29444,7 +29454,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
29444
29454
  });
29445
29455
  }, "readMeetingContextEvidence");
29446
29456
 
29447
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
29457
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
29448
29458
  var corpora = {
29449
29459
  message: {
29450
29460
  table: "messages",
@@ -29673,7 +29683,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
29673
29683
  }
29674
29684
  }), "contextRecordsOver");
29675
29685
 
29676
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
29686
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
29677
29687
  var NOTE_FIELDS = [
29678
29688
  "text",
29679
29689
  "exact",
@@ -30062,7 +30072,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
30062
30072
  };
30063
30073
  }, "noteSearchOver");
30064
30074
 
30065
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
30075
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
30066
30076
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
30067
30077
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
30068
30078
  var EVENT_CORPUS = {
@@ -30194,7 +30204,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
30194
30204
  };
30195
30205
  }, "eventSearchOver");
30196
30206
 
30197
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
30207
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
30198
30208
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
30199
30209
  var reference = /* @__PURE__ */ __name((raw) => {
30200
30210
  if (/^document:[1-9]\d*$/.test(raw))
@@ -30207,7 +30217,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
30207
30217
  }, "reference");
30208
30218
  var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
30209
30219
 
30210
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/domain/moment.js
30220
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/domain/moment.js
30211
30221
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
30212
30222
  try {
30213
30223
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -30219,7 +30229,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
30219
30229
  }
30220
30230
  }, "calendarMoment");
30221
30231
 
30222
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
30232
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
30223
30233
  var NAMED3 = "SELECT f.*, b.name AS author_name FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
30224
30234
  var iso7 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
30225
30235
  var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -30332,7 +30342,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
30332
30342
  };
30333
30343
  }, "factsStoreOver");
30334
30344
 
30335
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
30345
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
30336
30346
  var invalid2 = /* @__PURE__ */ __name((message2) => {
30337
30347
  throw new CliError("validation_error", message2);
30338
30348
  }, "invalid");
@@ -30422,7 +30432,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
30422
30432
  return { snapshot: snapshot2, snapshotParts, previous, outcomes };
30423
30433
  }, "findingsCoreOver");
30424
30434
 
30425
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
30435
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
30426
30436
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
30427
30437
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
30428
30438
  var iso8 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -30568,7 +30578,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
30568
30578
  };
30569
30579
  }, "proposedActionsStoreOver");
30570
30580
 
30571
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
30581
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
30572
30582
  var stale = /* @__PURE__ */ __name(() => {
30573
30583
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
30574
30584
  reason: "evidence-findings.stale"
@@ -30734,7 +30744,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
30734
30744
  };
30735
30745
  }, "evidenceFindingsStoreOver");
30736
30746
 
30737
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
30747
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
30738
30748
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
30739
30749
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
30740
30750
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -30787,7 +30797,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
30787
30797
  }, "forPerson")
30788
30798
  }), "involvementStoreOver");
30789
30799
 
30790
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
30800
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
30791
30801
  import { createHash as createHash12 } from "node:crypto";
30792
30802
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
30793
30803
  var id = /* @__PURE__ */ __name((value) => {
@@ -30873,16 +30883,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
30873
30883
  };
30874
30884
  }, "meetingProjectsStoreOver");
30875
30885
 
30876
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
30886
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
30877
30887
  import { createHash as createHash15 } from "node:crypto";
30878
30888
 
30879
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
30889
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
30880
30890
  import { createHash as createHash14 } from "node:crypto";
30881
30891
 
30882
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
30892
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
30883
30893
  import { createHash as createHash13 } from "node:crypto";
30884
30894
 
30885
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
30895
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
30886
30896
  var consolidationId = /* @__PURE__ */ __name((value, field3) => {
30887
30897
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
30888
30898
  throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
@@ -30933,7 +30943,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
30933
30943
  return input;
30934
30944
  }, "consolidationApplyInput");
30935
30945
 
30936
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
30946
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
30937
30947
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
30938
30948
  id: String(row2.id),
30939
30949
  sourceId: String(row2.source_id),
@@ -31008,7 +31018,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
31008
31018
  }, { beforeCommit: check3 });
31009
31019
  }, "applyTagConsolidation");
31010
31020
 
31011
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31021
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31012
31022
  var selections = [
31013
31023
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
31014
31024
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -31152,7 +31162,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
31152
31162
  };
31153
31163
  }, "previewRows");
31154
31164
 
31155
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31165
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31156
31166
  var kinds = ["project", "tag", "topic"];
31157
31167
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
31158
31168
  if (signal?.aborted)
@@ -31416,7 +31426,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
31416
31426
  };
31417
31427
  }, "vocabularyStoreOver");
31418
31428
 
31419
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
31429
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
31420
31430
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
31421
31431
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
31422
31432
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -31580,6 +31590,7 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
31580
31590
  ref: `project:${row2.id}`,
31581
31591
  key: String(row2.key),
31582
31592
  name: String(row2.name),
31593
+ kind: String(row2.key).length === INBOX_KEY_LENGTH ? "inbox" : "project",
31583
31594
  type: row2.type,
31584
31595
  organizationId: row2.organization_id == null ? null : String(row2.organization_id),
31585
31596
  scope: row2.scope,
@@ -31811,15 +31822,18 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
31811
31822
  return projectOf(row2);
31812
31823
  }), "addProject"),
31813
31824
  projects: /* @__PURE__ */ __name(async (query) => {
31825
+ const asksKind = query !== void 0 && walkQuery(query.root).some((node) => node.field === "kind");
31814
31826
  const where = query && queryFilter(query, {
31815
31827
  id: { type: "kw", sql: "CAST(id AS TEXT)" },
31816
31828
  key: { type: "kw", sql: "key" },
31829
+ name: { type: "kw", sql: "name" },
31830
+ kind: { type: "enum", sql: `CASE WHEN length(key) = ${INBOX_KEY_LENGTH} THEN 'inbox' ELSE 'project' END` },
31817
31831
  type: { type: "enum", sql: "type" },
31818
31832
  organization_id: { type: "kw", sql: "CAST(organization_id AS TEXT)" },
31819
31833
  scope: { type: "enum", sql: "scope" },
31820
31834
  created_at: { type: "time", sql: "created_at" }
31821
31835
  });
31822
- return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
31836
+ return database.prepare(`SELECT * FROM projects WHERE deleted_at IS NULL${asksKind ? "" : ` AND length(key) <> ${INBOX_KEY_LENGTH}`}${where ? ` AND (${where.sql})` : ""} ORDER BY name, id LIMIT 500`).all(...where?.params ?? []).map(projectOf);
31823
31837
  }, "projects"),
31824
31838
  relate: /* @__PURE__ */ __name(async (key2, input) => {
31825
31839
  const from2 = related(key2, input.from, true);
@@ -31933,7 +31947,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
31933
31947
  return key2.padEnd(3, "X");
31934
31948
  }, "projectKey");
31935
31949
 
31936
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
31950
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
31937
31951
  var DAY4 = 864e5;
31938
31952
  var SETTING4 = "logs_pruned_at";
31939
31953
  var LOG_RETENTION = { agentActionsMs: 90 * DAY4, botUpdatePayloadsMs: 30 * DAY4 };
@@ -31960,7 +31974,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
31960
31974
  };
31961
31975
  }, "logPruner");
31962
31976
 
31963
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
31977
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
31964
31978
  var stale2 = /* @__PURE__ */ __name(() => {
31965
31979
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
31966
31980
  reason: "meeting-findings.stale"
@@ -32129,7 +32143,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
32129
32143
  };
32130
32144
  }, "meetingFindingsStoreOver");
32131
32145
 
32132
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
32146
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
32133
32147
  var RANK_BATCH = 512;
32134
32148
  var LIVE3 = "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";
32135
32149
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -32400,7 +32414,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
32400
32414
  }
32401
32415
  }), "meetingVectorsOver");
32402
32416
 
32403
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
32417
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
32404
32418
  var OTHER_SOURCES = ["document", "note", "email"];
32405
32419
  var TEXTS = {
32406
32420
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -32501,11 +32515,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
32501
32515
  };
32502
32516
  }, "sourceMentionStoreOver");
32503
32517
 
32504
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
32518
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
32505
32519
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
32506
32520
  import { dirname } from "node:path";
32507
32521
 
32508
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
32522
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
32509
32523
  import { readFileSync as readFileSync3 } from "node:fs";
32510
32524
  var CLIENTS_SETTING = "clients";
32511
32525
  var coreVersion = (() => {
@@ -32563,7 +32577,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
32563
32577
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
32564
32578
  }, "refusalAdvice");
32565
32579
 
32566
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
32580
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
32567
32581
  var GENERATED = [
32568
32582
  {
32569
32583
  "name": "20261010184427_initial",
@@ -33360,7 +33374,7 @@ WHERE json_type(params, '$.selection') = 'object';`
33360
33374
  }
33361
33375
  ];
33362
33376
 
33363
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
33377
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
33364
33378
  var MANIFEST = [
33365
33379
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
33366
33380
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -33431,7 +33445,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
33431
33445
  return migrations;
33432
33446
  }, "generatedMigrations");
33433
33447
 
33434
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/migrations.js
33448
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/migrations.js
33435
33449
  var MIGRATIONS = generatedMigrations();
33436
33450
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
33437
33451
  version INTEGER PRIMARY KEY,
@@ -33484,7 +33498,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
33484
33498
  }
33485
33499
  }, "migrate");
33486
33500
 
33487
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
33501
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
33488
33502
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
33489
33503
  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 ?");
33490
33504
  if (pending.get(0, 1) === void 0)
@@ -33506,7 +33520,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
33506
33520
  }
33507
33521
  }, "fillJoinKeys");
33508
33522
 
33509
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
33523
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
33510
33524
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
33511
33525
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
33512
33526
  try {
@@ -33519,8 +33533,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
33519
33533
  }, "openSqlite");
33520
33534
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
33521
33535
  quietSqliteWarning();
33522
- const { drizzle } = await import("./node-ZMCACJVS.js");
33523
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-QJQ5S7KS.js");
33536
+ const { drizzle } = await import("./node-ZRLYQL7J.js");
33537
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-TXPSRROT.js");
33524
33538
  const client = await nodeClient(path, { readOnly });
33525
33539
  try {
33526
33540
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -33530,8 +33544,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
33530
33544
  }
33531
33545
  }, "openUnderNode");
33532
33546
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
33533
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-GNXLBF2A.js");
33534
- const { drizzle } = await import("./bun-ADJVI4HY.js");
33547
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-54W7JUY3.js");
33548
+ const { drizzle } = await import("./bun-O6RL6LRQ.js");
33535
33549
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
33536
33550
  try {
33537
33551
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -33541,7 +33555,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
33541
33555
  }
33542
33556
  }, "openUnderBun");
33543
33557
 
33544
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
33558
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
33545
33559
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
33546
33560
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
33547
33561
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -33556,7 +33570,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
33556
33570
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
33557
33571
  }, "assertReadCompatible");
33558
33572
 
33559
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33573
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33560
33574
  var BACKFILL_ON_OPEN = 5e3;
33561
33575
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
33562
33576
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -33612,13 +33626,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
33612
33626
  }
33613
33627
  }, "openStoreContext");
33614
33628
 
33615
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
33629
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
33616
33630
  import { createHash as createHash17 } from "node:crypto";
33617
33631
 
33618
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
33632
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
33619
33633
  import { createHash as createHash16 } from "node:crypto";
33620
33634
 
33621
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
33635
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
33622
33636
  var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
33623
33637
  var ref = text3(2048);
33624
33638
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -33684,7 +33698,7 @@ var projectAnnotationsSchema = strictObject({
33684
33698
  }))
33685
33699
  });
33686
33700
 
33687
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
33701
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
33688
33702
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
33689
33703
  var invalid5 = /* @__PURE__ */ __name((field3) => {
33690
33704
  throw new CliError("validation_error", `invalid project annotations.${field3}`);
@@ -33817,7 +33831,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
33817
33831
  return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
33818
33832
  }, "projectAnnotationsFingerprint");
33819
33833
 
33820
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
33834
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
33821
33835
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
33822
33836
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
33823
33837
  var targetSchema = strictObject({
@@ -33924,7 +33938,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
33924
33938
  }, "planBoundProjectAnnotations");
33925
33939
  var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
33926
33940
 
33927
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
33941
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
33928
33942
  import { createHash as createHash18 } from "node:crypto";
33929
33943
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
33930
33944
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -34018,7 +34032,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
34018
34032
  })).digest("hex");
34019
34033
  }, "projectAnnotationSnapshotFingerprint");
34020
34034
 
34021
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
34035
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
34022
34036
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
34023
34037
  if (!request || typeof request !== "object" || Array.isArray(request))
34024
34038
  throw new CliError("validation_error", "project annotation request is required");
@@ -34035,7 +34049,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
34035
34049
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
34036
34050
  }, "projectAnnotationRequest");
34037
34051
 
34038
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
34052
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
34039
34053
  var SnapshotBudget = class {
34040
34054
  static {
34041
34055
  __name(this, "SnapshotBudget");
@@ -34061,13 +34075,13 @@ var SnapshotBudget = class {
34061
34075
  }
34062
34076
  };
34063
34077
 
34064
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34078
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34065
34079
  import { createHash as createHash20 } from "node:crypto";
34066
34080
 
34067
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
34081
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
34068
34082
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
34069
34083
 
34070
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
34084
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
34071
34085
  import { createHash as createHash19 } from "node:crypto";
34072
34086
  var invalid7 = /* @__PURE__ */ __name(() => {
34073
34087
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -34210,7 +34224,7 @@ var ProjectSnapshotSources = class {
34210
34224
  }
34211
34225
  };
34212
34226
 
34213
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
34227
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
34214
34228
  var unsupported = /* @__PURE__ */ __name(() => {
34215
34229
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
34216
34230
  }, "unsupported");
@@ -34381,7 +34395,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
34381
34395
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
34382
34396
  }), "projectAnnotationSnapshot");
34383
34397
 
34384
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34398
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34385
34399
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
34386
34400
  const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
34387
34401
  const sources = new ProjectSnapshotSources(database, budget);
@@ -34443,7 +34457,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
34443
34457
  };
34444
34458
  }), "previewAnnotationSnapshot");
34445
34459
 
34446
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
34460
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
34447
34461
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
34448
34462
  const mappings = { ...bindings };
34449
34463
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -34485,7 +34499,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
34485
34499
  return mappings;
34486
34500
  }, "restoreAnnotationRecords");
34487
34501
 
34488
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
34502
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
34489
34503
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
34490
34504
  async preview(request) {
34491
34505
  const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
@@ -34515,7 +34529,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
34515
34529
  }
34516
34530
  }), "projectAnnotationStoreOver");
34517
34531
 
34518
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
34532
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
34519
34533
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
34520
34534
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
34521
34535
  let merged = { from: from2, to };
@@ -34528,7 +34542,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
34528
34542
  }, "markRange");
34529
34543
  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");
34530
34544
 
34531
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
34545
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
34532
34546
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
34533
34547
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
34534
34548
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -34538,7 +34552,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
34538
34552
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(keyOf4(account), JSON.stringify(until), now2);
34539
34553
  }, "setTaskRulesStop");
34540
34554
 
34541
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sync.js
34555
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sync.js
34542
34556
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
34543
34557
  const { database } = context;
34544
34558
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -34594,7 +34608,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
34594
34608
  };
34595
34609
  }, "syncStoreOver");
34596
34610
 
34597
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/tags.js
34611
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/tags.js
34598
34612
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
34599
34613
  const { database } = context;
34600
34614
  return {
@@ -34616,7 +34630,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
34616
34630
  };
34617
34631
  }, "tagsStoreOver");
34618
34632
 
34619
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
34633
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
34620
34634
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
34621
34635
  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
34622
34636
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -34743,7 +34757,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
34743
34757
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
34744
34758
  }, "savePictureChunks");
34745
34759
 
34746
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
34760
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
34747
34761
  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,
34748
34762
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
34749
34763
  FROM messages m
@@ -34826,7 +34840,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
34826
34840
  return plain2(best(found2));
34827
34841
  }, "nearestMessages");
34828
34842
 
34829
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/vectors.js
34843
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/vectors.js
34830
34844
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
34831
34845
  const { database } = context;
34832
34846
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -35080,7 +35094,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
35080
35094
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
35081
35095
  }), "vectorsStoreOver");
35082
35096
 
35083
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
35097
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
35084
35098
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
35085
35099
  import { dirname as dirname2, join as join2 } from "node:path";
35086
35100
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -35168,10 +35182,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
35168
35182
  }
35169
35183
  }, "lastBackup");
35170
35184
 
35171
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/providers.js
35185
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/providers.js
35172
35186
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
35173
35187
 
35174
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
35188
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
35175
35189
  var COUNTED_TABLES = [
35176
35190
  "accounts",
35177
35191
  "chats",
@@ -35256,7 +35270,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
35256
35270
  };
35257
35271
  }, "storeContents");
35258
35272
 
35259
- // node_modules/.pnpm/@wirecat+cli-core@0.469.0_@wirecat+cli-base@0.65.0_commander@15.0.0_typescript@7.0.2_vi_80b586dbc8b099637a6e461856c2ee6b/node_modules/@wirecat/cli-core/dist/store/store.js
35273
+ // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/store/store.js
35260
35274
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
35261
35275
  const context = await openStoreContext(options);
35262
35276
  try {