@wirecat/mail-cli 0.3.0 → 0.5.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 (102) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +10 -7
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-52LCOKSL.js → all-profiles-GR5JXYEQ.js} +5 -5
  5. package/dist/bundle/{anthropic-HPW7PLTT.js → anthropic-REBXE65F.js} +3 -3
  6. package/dist/bundle/{app-server-Y7XSPVHJ.js → app-server-QJ7ICQXZ.js} +39 -39
  7. package/dist/bundle/{bun-B7YXDIMT.js → bun-WAX4QHW5.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-TTTKY7H2.js → bun-sqlite-5S7TQ4SG.js} +2 -2
  9. package/dist/bundle/{chunk-FGNTGLWA.js → chunk-2FXVBCA3.js} +3 -3
  10. package/dist/bundle/{chunk-K6SIGXRS.js → chunk-2MRECWJZ.js} +5 -5
  11. package/dist/bundle/{chunk-X7TFD5SX.js → chunk-2U4IANVV.js} +1 -1
  12. package/dist/bundle/{chunk-KALDYMKJ.js → chunk-2YQNBIDQ.js} +3 -3
  13. package/dist/bundle/{chunk-XD3TL4BK.js → chunk-4BMNP2FT.js} +1 -1
  14. package/dist/bundle/{chunk-732GKOLO.js → chunk-4XJ4AM3K.js} +10 -10
  15. package/dist/bundle/{chunk-RZCFEASJ.js → chunk-5CXAH4Y6.js} +195 -195
  16. package/dist/bundle/{chunk-C2THROZU.js → chunk-5FK6RD4M.js} +42 -42
  17. package/dist/bundle/{chunk-RORC2FW7.js → chunk-5INWLYBD.js} +2 -2
  18. package/dist/bundle/{chunk-5LY3OS7U.js → chunk-6EO7GVYJ.js} +1 -1
  19. package/dist/bundle/{chunk-JDOOPGKW.js → chunk-6GE3EADU.js} +2 -2
  20. package/dist/bundle/{chunk-4UOEUEZZ.js → chunk-6TY3DGCC.js} +4 -4
  21. package/dist/bundle/{chunk-Y2HGQK7A.js → chunk-7A7BHABA.js} +1 -1
  22. package/dist/bundle/{chunk-TLZWUADZ.js → chunk-7F3NDIYL.js} +5 -5
  23. package/dist/bundle/{chunk-V7NZTJKU.js → chunk-7JCRQX56.js} +7 -7
  24. package/dist/bundle/{chunk-GX2M3AOO.js → chunk-7XNPSIWD.js} +2 -2
  25. package/dist/bundle/{chunk-MXUUQXMA.js → chunk-AFCGOZR7.js} +5 -5
  26. package/dist/bundle/{chunk-DKKCQMDM.js → chunk-B5WSIWY5.js} +16 -16
  27. package/dist/bundle/{chunk-ZIJJNH47.js → chunk-BFJV4FWJ.js} +1 -1
  28. package/dist/bundle/{chunk-JHNLU42I.js → chunk-BLS5YG77.js} +1 -1
  29. package/dist/bundle/{chunk-4PXWXI2U.js → chunk-CEAANMJ2.js} +2 -2
  30. package/dist/bundle/{chunk-IXHLMSHV.js → chunk-DXDQOZ2P.js} +2 -2
  31. package/dist/bundle/{chunk-TNQOKGJS.js → chunk-EB3R2PV3.js} +21 -21
  32. package/dist/bundle/{chunk-XQVGIW4R.js → chunk-EL554DV2.js} +2 -2
  33. package/dist/bundle/{chunk-QTWIZKUI.js → chunk-ESNNQA7D.js} +26 -26
  34. package/dist/bundle/{chunk-SRMJ6LLC.js → chunk-F3NYA4KN.js} +5 -5
  35. package/dist/bundle/{chunk-LCA5KC34.js → chunk-FSUNGHRI.js} +43 -43
  36. package/dist/bundle/{chunk-VTJDEWMB.js → chunk-HCMUGUAG.js} +2 -2
  37. package/dist/bundle/{chunk-FUXSKWWJ.js → chunk-IBYTYIYO.js} +46 -46
  38. package/dist/bundle/{chunk-KXVZ373I.js → chunk-IWDOGGMY.js} +299 -266
  39. package/dist/bundle/{chunk-3RDTVH3H.js → chunk-JJBQPA7D.js} +3 -3
  40. package/dist/bundle/{chunk-O2F54PUO.js → chunk-KIDF77MA.js} +1 -1
  41. package/dist/bundle/{chunk-C6E3VFUX.js → chunk-LFRHIXCF.js} +2 -2
  42. package/dist/bundle/{chunk-N5WIUNOT.js → chunk-LNS27BTB.js} +1 -1
  43. package/dist/bundle/{chunk-JXYFIUVX.js → chunk-LOA4X6JW.js} +4 -4
  44. package/dist/bundle/{chunk-PYIJCWCH.js → chunk-M6BDHZON.js} +11 -11
  45. package/dist/bundle/{chunk-5SSFYIFF.js → chunk-MMDCL42A.js} +5 -4
  46. package/dist/bundle/{chunk-HS25KDT3.js → chunk-MQUJEQTU.js} +1 -1
  47. package/dist/bundle/{chunk-TL7PE6JU.js → chunk-PJCTWPJB.js} +6 -6
  48. package/dist/bundle/{chunk-I2ARI6FI.js → chunk-QXOSGGKS.js} +1 -1
  49. package/dist/bundle/{chunk-YVIX7FHL.js → chunk-S677WGOQ.js} +5 -5
  50. package/dist/bundle/{chunk-FX77WAQL.js → chunk-SQ7KOBRA.js} +6 -6
  51. package/dist/bundle/{chunk-PL6UPJIL.js → chunk-SWJAG5IE.js} +1 -1
  52. package/dist/bundle/{chunk-MHNEMDH3.js → chunk-VDAIJM5L.js} +13 -13
  53. package/dist/bundle/{chunk-H2JVXO5V.js → chunk-VXAZZGXE.js} +21 -21
  54. package/dist/bundle/{chunk-LJDOPCPW.js → chunk-WNCCYHRV.js} +91 -91
  55. package/dist/bundle/{chunk-RMYYKBFW.js → chunk-WNI5BZFB.js} +7 -7
  56. package/dist/bundle/{chunk-37MSU5O6.js → chunk-YD5WV757.js} +2 -2
  57. package/dist/bundle/{chunk-O3DRPTWF.js → chunk-YKPBC3NL.js} +1 -1
  58. package/dist/bundle/{chunk-RVIMMCHF.js → chunk-YRGBZZUW.js} +9 -9
  59. package/dist/bundle/{command-contract-3HA7CZEQ.js → command-contract-GPUED3GT.js} +13 -13
  60. package/dist/bundle/{decode-VLI3MAXE.js → decode-D7BDVIVB.js} +2 -2
  61. package/dist/bundle/{dist-C7LAAMNF.js → dist-KJOAJ6NF.js} +14 -14
  62. package/dist/bundle/{echarts-POTU3SHN.js → echarts-IVRX7XHP.js} +2 -2
  63. package/dist/bundle/{embed-J2DEEEUF.js → embed-X527RBTG.js} +3 -3
  64. package/dist/bundle/{embedder-5N56V7YJ.js → embedder-F4PSJS6S.js} +6 -6
  65. package/dist/bundle/{first-run-XILZE4PI.js → first-run-M5CIX6NA.js} +5 -5
  66. package/dist/bundle/{first-screen-43VLEDWZ.js → first-screen-M7MT776O.js} +14 -14
  67. package/dist/bundle/{instructions-B7AUZXPL.js → instructions-UX36BT5F.js} +1 -1
  68. package/dist/bundle/mail.js +2 -2
  69. package/dist/bundle/{node-SZAO6HTA.js → node-OXT7WE2T.js} +2 -2
  70. package/dist/bundle/{node-sqlite-O34FFLRV.js → node-sqlite-X2PSEHA4.js} +2 -2
  71. package/dist/bundle/{oauth-YYTLIPJT.js → oauth-MYK4BSYN.js} +4 -4
  72. package/dist/bundle/{open-SWJGI6H4.js → open-GONIP2DH.js} +1 -1
  73. package/dist/bundle/{openai-GYXWCQOV.js → openai-YJFNUOQT.js} +10 -10
  74. package/dist/bundle/{process-GLVWCUMK.js → process-7IEUUSRK.js} +1 -1
  75. package/dist/bundle/{program-HW73TGIF.js → program-Q73TTG3E.js} +927 -610
  76. package/dist/bundle/{prompt-OZLHHGCD.js → prompt-SKQ72KN7.js} +2 -2
  77. package/dist/bundle/{recognize-RDQSGHC5.js → recognize-GC7CU2DB.js} +1 -1
  78. package/dist/bundle/{remote-BKU5P3GK.js → remote-UEXFZP2I.js} +4 -4
  79. package/dist/bundle/{rerank-EQIXYHKB.js → rerank-2U2NDEZP.js} +4 -4
  80. package/dist/bundle/{serve-S6K5HKWG.js → serve-OOGKFEWL.js} +6 -6
  81. package/dist/bundle/server-4JMHDHZ7.js +63 -0
  82. package/dist/bundle/{server-4VRVHPQC.js → server-FZ3LFQTF.js} +31 -31
  83. package/dist/bundle/{sqlite-runtime-OOE455YM.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
  84. package/dist/bundle/{state-OLPOJ2TY.js → state-EMFXPQVZ.js} +3 -3
  85. package/dist/bundle/{store-WFV26CWY.js → store-BDU4UPNK.js} +11 -11
  86. package/dist/bundle/{store-6AVCPLH4.js → store-LDI62AUG.js} +11 -9
  87. package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
  88. package/dist/commands/read.d.ts +3 -0
  89. package/dist/commands/read.d.ts.map +1 -0
  90. package/dist/commands/read.js +33 -0
  91. package/dist/commands/read.js.map +1 -0
  92. package/dist/identity.js +1 -1
  93. package/dist/identity.js.map +1 -1
  94. package/dist/program.d.ts.map +1 -1
  95. package/dist/program.js +4 -2
  96. package/dist/program.js.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +3 -3
  100. package/skills/mail-cli/SKILL.md +6 -2
  101. package/dist/bundle/server-WK6DRJX2.js +0 -63
  102. package/dist/bundle/store-maintenance-command-S6235I3W.js +0 -52
@@ -31,7 +31,7 @@ import {
31
31
  rankingWords,
32
32
  useStoredProviders,
33
33
  validCounter
34
- } from "./chunk-TLZWUADZ.js";
34
+ } from "./chunk-7F3NDIYL.js";
35
35
  import {
36
36
  FACT_STATUSES,
37
37
  FACT_TYPES,
@@ -54,7 +54,7 @@ import {
54
54
  matches,
55
55
  priorityBand,
56
56
  priorityLabel
57
- } from "./chunk-FX77WAQL.js";
57
+ } from "./chunk-SQ7KOBRA.js";
58
58
  import {
59
59
  CHAT_MESSAGES_READ,
60
60
  MEETING_FINDINGS_KIND,
@@ -93,7 +93,7 @@ import {
93
93
  validateQuery,
94
94
  walkQuery,
95
95
  zonedMoment
96
- } from "./chunk-C2THROZU.js";
96
+ } from "./chunk-5FK6RD4M.js";
97
97
  import {
98
98
  DEFAULT_STEMMERS,
99
99
  DEFAULT_STEMMERS_VERSION,
@@ -106,18 +106,18 @@ import {
106
106
  fold,
107
107
  normalize,
108
108
  parseStemmers
109
- } from "./chunk-V7NZTJKU.js";
109
+ } from "./chunk-7JCRQX56.js";
110
110
  import {
111
111
  DEFAULT_TASK_CATEGORIES,
112
112
  sharedConfigPath,
113
113
  storedTaskCategories,
114
114
  taskCategoriesReader
115
- } from "./chunk-JXYFIUVX.js";
115
+ } from "./chunk-LOA4X6JW.js";
116
116
  import {
117
117
  PRAGMAS,
118
118
  quietSqliteWarning,
119
119
  storeCapable
120
- } from "./chunk-K6SIGXRS.js";
120
+ } from "./chunk-2MRECWJZ.js";
121
121
  import {
122
122
  SQLiteTable,
123
123
  TableAliasProxyHandler,
@@ -142,10 +142,10 @@ import {
142
142
  sql,
143
143
  sqliteTable,
144
144
  text
145
- } from "./chunk-O2F54PUO.js";
145
+ } from "./chunk-KIDF77MA.js";
146
146
  import {
147
147
  storePath
148
- } from "./chunk-PL6UPJIL.js";
148
+ } from "./chunk-SWJAG5IE.js";
149
149
  import {
150
150
  array,
151
151
  boolean,
@@ -174,7 +174,7 @@ import {
174
174
  __name
175
175
  } from "./chunk-ZVVMGPBJ.js";
176
176
 
177
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/account-store.js
177
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/account-store.js
178
178
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
179
179
  const methods = whole;
180
180
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -302,7 +302,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
302
302
  };
303
303
  }, "bindAccount");
304
304
 
305
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/query.js
305
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/query.js
306
306
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
307
307
  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");
308
308
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -325,7 +325,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
325
325
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
326
326
  }, "sourceOf");
327
327
 
328
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/account-list.js
328
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/account-list.js
329
329
  var ACCOUNT_GROUPS = "accountGroups";
330
330
  var ACCOUNT_GROUPS_SETTING = "account_groups";
331
331
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -512,7 +512,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
512
512
  return { accounts: [...chosen.values()], skipped };
513
513
  }, "fitting");
514
514
 
515
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
515
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
516
516
  var IndexBuilderOn = class {
517
517
  static {
518
518
  __name(this, "IndexBuilderOn");
@@ -707,7 +707,7 @@ function alias(table, alias2) {
707
707
  }
708
708
  __name(alias, "alias");
709
709
 
710
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
710
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
711
711
  var ENTITY_TABLES = {
712
712
  account: "accounts",
713
713
  attachment: "attachments",
@@ -747,7 +747,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
747
747
  return { table, pointer, type, count, known: known2 };
748
748
  }).filter(({ count }) => count > 0)), "orphanPointers");
749
749
 
750
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
750
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
751
751
  var canonicalTags = sqliteTable("canonical_tags", {
752
752
  id: integer("id").primaryKey(),
753
753
  name: text("name").notNull().unique(),
@@ -756,7 +756,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
756
756
  updatedAt: integer("updated_at").notNull()
757
757
  });
758
758
 
759
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
759
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
760
760
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
761
761
  sourceKey: text("source_key").notNull(),
762
762
  collection: text("collection").notNull(),
@@ -766,13 +766,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
766
766
  createdAt: integer("created_at").notNull()
767
767
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
768
768
 
769
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
769
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
770
770
  var documentIndexPending = sqliteTable("document_index_pending", {
771
771
  id: integer("id").notNull(),
772
772
  indexableType: text("indexable_type").notNull()
773
773
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
774
774
 
775
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
775
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
776
776
  var tagRedirects = sqliteTable("tag_redirects", {
777
777
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
778
778
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -798,7 +798,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
798
798
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
799
799
  ]);
800
800
 
801
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
801
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
802
802
  var accounts = sqliteTable("accounts", {
803
803
  id: integer("id").primaryKey(),
804
804
  provider: text("provider").notNull(),
@@ -2299,7 +2299,7 @@ var storeSettings = sqliteTable("store_settings", {
2299
2299
  at: integer("at").notNull()
2300
2300
  });
2301
2301
 
2302
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2302
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2303
2303
  var ARMS = [
2304
2304
  [
2305
2305
  "message",
@@ -2426,7 +2426,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2426
2426
  return recomputed;
2427
2427
  }, "drainInvolvementQueue");
2428
2428
 
2429
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2429
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2430
2430
  import { domainToUnicode } from "node:url";
2431
2431
 
2432
2432
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12448,7 +12448,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12448
12448
  }, "oa");
12449
12449
  var na = { parse: O, get: aa, isValid: oa };
12450
12450
 
12451
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12451
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12452
12452
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12453
12453
  var ID = /^[\w-]{10,}$/;
12454
12454
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12489,7 +12489,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
12489
12489
  return { url, documentId: googleDocumentId(url) };
12490
12490
  }), "googleDocumentLinks");
12491
12491
 
12492
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12492
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12493
12493
  var PHONE_PLANS = [
12494
12494
  {
12495
12495
  country: "us",
@@ -12869,7 +12869,7 @@ var PHONE_PLANS = [
12869
12869
  }
12870
12870
  ];
12871
12871
 
12872
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/phones.js
12872
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/phones.js
12873
12873
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
12874
12874
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
12875
12875
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -12910,7 +12910,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
12910
12910
  return void 0;
12911
12911
  }, "nationalPhone");
12912
12912
 
12913
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/places.js
12913
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/places.js
12914
12914
  var BEFORE = [
12915
12915
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
12916
12916
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13170,7 +13170,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
13170
13170
  return found2.sort((a, b) => a.start - b.start);
13171
13171
  }, "findPlaces");
13172
13172
 
13173
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13173
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13174
13174
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13175
13175
  var MENTION_VERSIONS = {
13176
13176
  phone: 1,
@@ -13360,7 +13360,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13360
13360
  };
13361
13361
  }, "typedPhone");
13362
13362
 
13363
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13363
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13364
13364
  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";
13365
13365
  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";
13366
13366
  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";
@@ -13368,7 +13368,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13368
13368
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13369
13369
  var NAME_WORDS = WORDS.split(" ");
13370
13370
 
13371
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13371
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13372
13372
  var LATIN_TO_CYRILLIC = {
13373
13373
  shch: "\u0449",
13374
13374
  sch: "\u0449",
@@ -13576,7 +13576,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
13576
13576
  return found2;
13577
13577
  }, "findUnknownNames");
13578
13578
 
13579
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13579
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13580
13580
  var NOT_FILES = /* @__PURE__ */ new Set([
13581
13581
  "webpage",
13582
13582
  "share",
@@ -13608,7 +13608,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
13608
13608
  });
13609
13609
  }, "matchDownloads");
13610
13610
 
13611
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13611
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13612
13612
  var QUERY_VERSION = 1;
13613
13613
  var QUERY_LIMITS2 = {
13614
13614
  ...QUERY_LIMITS,
@@ -13639,7 +13639,7 @@ function exhausted(budget) {
13639
13639
  }
13640
13640
  __name(exhausted, "exhausted");
13641
13641
 
13642
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13642
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13643
13643
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
13644
13644
  var literal2 = /* @__PURE__ */ __name((c) => ({
13645
13645
  kind: "char",
@@ -14039,7 +14039,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14039
14039
  return out;
14040
14040
  }, "foldRegex");
14041
14041
 
14042
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14042
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14043
14043
  var PRESET_VERSION = 1;
14044
14044
  var PRESETS = {
14045
14045
  password: {
@@ -14093,7 +14093,7 @@ var PRESETS = {
14093
14093
  }
14094
14094
  };
14095
14095
 
14096
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14096
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14097
14097
  var FIELD_VERSION = 2;
14098
14098
  var UNITS = {
14099
14099
  "": 1,
@@ -14216,6 +14216,17 @@ var QUERY_FIELDS = [
14216
14216
  normalization: "the same as mailbox:; mail only",
14217
14217
  support: "A1"
14218
14218
  },
14219
+ {
14220
+ name: "list",
14221
+ example: "list:github.com",
14222
+ index: "emails.headers list-id",
14223
+ aliases: [],
14224
+ type: "kw",
14225
+ operators: terms,
14226
+ normalization: "the List-Id of a mailing list, lower case; a domain matches every list under it; mail only",
14227
+ support: "A1",
14228
+ validate: filled
14229
+ },
14219
14230
  {
14220
14231
  name: "is",
14221
14232
  example: "is:unread",
@@ -14542,12 +14553,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
14542
14553
  return validateFields(parsed2.output);
14543
14554
  }, "validateAst");
14544
14555
 
14545
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14556
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14546
14557
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
14547
14558
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
14548
14559
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
14549
14560
 
14550
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14561
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14551
14562
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
14552
14563
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
14553
14564
  var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
@@ -14571,7 +14582,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
14571
14582
  };
14572
14583
  }, "linkMatch");
14573
14584
 
14574
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14585
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14575
14586
  var SETTING = "phoneCountries";
14576
14587
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
14577
14588
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -14602,7 +14613,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
14602
14613
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
14603
14614
  }, "valueMatch");
14604
14615
 
14605
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14616
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14606
14617
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
14607
14618
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
14608
14619
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -14630,7 +14641,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
14630
14641
  return 2 * intersection2 / (aa2.size + bb.size);
14631
14642
  }, "vocabularySimilarity");
14632
14643
 
14633
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14644
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14634
14645
  import { createHash } from "node:crypto";
14635
14646
  var folded2 = /* @__PURE__ */ __name((name) => {
14636
14647
  try {
@@ -14696,7 +14707,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
14696
14707
  });
14697
14708
  }, "guardTagCreation");
14698
14709
 
14699
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14710
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14700
14711
  var invalid = /* @__PURE__ */ __name((message2) => {
14701
14712
  throw new CliError("validation_error", message2);
14702
14713
  }, "invalid");
@@ -14773,7 +14784,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
14773
14784
  };
14774
14785
  }, "createTagRedirectIndex");
14775
14786
 
14776
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14787
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14777
14788
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
14778
14789
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
14779
14790
  if (!row2)
@@ -14801,7 +14812,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
14801
14812
  return snapshot2;
14802
14813
  }, "tagRedirectSnapshot");
14803
14814
 
14804
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14815
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14805
14816
  import { createHash as createHash2 } from "node:crypto";
14806
14817
  var TASK_KEY_PREFIXES = {
14807
14818
  question: "Q",
@@ -14829,7 +14840,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
14829
14840
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
14830
14841
  }, "taskAccountOf");
14831
14842
 
14832
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14843
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14833
14844
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
14834
14845
  var REFERABLE = {
14835
14846
  note: { tombstone: true },
@@ -14987,7 +14998,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
14987
14998
  }, "taskIdOf");
14988
14999
  var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
14989
15000
 
14990
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15001
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
14991
15002
  var toMs = /* @__PURE__ */ __name((iso11) => {
14992
15003
  if (iso11 === null || iso11 === void 0)
14993
15004
  return null;
@@ -15001,7 +15012,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15001
15012
  var DELIVERY = { delivered: 1, read: 2 };
15002
15013
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15003
15014
 
15004
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15015
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15005
15016
  var TAG_KINDS = ["tag", "topic"];
15006
15017
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15007
15018
  var TAG_TYPE = {
@@ -15204,7 +15215,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15204
15215
  return result;
15205
15216
  }, "tagsOf");
15206
15217
 
15207
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15218
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15208
15219
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15209
15220
  var SPEECH = speech("att");
15210
15221
  var mentionText = /* @__PURE__ */ __name((alias2) => `CASE WHEN coalesce(json_extract(${alias2}.contact, '$.phone'), '') <> '' THEN 'phone: ' || json_extract(${alias2}.contact, '$.phone') ELSE ${alias2}.text END`, "mentionText");
@@ -15503,6 +15514,11 @@ var mailbox = /* @__PURE__ */ __name(({ value }, { mail }) => always(mail ? boun
15503
15514
  value,
15504
15515
  fold(value)
15505
15516
  ) : bound("0")), "mailbox");
15517
+ var list = /* @__PURE__ */ __name(({ value }, { mail }) => {
15518
+ const wanted = value.trim().toLowerCase();
15519
+ return always(mail ? bound(`m.id IN (SELECT id FROM (SELECT id, coalesce(json_extract(headers, '$."list-id"'),
15520
+ json_extract(metadata, '$.listId')) AS list_id FROM emails) WHERE list_id = ? OR list_id LIKE '%.' || ? ESCAPE '\\')`, wanted, wanted.replace(/[\\%_]/g, "\\$&")) : bound("0"));
15521
+ }, "list");
15506
15522
  var is2 = /* @__PURE__ */ __name(({ value }, { mail }) => {
15507
15523
  const state = value.toLowerCase();
15508
15524
  return always(state === "starred" ? bound(mail ? "m.flagged = 1" : "m.starred = 1") : !mail ? bound("0") : bound("m.read = ?", state === "read" ? 1 : 0));
@@ -15555,11 +15571,12 @@ var FIELD_COMPILERS = {
15555
15571
  source: notesOnly,
15556
15572
  mailbox,
15557
15573
  label: mailbox,
15574
+ list,
15558
15575
  is: is2,
15559
15576
  subject
15560
15577
  };
15561
15578
 
15562
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15579
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15563
15580
  var placeOf = /* @__PURE__ */ __name((database) => {
15564
15581
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
15565
15582
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -15575,7 +15592,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
15575
15592
  };
15576
15593
  }, "placeOf");
15577
15594
 
15578
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15595
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15579
15596
  var DRAIN_ON_WRITE = 500;
15580
15597
  var METHOD = "rules";
15581
15598
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -15738,7 +15755,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
15738
15755
  return queued.length;
15739
15756
  }, "drainMentions");
15740
15757
 
15741
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15758
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15742
15759
  var indexRow = /* @__PURE__ */ __name((database, name) => {
15743
15760
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
15744
15761
  if (!exists2)
@@ -15746,7 +15763,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
15746
15763
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
15747
15764
  }, "indexRow");
15748
15765
 
15749
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15766
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15750
15767
  var INDEX = "message_stems";
15751
15768
  var SETTING2 = "searchStemmers";
15752
15769
  var DRAIN_ON_WRITE2 = 500;
@@ -15868,7 +15885,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
15868
15885
  };
15869
15886
  }, "stemmerCache");
15870
15887
 
15871
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15888
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15872
15889
  var SQLITE_BUSY = 5;
15873
15890
  var pause = new Int32Array(new SharedArrayBuffer(4));
15874
15891
  var isBusy = /* @__PURE__ */ __name((error) => {
@@ -15963,7 +15980,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
15963
15980
  }
15964
15981
  }, "read");
15965
15982
 
15966
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15983
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15967
15984
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
15968
15985
  coalesce(CASE k.chunkable_type
15969
15986
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16105,7 +16122,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16105
16122
  }, "dropUnusedVectors");
16106
16123
  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");
16107
16124
 
16108
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16125
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16109
16126
  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({
16110
16127
  target: [accounts.provider, accounts.externalId],
16111
16128
  set: {
@@ -16211,7 +16228,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16211
16228
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16212
16229
  }, "dropOrphanPeople");
16213
16230
 
16214
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16231
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16215
16232
  var FOLDED = [
16216
16233
  { table: "tasks", column: "title" },
16217
16234
  { table: "tasks", column: "close_reason" },
@@ -16248,7 +16265,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
16248
16265
  return filled2;
16249
16266
  }, "fillFolded");
16250
16267
 
16251
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16268
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16252
16269
  import { createHash as createHash3 } from "node:crypto";
16253
16270
  var CHUNK_CHARS = 1200;
16254
16271
  var CHUNK_OVERLAP = 150;
@@ -16353,7 +16370,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16353
16370
  return chunks2;
16354
16371
  }, "cutChunks");
16355
16372
 
16356
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16373
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16357
16374
  var DAY = 864e5;
16358
16375
  var CURRENCY = [
16359
16376
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -16470,7 +16487,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
16470
16487
  return best?.day ?? null;
16471
16488
  }, "dueDayOf");
16472
16489
 
16473
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
16490
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
16474
16491
  var DAY2 = 864e5;
16475
16492
  var STOP_WORDS = new Set([
16476
16493
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -16625,7 +16642,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
16625
16642
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
16626
16643
  })).sort((a, b) => b.score - a.score), "rankCandidates");
16627
16644
 
16628
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
16645
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
16629
16646
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
16630
16647
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
16631
16648
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -16896,7 +16913,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
16896
16913
  };
16897
16914
  }, "readiness");
16898
16915
 
16899
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
16916
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
16900
16917
  var DOCUMENT_PICTURE = "document_picture";
16901
16918
  var SCAN_PAGE2 = 5e3;
16902
16919
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -16959,7 +16976,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
16959
16976
  }, "nearestPictures")
16960
16977
  }), "documentPicturesOver");
16961
16978
 
16962
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16979
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16963
16980
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
16964
16981
  const literal4 = escaped2 ?? plain2 ?? "";
16965
16982
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -17024,7 +17041,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
17024
17041
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
17025
17042
  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");
17026
17043
 
17027
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17044
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17028
17045
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
17029
17046
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
17030
17047
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17114,7 +17131,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17114
17131
  });
17115
17132
  }, "linkMeeting");
17116
17133
 
17117
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17134
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17118
17135
  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), ''))";
17119
17136
  var UNSEARCHED_EVENT_TYPES = [
17120
17137
  "working-location",
@@ -17344,7 +17361,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17344
17361
  return true;
17345
17362
  }, "resetNoteIndex");
17346
17363
 
17347
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17364
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17348
17365
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
17349
17366
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17350
17367
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -17363,7 +17380,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17363
17380
  }
17364
17381
  }, "resolvePersonLinks");
17365
17382
 
17366
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17383
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17367
17384
  var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
17368
17385
  var prepare = /* @__PURE__ */ __name((orm) => ({
17369
17386
  find: orm.select({
@@ -17588,7 +17605,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
17588
17605
  }, "meetingIdentityPk");
17589
17606
  var phoneOf = /* @__PURE__ */ __name(({ orm }, provider, nativeId) => orm.select({ phone: identities.phone }).from(identities).where(and(eq(identities.provider, provider), eq(identities.externalId, nativeId))).get()?.phone ?? null, "phoneOf");
17590
17607
 
17591
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
17608
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
17592
17609
  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");
17593
17610
  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");
17594
17611
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -17868,7 +17885,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
17868
17885
  }
17869
17886
  }, "replaceAutoTags");
17870
17887
 
17871
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
17888
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
17872
17889
  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");
17873
17890
  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;
17874
17891
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -17949,7 +17966,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
17949
17966
  return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
17950
17967
  }, "mailCore");
17951
17968
 
17952
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17969
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17953
17970
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
17954
17971
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
17955
17972
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -18059,7 +18076,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
18059
18076
  return emails3 + threads;
18060
18077
  }, "drainEmailIndex");
18061
18078
 
18062
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18079
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18063
18080
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
18064
18081
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
18065
18082
  var folderEmails = /* @__PURE__ */ __name((database, accountId, folder, uidvalidity) => database.prepare(`SELECT l.uid, e.external_id, coalesce(e.received_at, e.sent_at) AS at, e.read, e.flagged,
@@ -18105,7 +18122,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
18105
18122
  leave.run(emailId, Number(box.id), emailId, Number(box.id));
18106
18123
  }, "forgetLocations");
18107
18124
 
18108
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
18125
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
18109
18126
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
18110
18127
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
18111
18128
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -18155,7 +18172,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
18155
18172
  return threads.length;
18156
18173
  }, "markEmailsRestored");
18157
18174
 
18158
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
18175
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
18159
18176
  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");
18160
18177
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
18161
18178
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -18222,7 +18239,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
18222
18239
  }
18223
18240
  }), "mailRulesOver");
18224
18241
 
18225
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18242
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18226
18243
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
18227
18244
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
18228
18245
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -18230,7 +18247,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
18230
18247
  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);
18231
18248
  }, "reviewLink");
18232
18249
 
18233
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18250
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18234
18251
  function checkMeetingCancelled(signal) {
18235
18252
  if (!signal?.aborted)
18236
18253
  return;
@@ -18241,7 +18258,7 @@ function checkMeetingCancelled(signal) {
18241
18258
  }
18242
18259
  __name(checkMeetingCancelled, "checkMeetingCancelled");
18243
18260
 
18244
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18261
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18245
18262
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
18246
18263
  id: Number(row2.id),
18247
18264
  accountId: Number(row2.account_id),
@@ -18291,7 +18308,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
18291
18308
  createdAt: Number(row2.created_at)
18292
18309
  }), "transcriptRowOf");
18293
18310
 
18294
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18311
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18295
18312
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
18296
18313
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
18297
18314
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -18458,7 +18475,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
18458
18475
  }
18459
18476
  }), "meetingReadsOver");
18460
18477
 
18461
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18478
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18462
18479
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18463
18480
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
18464
18481
  const params = [input.accountId];
@@ -18501,7 +18518,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18501
18518
  return { clauses, params };
18502
18519
  }, "meetingSelectionSql");
18503
18520
 
18504
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18521
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18505
18522
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18506
18523
  async meetingChatLines(input) {
18507
18524
  checkMeetingCancelled(input.signal);
@@ -18529,7 +18546,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18529
18546
  }
18530
18547
  }), "meetingChatLinesOver");
18531
18548
 
18532
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18549
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18533
18550
  var MESSAGE_FIELDS = {
18534
18551
  pk: messages.id,
18535
18552
  nativeId: messages.externalId,
@@ -18696,7 +18713,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
18696
18713
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
18697
18714
  }), "chatActivity");
18698
18715
 
18699
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18716
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18700
18717
  var HIT_FIELDS = {
18701
18718
  ...MESSAGE_FIELDS,
18702
18719
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -18795,7 +18812,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
18795
18812
  };
18796
18813
  }, "directReplies");
18797
18814
 
18798
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18815
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18799
18816
  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");
18800
18817
  var required = /* @__PURE__ */ __name((context, ref3) => {
18801
18818
  const found2 = identityRow(context, ref3);
@@ -18926,7 +18943,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
18926
18943
  }, "mentioning");
18927
18944
  var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
18928
18945
 
18929
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18946
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18930
18947
  var missing2 = /* @__PURE__ */ __name(() => {
18931
18948
  throw new CliError("not_found", "Meeting, participant or selected target not found");
18932
18949
  }, "missing");
@@ -19048,7 +19065,7 @@ function meetingContextLinksOver(context) {
19048
19065
  }
19049
19066
  __name(meetingContextLinksOver, "meetingContextLinksOver");
19050
19067
 
19051
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19068
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19052
19069
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
19053
19070
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
19054
19071
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -19077,7 +19094,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
19077
19094
  return row2 ? summaryText(summaryOf(row2)) : null;
19078
19095
  }, "indexedText");
19079
19096
 
19080
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
19097
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
19081
19098
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
19082
19099
  var meetingCurrentIndexRows = `
19083
19100
  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
@@ -19108,7 +19125,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
19108
19125
  }, "invalidateMeetingStems");
19109
19126
  var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
19110
19127
 
19111
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
19128
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
19112
19129
  function meetingHitIndexOver({ database, now: now2 }) {
19113
19130
  return {
19114
19131
  async indexSearch(original) {
@@ -19176,10 +19193,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
19176
19193
  }
19177
19194
  __name(meetingHitIndexOver, "meetingHitIndexOver");
19178
19195
 
19179
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19196
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19180
19197
  import { createHash as createHash4 } from "node:crypto";
19181
19198
 
19182
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19199
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19183
19200
  var trigrams = /* @__PURE__ */ __name((term) => {
19184
19201
  const padded = ` ${term} `;
19185
19202
  const pieces = /* @__PURE__ */ new Set();
@@ -19188,7 +19205,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
19188
19205
  return [...pieces];
19189
19206
  }, "trigrams");
19190
19207
 
19191
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/correct.js
19208
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/correct.js
19192
19209
  var SHORTEST_CORRECTION = 3;
19193
19210
  var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
19194
19211
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -19235,7 +19252,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
19235
19252
  return corrections;
19236
19253
  }, "correctWords");
19237
19254
 
19238
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/garbled.js
19255
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/garbled.js
19239
19256
  var SHORTEST_GARBLED = 4;
19240
19257
  var MOST_WIDENED = 64;
19241
19258
  var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
@@ -19327,7 +19344,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
19327
19344
  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));
19328
19345
  }, "widenWords");
19329
19346
 
19330
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19347
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19331
19348
  import { readFileSync } from "node:fs";
19332
19349
  var loaded;
19333
19350
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -19386,7 +19403,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
19386
19403
  return false;
19387
19404
  }, "knownRussianWord");
19388
19405
 
19389
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19406
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19390
19407
  var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
19391
19408
  var MOST_WORDS = 128;
19392
19409
  var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
@@ -19613,7 +19630,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
19613
19630
  return check3(tree);
19614
19631
  }, "matchMeetingText");
19615
19632
 
19616
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19633
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19617
19634
  var fail3 = /* @__PURE__ */ __name((message2) => {
19618
19635
  throw new CliError("validation_error", message2);
19619
19636
  }, "fail");
@@ -19790,7 +19807,7 @@ function meetingHitSearchOver({ database }) {
19790
19807
  }
19791
19808
  __name(meetingHitSearchOver, "meetingHitSearchOver");
19792
19809
 
19793
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19810
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19794
19811
  import { createHash as createHash5 } from "node:crypto";
19795
19812
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
19796
19813
  if (value === void 0)
@@ -19880,7 +19897,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
19880
19897
  }
19881
19898
  }), "meetingParticipantSearchOver");
19882
19899
 
19883
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19900
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19884
19901
  var preparationQueries = {
19885
19902
  participants: {
19886
19903
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -19930,7 +19947,7 @@ var preparationQueries = {
19930
19947
  }
19931
19948
  };
19932
19949
 
19933
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19950
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19934
19951
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19935
19952
  async preparationContext(original) {
19936
19953
  const input = validateMeetingPreparationContext(original);
@@ -19971,7 +19988,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19971
19988
  }
19972
19989
  }), "meetingPreparationContextOver");
19973
19990
 
19974
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
19991
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
19975
19992
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
19976
19993
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
19977
19994
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -19985,7 +20002,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
19985
20002
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
19986
20003
  )`, "preparationSubjects");
19987
20004
 
19988
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20005
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
19989
20006
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
19990
20007
  async preparationKnowledge(original) {
19991
20008
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20030,7 +20047,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
20030
20047
  }
20031
20048
  }), "meetingPreparationKnowledgeOver");
20032
20049
 
20033
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
20050
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
20034
20051
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
20035
20052
  async preparationNotes(original) {
20036
20053
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20083,7 +20100,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
20083
20100
  }
20084
20101
  }), "meetingPreparationNotesOver");
20085
20102
 
20086
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
20103
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
20087
20104
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20088
20105
  async relatedHistory(original) {
20089
20106
  const input = validateMeetingRelatedHistory(original);
@@ -20154,7 +20171,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20154
20171
  }
20155
20172
  }), "meetingRelatedHistoryOver");
20156
20173
 
20157
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
20174
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
20158
20175
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
20159
20176
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
20160
20177
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -20235,7 +20252,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
20235
20252
  }
20236
20253
  }), "meetingReviewOver");
20237
20254
 
20238
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20255
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20239
20256
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
20240
20257
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
20241
20258
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -20289,7 +20306,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20289
20306
  }
20290
20307
  }), "meetingSeriesHistoryOver");
20291
20308
 
20292
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20309
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20293
20310
  var MOST_ROWS = 5e5;
20294
20311
  var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20295
20312
  async meetingStats(input) {
@@ -20336,7 +20353,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20336
20353
  }
20337
20354
  }), "meetingStatsOver");
20338
20355
 
20339
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20356
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20340
20357
  var CURSOR_KEY = "meetings";
20341
20358
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
20342
20359
  id: Number(row2.id),
@@ -20888,7 +20905,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
20888
20905
  };
20889
20906
  }, "meetingStoreOver");
20890
20907
 
20891
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
20908
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
20892
20909
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
20893
20910
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
20894
20911
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -20914,7 +20931,24 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
20914
20931
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
20915
20932
  }, "release");
20916
20933
 
20917
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20934
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
20935
+ var THREAD_COLUMNS = {
20936
+ subject: {
20937
+ where: /* @__PURE__ */ __name(({ value }) => ({
20938
+ sql: "instr(' ' || coalesce(email_threads.subject_folded, lower(email_threads.subject)), ' ' || ?) > 0",
20939
+ params: [fold(value).replace(/\*+$/, "")]
20940
+ }), "where")
20941
+ },
20942
+ emails_count: { type: "num", sql: "email_threads.emails_count" },
20943
+ last_email_at: { type: "time", sql: "email_threads.last_email_at" }
20944
+ };
20945
+ var threadRows = /* @__PURE__ */ __name((database, filter) => {
20946
+ const [limit, offset] = page(filter);
20947
+ return database.prepare(`SELECT * FROM email_threads WHERE (? IS NULL OR account_id = ?) AND (? OR deleted_at IS NULL)
20948
+ AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
20949
+ }, "threadRows");
20950
+
20951
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20918
20952
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
20919
20953
  id: `email:${place.emailId}`,
20920
20954
  chatId: place.threadExternalId,
@@ -21263,9 +21297,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
21263
21297
  return ids.map((id2) => threadDetails(database, id2));
21264
21298
  },
21265
21299
  async threads(filter = {}) {
21266
- const [limit, offset] = page(filter);
21267
- return database.prepare(`SELECT * FROM email_threads WHERE (? IS NULL OR account_id = ?) AND (? OR deleted_at IS NULL)
21268
- ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, limit, offset).map(threadOf);
21300
+ return threadRows(database, filter).map(threadOf);
21269
21301
  },
21270
21302
  async thread(id2) {
21271
21303
  return threadDetails(database, id2);
@@ -21471,7 +21503,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
21471
21503
  }
21472
21504
  }), "mailStoreOver");
21473
21505
 
21474
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21506
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21475
21507
  import { readFileSync as readFileSync2 } from "node:fs";
21476
21508
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
21477
21509
  var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
@@ -21561,7 +21593,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
21561
21593
  }, "knownWord");
21562
21594
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
21563
21595
 
21564
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21596
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21565
21597
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
21566
21598
  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");
21567
21599
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -21647,7 +21679,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
21647
21679
  return found2;
21648
21680
  }, "spokenTranscripts");
21649
21681
 
21650
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21682
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21651
21683
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
21652
21684
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
21653
21685
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -21694,7 +21726,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
21694
21726
  });
21695
21727
  }, "placeHits");
21696
21728
 
21697
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21729
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21698
21730
  var MESSAGES2 = {
21699
21731
  rows: "messages",
21700
21732
  threads: "chats",
@@ -22168,7 +22200,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
22168
22200
  };
22169
22201
  }, "runQuery");
22170
22202
 
22171
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
22203
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
22172
22204
  function invalidMetadata() {
22173
22205
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
22174
22206
  }
@@ -22270,7 +22302,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
22270
22302
  };
22271
22303
  }), "counterTargets");
22272
22304
 
22273
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22305
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22274
22306
  var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
22275
22307
  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,
22276
22308
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -22389,7 +22421,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
22389
22421
  }));
22390
22422
  }, "attachmentViews");
22391
22423
 
22392
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22424
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22393
22425
  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");
22394
22426
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
22395
22427
  const { orm, database, now: now2 } = context;
@@ -22427,7 +22459,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
22427
22459
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
22428
22460
  }, "intoVoiceAttachment");
22429
22461
 
22430
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22462
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22431
22463
  var FIELDS = [
22432
22464
  "threadExternalId",
22433
22465
  "senderIdentityId",
@@ -22744,7 +22776,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
22744
22776
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
22745
22777
  }, "writeDerivedReactions");
22746
22778
 
22747
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/keys.js
22779
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/keys.js
22748
22780
  var keysOver = /* @__PURE__ */ __name((context) => {
22749
22781
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
22750
22782
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -22765,7 +22797,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
22765
22797
  };
22766
22798
  }, "keysOver");
22767
22799
 
22768
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22800
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22769
22801
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
22770
22802
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
22771
22803
  if (!row2)
@@ -22800,7 +22832,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
22800
22832
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
22801
22833
  }, "saveProfile");
22802
22834
 
22803
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22835
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22804
22836
  var BOT_KINDS = ["agent", "script", "integration"];
22805
22837
  var ownerPerson = /* @__PURE__ */ __name((database) => {
22806
22838
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -22836,7 +22868,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
22836
22868
  return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
22837
22869
  }, "originOfActor");
22838
22870
 
22839
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22871
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22840
22872
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
22841
22873
  const owner = ownerPerson(context.database).id;
22842
22874
  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);
@@ -22857,7 +22889,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
22857
22889
  return personOf(context, ref3);
22858
22890
  }, "linkToOwner");
22859
22891
 
22860
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22892
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22861
22893
  var PROVIDERS_SETTING = "providers";
22862
22894
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
22863
22895
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -22892,7 +22924,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
22892
22924
  });
22893
22925
  }, "registerProvider");
22894
22926
 
22895
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22927
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22896
22928
  var DAY3 = 864e5;
22897
22929
  var RECENTLY_CLOSED_MS = 14 * DAY3;
22898
22930
  var TEXT_LIMIT = 20;
@@ -23091,15 +23123,15 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
23091
23123
  };
23092
23124
  }, "taskSimilarityOver");
23093
23125
 
23094
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
23126
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
23095
23127
  var SETTING3 = "taskCategories";
23096
23128
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
23097
23129
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
23098
23130
  return row2 ? storedTaskCategories(String(row2.value)) : void 0;
23099
23131
  }, "savedTaskCategories");
23100
23132
  var storeTaskCategories = /* @__PURE__ */ __name((database) => savedTaskCategories(database) ?? DEFAULT_TASK_CATEGORIES, "storeTaskCategories");
23101
- var unlistedTaskCategories = /* @__PURE__ */ __name((database, list) => {
23102
- const listed = new Set(list.map(({ name }) => name));
23133
+ var unlistedTaskCategories = /* @__PURE__ */ __name((database, list2) => {
23134
+ const listed = new Set(list2.map(({ name }) => name));
23103
23135
  return database.prepare("SELECT category, COUNT(*) AS total, SUM(status NOT IN ('done', 'dismissed')) AS open FROM tasks WHERE category IS NOT NULL AND deleted_at IS NULL GROUP BY category ORDER BY category").all().map((row2) => ({ name: String(row2.category), open: Number(row2.open), total: Number(row2.total) })).filter(({ name }) => !listed.has(name));
23104
23136
  }, "unlistedTaskCategories");
23105
23137
  var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) => {
@@ -23110,7 +23142,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
23110
23142
  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);
23111
23143
  }, "saveTaskCategories");
23112
23144
 
23113
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
23145
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
23114
23146
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
23115
23147
  var ALLOWED = "taskAgentClose";
23116
23148
  var MIN = "taskAgentCloseMin";
@@ -23166,7 +23198,7 @@ var SUGGESTION_COLUMNS = [
23166
23198
  ];
23167
23199
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
23168
23200
 
23169
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
23201
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
23170
23202
  var EXCERPT_CHARS = 280;
23171
23203
  var excerptOf = /* @__PURE__ */ __name((text5) => {
23172
23204
  if (text5 == null)
@@ -23231,7 +23263,7 @@ var sourcesOfReferences = /* @__PURE__ */ __name((database, references) => [...n
23231
23263
  };
23232
23264
  }), "sourcesOfReferences");
23233
23265
 
23234
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/attachments/limits.js
23266
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/attachments/limits.js
23235
23267
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
23236
23268
  var MAX_TEXT_CHARS = 2e6;
23237
23269
  var ATTACHMENT_LIMIT_ENV = [
@@ -23257,7 +23289,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
23257
23289
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
23258
23290
  }, "pdfPreviewLimits");
23259
23291
 
23260
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/ulid.js
23292
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/ulid.js
23261
23293
  import { randomBytes } from "node:crypto";
23262
23294
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
23263
23295
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -23270,7 +23302,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
23270
23302
  return time3 + random;
23271
23303
  }, "ulid");
23272
23304
 
23273
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
23305
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
23274
23306
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
23275
23307
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
23276
23308
  if (!meta && !sections?.length)
@@ -23291,7 +23323,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
23291
23323
  return typeof language === "string" && language !== "" ? language : null;
23292
23324
  }, "languageOf");
23293
23325
 
23294
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23326
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23295
23327
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
23296
23328
  var objectOf = /* @__PURE__ */ __name((value) => {
23297
23329
  if (isObject(value))
@@ -23534,7 +23566,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
23534
23566
  };
23535
23567
  }, "filesStoreOver");
23536
23568
 
23537
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23569
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23538
23570
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
23539
23571
  entity: "document",
23540
23572
  backend: "sql",
@@ -23580,7 +23612,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
23580
23612
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
23581
23613
  }, "importedDocumentWhere");
23582
23614
 
23583
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23615
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23584
23616
  var NOTE_FORMATS = ["obsidian", "markdown"];
23585
23617
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
23586
23618
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
@@ -24090,7 +24122,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
24090
24122
  };
24091
24123
  }, "notesStoreOver");
24092
24124
 
24093
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
24125
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
24094
24126
  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";
24095
24127
  var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
24096
24128
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -24286,7 +24318,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
24286
24318
  };
24287
24319
  }, "memoriesStoreOver");
24288
24320
 
24289
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
24321
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
24290
24322
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
24291
24323
  var KEY = "taskFirstPassPerChat";
24292
24324
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -24306,7 +24338,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
24306
24338
  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);
24307
24339
  }, "saveFirstPassPerChat");
24308
24340
 
24309
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
24341
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
24310
24342
  var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
24311
24343
  var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
24312
24344
  name,
@@ -24480,7 +24512,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
24480
24512
  return root === void 0 ? void 0 : { ...query, root };
24481
24513
  }, "withoutField");
24482
24514
 
24483
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
24515
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
24484
24516
  var TASK_RELATION_KINDS = [
24485
24517
  "blocked-by",
24486
24518
  "follow-up-of",
@@ -24610,7 +24642,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
24610
24642
  };
24611
24643
  }, "taskRelationsStoreOver");
24612
24644
 
24613
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24645
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24614
24646
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
24615
24647
  var TASK_EVENT_KINDS = [
24616
24648
  "created",
@@ -25071,7 +25103,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
25071
25103
  };
25072
25104
  }, "workTasksOver");
25073
25105
 
25074
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
25106
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
25075
25107
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
25076
25108
  const { database, now: now2 } = context;
25077
25109
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -25120,7 +25152,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
25120
25152
  };
25121
25153
  }, "taskCloseOver");
25122
25154
 
25123
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
25155
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
25124
25156
  var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
25125
25157
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
25126
25158
  const { database, now: now2 } = context;
@@ -25339,7 +25371,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
25339
25371
  };
25340
25372
  }, "taskPairsOver");
25341
25373
 
25342
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
25374
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
25343
25375
  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";
25344
25376
  var taskStoreOver = /* @__PURE__ */ __name((context) => {
25345
25377
  const { database, now: now2 } = context;
@@ -25544,7 +25576,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
25544
25576
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
25545
25577
  }, "oneOf");
25546
25578
 
25547
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/accounts.js
25579
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/accounts.js
25548
25580
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
25549
25581
  const { database } = context;
25550
25582
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -25589,7 +25621,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
25589
25621
  };
25590
25622
  }, "accountsStoreOver");
25591
25623
 
25592
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
25624
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
25593
25625
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
25594
25626
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
25595
25627
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -25613,7 +25645,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
25613
25645
  })), "keepDownloads");
25614
25646
  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");
25615
25647
 
25616
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/attachments.js
25648
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/attachments.js
25617
25649
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
25618
25650
  const { database } = context;
25619
25651
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -25670,7 +25702,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
25670
25702
  }, "keepAttachmentText")
25671
25703
  }), "attachmentsStoreOver");
25672
25704
 
25673
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
25705
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
25674
25706
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
25675
25707
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
25676
25708
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -25850,7 +25882,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
25850
25882
  return done;
25851
25883
  }, "rekeyChats");
25852
25884
 
25853
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25885
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25854
25886
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
25855
25887
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
25856
25888
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -25882,15 +25914,15 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
25882
25914
  });
25883
25915
  }, "chatCompleteness");
25884
25916
 
25885
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/chats.js
25917
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/chats.js
25886
25918
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25887
25919
  const { database } = context;
25888
25920
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
25889
25921
  return {
25890
- saveChats: /* @__PURE__ */ __name(async (key2, list) => write(database, () => {
25922
+ saveChats: /* @__PURE__ */ __name(async (key2, list2) => write(database, () => {
25891
25923
  const accountKey = accountPk2(key2);
25892
25924
  revisedBy(context, "chats", () => {
25893
- for (const chat2 of list)
25925
+ for (const chat2 of list2)
25894
25926
  upsertChat(context, accountKey, chat2);
25895
25927
  });
25896
25928
  }), "saveChats"),
@@ -25989,7 +26021,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25989
26021
  };
25990
26022
  }, "chatsStoreOver");
25991
26023
 
25992
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
26024
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
25993
26025
  import { createHash as createHash6 } from "node:crypto";
25994
26026
  var BATCH_CONTEXT = 50;
25995
26027
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -26127,7 +26159,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
26127
26159
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
26128
26160
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
26129
26161
 
26130
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
26162
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
26131
26163
  import { setTimeout } from "node:timers/promises";
26132
26164
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
26133
26165
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -26439,7 +26471,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
26439
26471
  AND NOT EXISTS (SELECT 1 FROM messages d
26440
26472
  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");
26441
26473
 
26442
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/conversations.js
26474
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/conversations.js
26443
26475
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
26444
26476
  const { database } = context;
26445
26477
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -26546,7 +26578,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
26546
26578
  };
26547
26579
  }, "conversationsStoreOver");
26548
26580
 
26549
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/counters.js
26581
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/counters.js
26550
26582
  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";
26551
26583
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
26552
26584
  const { database } = context;
@@ -26571,7 +26603,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26571
26603
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
26572
26604
  }), "countersStoreOver");
26573
26605
 
26574
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
26606
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
26575
26607
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
26576
26608
  var MENTION_QUERY = defineQuery({
26577
26609
  entity: "mention",
@@ -26787,7 +26819,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
26787
26819
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
26788
26820
  }, "listPlaces");
26789
26821
 
26790
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/mentions.js
26822
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/mentions.js
26791
26823
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
26792
26824
  const { database } = context;
26793
26825
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -26822,7 +26854,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26822
26854
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
26823
26855
  }), "mentionsStoreOver");
26824
26856
 
26825
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26857
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26826
26858
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
26827
26859
  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");
26828
26860
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -26837,7 +26869,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
26837
26869
  }));
26838
26870
  }, "documentLinkMessages");
26839
26871
 
26840
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
26872
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
26841
26873
  var stemmerFor = stemmerCache();
26842
26874
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
26843
26875
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -26881,7 +26913,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
26881
26913
  });
26882
26914
  }, "laterSharingRare");
26883
26915
 
26884
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/messages.js
26916
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/messages.js
26885
26917
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
26886
26918
  const { database } = context;
26887
26919
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -27016,7 +27048,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
27016
27048
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
27017
27049
  }), "messagesStoreOver");
27018
27050
 
27019
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
27051
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
27020
27052
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
27021
27053
  var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
27022
27054
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -27073,7 +27105,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
27073
27105
  });
27074
27106
  }, "personPreparation");
27075
27107
 
27076
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
27108
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
27077
27109
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
27078
27110
  const id2 = Number(uid);
27079
27111
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -27081,7 +27113,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
27081
27113
  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)));
27082
27114
  }, "personSeenInAccounts");
27083
27115
 
27084
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
27116
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
27085
27117
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
27086
27118
  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);
27087
27119
  if (!row2)
@@ -27147,7 +27179,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
27147
27179
  return { id: id2, personId, removed: true };
27148
27180
  }, "removeNote");
27149
27181
 
27150
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/people.js
27182
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/people.js
27151
27183
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
27152
27184
  const { database } = context;
27153
27185
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -27222,13 +27254,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
27222
27254
  };
27223
27255
  }, "peopleStoreOver");
27224
27256
 
27225
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27257
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27226
27258
  import { createHash as createHash8 } from "node:crypto";
27227
27259
 
27228
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27260
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27229
27261
  import { createHash as createHash7 } from "node:crypto";
27230
27262
 
27231
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
27263
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
27232
27264
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
27233
27265
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
27234
27266
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -27450,7 +27482,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
27450
27482
  };
27451
27483
  }, "rankReplyGraph");
27452
27484
 
27453
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27485
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27454
27486
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
27455
27487
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
27456
27488
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -27528,9 +27560,9 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
27528
27560
  const answer = answers.get(node.pk);
27529
27561
  if (!answer)
27530
27562
  continue;
27531
- const key2 = personKey(answer), list = grouped.get(key2) ?? [];
27532
- list.push({ pk: answer.pk, related: node.pk, contribution: answer.timestamp - node.timestamp });
27533
- grouped.set(key2, list);
27563
+ const key2 = personKey(answer), list2 = grouped.get(key2) ?? [];
27564
+ list2.push({ pk: answer.pk, related: node.pk, contribution: answer.timestamp - node.timestamp });
27565
+ grouped.set(key2, list2);
27534
27566
  }
27535
27567
  for (const person2 of options.answerers) {
27536
27568
  const rows = grouped.get(personKey({ account: person2, sender: person2.id })) ?? [];
@@ -27548,9 +27580,9 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
27548
27580
  const grouped = /* @__PURE__ */ new Map();
27549
27581
  for (const node of eligible) {
27550
27582
  const key2 = JSON.stringify([personKey(node), node.chatId]);
27551
- const list = grouped.get(key2) ?? [];
27552
- list.push(node);
27553
- grouped.set(key2, list);
27583
+ const list2 = grouped.get(key2) ?? [];
27584
+ list2.push(node);
27585
+ grouped.set(key2, list2);
27554
27586
  }
27555
27587
  for (const stay of stays) {
27556
27588
  check3();
@@ -27595,9 +27627,9 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
27595
27627
  const node = byPk.get(child);
27596
27628
  if (!node || node.timestamp > options.cutoff)
27597
27629
  continue;
27598
- const list = replies.get(parent2) ?? [];
27599
- list.push({ pk: child, related: parent2, contribution: 1 });
27600
- replies.set(parent2, list);
27630
+ const list2 = replies.get(parent2) ?? [];
27631
+ list2.push({ pk: child, related: parent2, contribution: 1 });
27632
+ replies.set(parent2, list2);
27601
27633
  }
27602
27634
  for (const node of nodes.filter((one) => one.selected && one.chatKind === "channel" && one.graph?.reply === null && !one.graph.discussionSource && one.timestamp <= options.cutoff)) {
27603
27635
  check3();
@@ -27624,7 +27656,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
27624
27656
  return { items, evidence, summary, graph: graph.quality };
27625
27657
  }, "calculateAdminStatistics");
27626
27658
 
27627
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
27659
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
27628
27660
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
27629
27661
  const dates = [];
27630
27662
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -27646,7 +27678,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
27646
27678
  return dates[0].node.resolution.date;
27647
27679
  }, "rankingContextRange");
27648
27680
 
27649
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
27681
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
27650
27682
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
27651
27683
  let counts;
27652
27684
  try {
@@ -27941,7 +27973,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
27941
27973
  });
27942
27974
  }, "rankQuery");
27943
27975
 
27944
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27976
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27945
27977
  function fail4(message2, reason = "query.too-large") {
27946
27978
  throw new CliError("validation_error", message2, { reason, complete: false });
27947
27979
  }
@@ -28118,7 +28150,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
28118
28150
  return result;
28119
28151
  }), "adminStatisticsQuery");
28120
28152
 
28121
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
28153
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
28122
28154
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
28123
28155
  if (!execution.accounts.length)
28124
28156
  return { conversations: [], chats: [] };
@@ -28136,7 +28168,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
28136
28168
  return { conversations: conversations2, chats: chats2 };
28137
28169
  }, "conversationEligibility");
28138
28170
 
28139
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
28171
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
28140
28172
  import { createHash as createHash9 } from "node:crypto";
28141
28173
  var EVIDENCE_BYTES = 64 * 1024;
28142
28174
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -28286,7 +28318,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
28286
28318
  return result;
28287
28319
  }, "rankingEvidence");
28288
28320
 
28289
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/queries.js
28321
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/queries.js
28290
28322
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
28291
28323
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
28292
28324
  if (execution.corpus === "mail")
@@ -28305,7 +28337,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
28305
28337
  };
28306
28338
  }, "queriesStoreOver");
28307
28339
 
28308
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
28340
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
28309
28341
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
28310
28342
  const { database, now: now2 } = context;
28311
28343
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -28344,10 +28376,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
28344
28376
  }));
28345
28377
  }, "chatEventsOf");
28346
28378
 
28347
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28379
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28348
28380
  import { createHash as createHash10 } from "node:crypto";
28349
28381
 
28350
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/calendar.js
28382
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/calendar.js
28351
28383
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
28352
28384
  const format = new Intl.DateTimeFormat("en-CA", {
28353
28385
  timeZone: zone,
@@ -28362,7 +28394,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
28362
28394
  };
28363
28395
  }, "calendarKey");
28364
28396
 
28365
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/retention.js
28397
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/retention.js
28366
28398
  var RETENTION_TOLERANCE = 864e5;
28367
28399
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
28368
28400
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -28416,7 +28448,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
28416
28448
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
28417
28449
  }, "retentionCohorts");
28418
28450
 
28419
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28451
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28420
28452
  var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
28421
28453
  var week = /* @__PURE__ */ __name((day) => {
28422
28454
  const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
@@ -28552,7 +28584,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
28552
28584
  };
28553
28585
  }, "retentionQuery");
28554
28586
 
28555
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
28587
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
28556
28588
  var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
28557
28589
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
28558
28590
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -28683,7 +28715,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
28683
28715
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
28684
28716
  })), "trackedChats");
28685
28717
 
28686
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/roster.js
28718
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/roster.js
28687
28719
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
28688
28720
  const { database } = context;
28689
28721
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -28739,7 +28771,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
28739
28771
  };
28740
28772
  }, "rosterStoreOver");
28741
28773
 
28742
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
28774
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
28743
28775
  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");
28744
28776
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
28745
28777
  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 ?`);
@@ -28763,7 +28795,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
28763
28795
  }
28764
28796
  }, "backfillNormalized");
28765
28797
 
28766
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
28798
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
28767
28799
  var INDEX2 = "message_words";
28768
28800
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
28769
28801
  const row2 = indexRow(database, INDEX2);
@@ -28890,7 +28922,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
28890
28922
  });
28891
28923
  }, "resetSearchIndex");
28892
28924
 
28893
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28925
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28894
28926
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
28895
28927
  const filled2 = { stemmed: 0, drained: 0 };
28896
28928
  const before2 = stemsState(database);
@@ -28985,7 +29017,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
28985
29017
  return resetStems(database, { now: now2 });
28986
29018
  }, "followDefaultStemmers");
28987
29019
 
28988
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
29020
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
28989
29021
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
28990
29022
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
28991
29023
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -29007,7 +29039,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
29007
29039
  });
29008
29040
  }, "termCandidates");
29009
29041
 
29010
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/search-index.js
29042
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/search-index.js
29011
29043
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
29012
29044
  const { database } = context;
29013
29045
  const stemmerFor2 = stemmerCache();
@@ -29029,7 +29061,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
29029
29061
  };
29030
29062
  }, "searchIndexStoreOver");
29031
29063
 
29032
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
29064
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
29033
29065
  var HISTORY_KEPT = 1e3;
29034
29066
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
29035
29067
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -29098,7 +29130,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
29098
29130
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
29099
29131
  }, "clearHistory");
29100
29132
 
29101
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/searches.js
29133
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/searches.js
29102
29134
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
29103
29135
  const { database } = context;
29104
29136
  return {
@@ -29122,7 +29154,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
29122
29154
  };
29123
29155
  }, "searchesStoreOver");
29124
29156
 
29125
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
29157
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
29126
29158
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
29127
29159
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
29128
29160
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -29165,7 +29197,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
29165
29197
  };
29166
29198
  }, "agentActionsStoreOver");
29167
29199
 
29168
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
29200
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
29169
29201
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
29170
29202
  }) => {
29171
29203
  const { database, now: now2 } = context;
@@ -29224,7 +29256,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
29224
29256
  };
29225
29257
  }, "botUpdateStoreOver");
29226
29258
 
29227
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
29259
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
29228
29260
  var DAY4 = 864e5;
29229
29261
  var listEvents = /* @__PURE__ */ __name((database, filter) => {
29230
29262
  const clauses = ["e.deleted_at IS NULL"];
@@ -29309,7 +29341,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
29309
29341
  return database.prepare(`SELECT e.* FROM events e WHERE ${clauses.join(" AND ")} ORDER BY ${filter.newest ? "e.starts_at DESC, e.id DESC" : "e.starts_at, e.id"} LIMIT ? OFFSET ?`).all(...params, limit, offset).map(eventOf);
29310
29342
  }, "listEvents");
29311
29343
 
29312
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
29344
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
29313
29345
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
29314
29346
  id: Number(row2.id),
29315
29347
  accountId: Number(row2.account_id),
@@ -29889,7 +29921,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
29889
29921
  };
29890
29922
  }, "eventStoreOver");
29891
29923
 
29892
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
29924
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
29893
29925
  var CATALOG_QUERY = defineQuery({
29894
29926
  entity: "document",
29895
29927
  backend: "sql",
@@ -30131,7 +30163,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
30131
30163
  };
30132
30164
  }, "catalogStoreOver");
30133
30165
 
30134
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/context/evidence.js
30166
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/context/evidence.js
30135
30167
  import { createHash as createHash11 } from "node:crypto";
30136
30168
  var CONTEXT_MAX_READ_BYTES = 262144;
30137
30169
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -30229,7 +30261,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
30229
30261
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
30230
30262
  }, "contextEvidenceRequest");
30231
30263
 
30232
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
30264
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
30233
30265
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
30234
30266
  var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
30235
30267
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -30242,7 +30274,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
30242
30274
  THEN 'source-modified' ELSE 'stored-update' END`;
30243
30275
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
30244
30276
 
30245
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
30277
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
30246
30278
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
30247
30279
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
30248
30280
  signal?.throwIfAborted();
@@ -30341,7 +30373,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
30341
30373
  });
30342
30374
  }, "readMeetingContextEvidence");
30343
30375
 
30344
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
30376
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
30345
30377
  var corpora = {
30346
30378
  message: {
30347
30379
  table: "messages",
@@ -30570,7 +30602,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
30570
30602
  }
30571
30603
  }), "contextRecordsOver");
30572
30604
 
30573
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
30605
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
30574
30606
  var NOTE_FIELDS = [
30575
30607
  "text",
30576
30608
  "exact",
@@ -31000,7 +31032,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
31000
31032
  };
31001
31033
  }, "noteSearchOver");
31002
31034
 
31003
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
31035
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
31004
31036
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
31005
31037
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
31006
31038
  var EVENT_CORPUS = {
@@ -31132,7 +31164,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
31132
31164
  };
31133
31165
  }, "eventSearchOver");
31134
31166
 
31135
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
31167
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
31136
31168
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
31137
31169
  var reference = /* @__PURE__ */ __name((raw) => {
31138
31170
  if (/^document:[1-9]\d*$/.test(raw))
@@ -31145,7 +31177,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
31145
31177
  }, "reference");
31146
31178
  var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
31147
31179
 
31148
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/domain/moment.js
31180
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/domain/moment.js
31149
31181
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
31150
31182
  try {
31151
31183
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -31157,7 +31189,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
31157
31189
  }
31158
31190
  }, "calendarMoment");
31159
31191
 
31160
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
31192
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
31161
31193
  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";
31162
31194
  var iso8 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
31163
31195
  var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -31306,7 +31338,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
31306
31338
  };
31307
31339
  }, "factsStoreOver");
31308
31340
 
31309
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
31341
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
31310
31342
  var invalid2 = /* @__PURE__ */ __name((message2) => {
31311
31343
  throw new CliError("validation_error", message2);
31312
31344
  }, "invalid");
@@ -31396,7 +31428,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
31396
31428
  return { snapshot: snapshot2, snapshotParts, previous, outcomes };
31397
31429
  }, "findingsCoreOver");
31398
31430
 
31399
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
31431
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
31400
31432
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
31401
31433
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
31402
31434
  var iso9 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -31543,7 +31575,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
31543
31575
  };
31544
31576
  }, "proposedActionsStoreOver");
31545
31577
 
31546
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
31578
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
31547
31579
  var stale = /* @__PURE__ */ __name(() => {
31548
31580
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
31549
31581
  reason: "evidence-findings.stale"
@@ -31710,7 +31742,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
31710
31742
  };
31711
31743
  }, "evidenceFindingsStoreOver");
31712
31744
 
31713
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
31745
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
31714
31746
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
31715
31747
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
31716
31748
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -31763,7 +31795,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
31763
31795
  }, "forPerson")
31764
31796
  }), "involvementStoreOver");
31765
31797
 
31766
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
31798
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
31767
31799
  import { createHash as createHash12 } from "node:crypto";
31768
31800
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
31769
31801
  var id = /* @__PURE__ */ __name((value) => {
@@ -31849,16 +31881,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
31849
31881
  };
31850
31882
  }, "meetingProjectsStoreOver");
31851
31883
 
31852
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31884
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31853
31885
  import { createHash as createHash15 } from "node:crypto";
31854
31886
 
31855
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31887
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31856
31888
  import { createHash as createHash14 } from "node:crypto";
31857
31889
 
31858
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31890
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31859
31891
  import { createHash as createHash13 } from "node:crypto";
31860
31892
 
31861
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
31893
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
31862
31894
  var consolidationId = /* @__PURE__ */ __name((value, field4) => {
31863
31895
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
31864
31896
  throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
@@ -31909,7 +31941,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
31909
31941
  return input;
31910
31942
  }, "consolidationApplyInput");
31911
31943
 
31912
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31944
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31913
31945
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
31914
31946
  id: String(row2.id),
31915
31947
  sourceId: String(row2.source_id),
@@ -31984,7 +32016,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
31984
32016
  }, { beforeCommit: check3 });
31985
32017
  }, "applyTagConsolidation");
31986
32018
 
31987
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
32019
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31988
32020
  var selections = [
31989
32021
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
31990
32022
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -32128,7 +32160,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
32128
32160
  };
32129
32161
  }, "previewRows");
32130
32162
 
32131
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
32163
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
32132
32164
  var kinds = ["project", "tag", "topic"];
32133
32165
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
32134
32166
  if (signal?.aborted)
@@ -32392,7 +32424,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
32392
32424
  };
32393
32425
  }, "vocabularyStoreOver");
32394
32426
 
32395
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
32427
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
32396
32428
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
32397
32429
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
32398
32430
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -32622,7 +32654,7 @@ var knowledgeStoreOver = /* @__PURE__ */ __name((context) => {
32622
32654
  return row2;
32623
32655
  }, "openTask");
32624
32656
  const canonicalTagName = /* @__PURE__ */ __name((name) => canonicalTagNamed(database, name)?.name ?? normalizeTag(name), "canonicalTagName");
32625
- const tagsOf2 = /* @__PURE__ */ __name((list) => [...new Set(list.map(canonicalTagName))], "tagsOf");
32657
+ const tagsOf2 = /* @__PURE__ */ __name((list2) => [...new Set(list2.map(canonicalTagName))], "tagsOf");
32626
32658
  return {
32627
32659
  ...vocabularyStoreOver(context),
32628
32660
  ...meetingProjectsStoreOver(context),
@@ -32914,7 +32946,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
32914
32946
  return key2.padEnd(3, "X");
32915
32947
  }, "projectKey");
32916
32948
 
32917
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
32949
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
32918
32950
  var DAY5 = 864e5;
32919
32951
  var SETTING4 = "logs_pruned_at";
32920
32952
  var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
@@ -32941,7 +32973,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
32941
32973
  };
32942
32974
  }, "logPruner");
32943
32975
 
32944
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
32976
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
32945
32977
  var stale2 = /* @__PURE__ */ __name(() => {
32946
32978
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
32947
32979
  reason: "meeting-findings.stale"
@@ -33110,7 +33142,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
33110
33142
  };
33111
33143
  }, "meetingFindingsStoreOver");
33112
33144
 
33113
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
33145
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
33114
33146
  var RANK_BATCH = 512;
33115
33147
  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";
33116
33148
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -33381,7 +33413,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
33381
33413
  }
33382
33414
  }), "meetingVectorsOver");
33383
33415
 
33384
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
33416
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
33385
33417
  var OTHER_SOURCES = ["document", "note", "email"];
33386
33418
  var TEXTS = {
33387
33419
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -33482,11 +33514,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
33482
33514
  };
33483
33515
  }, "sourceMentionStoreOver");
33484
33516
 
33485
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33517
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33486
33518
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
33487
33519
  import { dirname } from "node:path";
33488
33520
 
33489
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
33521
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
33490
33522
  import { readFileSync as readFileSync3 } from "node:fs";
33491
33523
  var CLIENTS_SETTING = "clients";
33492
33524
  var coreVersion = (() => {
@@ -33544,7 +33576,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
33544
33576
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
33545
33577
  }, "refusalAdvice");
33546
33578
 
33547
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
33579
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
33548
33580
  var GENERATED = [
33549
33581
  {
33550
33582
  "name": "20261010184427_initial",
@@ -34440,7 +34472,7 @@ WHERE json_type(params, '$.selection') = 'object';`
34440
34472
  }
34441
34473
  ];
34442
34474
 
34443
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
34475
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
34444
34476
  var MANIFEST = [
34445
34477
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
34446
34478
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -34521,7 +34553,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
34521
34553
  return migrations;
34522
34554
  }, "generatedMigrations");
34523
34555
 
34524
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/migrations.js
34556
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/migrations.js
34525
34557
  var MIGRATIONS = generatedMigrations();
34526
34558
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
34527
34559
  version INTEGER PRIMARY KEY,
@@ -34574,7 +34606,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
34574
34606
  }
34575
34607
  }, "migrate");
34576
34608
 
34577
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
34609
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
34578
34610
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
34579
34611
  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 ?");
34580
34612
  if (pending.get(0, 1) === void 0)
@@ -34596,7 +34628,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
34596
34628
  }
34597
34629
  }, "fillJoinKeys");
34598
34630
 
34599
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
34631
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
34600
34632
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
34601
34633
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
34602
34634
  try {
@@ -34609,8 +34641,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
34609
34641
  }, "openSqlite");
34610
34642
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
34611
34643
  quietSqliteWarning();
34612
- const { drizzle } = await import("./node-SZAO6HTA.js");
34613
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-O34FFLRV.js");
34644
+ const { drizzle } = await import("./node-OXT7WE2T.js");
34645
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-X2PSEHA4.js");
34614
34646
  const client = await nodeClient(path, { readOnly });
34615
34647
  try {
34616
34648
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -34620,8 +34652,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
34620
34652
  }
34621
34653
  }, "openUnderNode");
34622
34654
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
34623
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-TTTKY7H2.js");
34624
- const { drizzle } = await import("./bun-B7YXDIMT.js");
34655
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-5S7TQ4SG.js");
34656
+ const { drizzle } = await import("./bun-WAX4QHW5.js");
34625
34657
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
34626
34658
  try {
34627
34659
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -34631,7 +34663,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
34631
34663
  }
34632
34664
  }, "openUnderBun");
34633
34665
 
34634
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
34666
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
34635
34667
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
34636
34668
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
34637
34669
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -34646,7 +34678,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
34646
34678
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
34647
34679
  }, "assertReadCompatible");
34648
34680
 
34649
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
34681
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
34650
34682
  var BACKFILL_ON_OPEN = 5e3;
34651
34683
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
34652
34684
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -34702,13 +34734,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
34702
34734
  }
34703
34735
  }, "openStoreContext");
34704
34736
 
34705
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34737
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34706
34738
  import { createHash as createHash17 } from "node:crypto";
34707
34739
 
34708
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34740
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34709
34741
  import { createHash as createHash16 } from "node:crypto";
34710
34742
 
34711
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
34743
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
34712
34744
  var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
34713
34745
  var ref = text3(2048);
34714
34746
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -34774,7 +34806,7 @@ var projectAnnotationsSchema = strictObject({
34774
34806
  }))
34775
34807
  });
34776
34808
 
34777
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34809
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34778
34810
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
34779
34811
  var invalid5 = /* @__PURE__ */ __name((field4) => {
34780
34812
  throw new CliError("validation_error", `invalid project annotations.${field4}`);
@@ -34907,7 +34939,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
34907
34939
  return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
34908
34940
  }, "projectAnnotationsFingerprint");
34909
34941
 
34910
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34942
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34911
34943
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
34912
34944
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
34913
34945
  var targetSchema = strictObject({
@@ -35014,7 +35046,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
35014
35046
  }, "planBoundProjectAnnotations");
35015
35047
  var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
35016
35048
 
35017
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
35049
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
35018
35050
  import { createHash as createHash18 } from "node:crypto";
35019
35051
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
35020
35052
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -35108,7 +35140,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
35108
35140
  })).digest("hex");
35109
35141
  }, "projectAnnotationSnapshotFingerprint");
35110
35142
 
35111
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
35143
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
35112
35144
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
35113
35145
  if (!request || typeof request !== "object" || Array.isArray(request))
35114
35146
  throw new CliError("validation_error", "project annotation request is required");
@@ -35125,7 +35157,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
35125
35157
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
35126
35158
  }, "projectAnnotationRequest");
35127
35159
 
35128
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
35160
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
35129
35161
  var SnapshotBudget = class {
35130
35162
  static {
35131
35163
  __name(this, "SnapshotBudget");
@@ -35151,13 +35183,13 @@ var SnapshotBudget = class {
35151
35183
  }
35152
35184
  };
35153
35185
 
35154
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35186
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35155
35187
  import { createHash as createHash20 } from "node:crypto";
35156
35188
 
35157
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
35189
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
35158
35190
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
35159
35191
 
35160
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
35192
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
35161
35193
  import { createHash as createHash19 } from "node:crypto";
35162
35194
  var invalid7 = /* @__PURE__ */ __name(() => {
35163
35195
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -35300,7 +35332,7 @@ var ProjectSnapshotSources = class {
35300
35332
  }
35301
35333
  };
35302
35334
 
35303
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
35335
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
35304
35336
  var unsupported = /* @__PURE__ */ __name(() => {
35305
35337
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
35306
35338
  }, "unsupported");
@@ -35471,7 +35503,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
35471
35503
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
35472
35504
  }), "projectAnnotationSnapshot");
35473
35505
 
35474
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35506
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35475
35507
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
35476
35508
  const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
35477
35509
  const sources = new ProjectSnapshotSources(database, budget);
@@ -35533,7 +35565,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
35533
35565
  };
35534
35566
  }), "previewAnnotationSnapshot");
35535
35567
 
35536
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
35568
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
35537
35569
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
35538
35570
  const mappings = { ...bindings };
35539
35571
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -35575,7 +35607,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
35575
35607
  return mappings;
35576
35608
  }, "restoreAnnotationRecords");
35577
35609
 
35578
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
35610
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
35579
35611
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
35580
35612
  async preview(request) {
35581
35613
  const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
@@ -35605,7 +35637,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
35605
35637
  }
35606
35638
  }), "projectAnnotationStoreOver");
35607
35639
 
35608
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
35640
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
35609
35641
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
35610
35642
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
35611
35643
  let merged = { from: from2, to };
@@ -35618,7 +35650,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
35618
35650
  }, "markRange");
35619
35651
  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");
35620
35652
 
35621
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
35653
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
35622
35654
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
35623
35655
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
35624
35656
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -35628,7 +35660,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
35628
35660
  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);
35629
35661
  }, "setTaskRulesStop");
35630
35662
 
35631
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sync.js
35663
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sync.js
35632
35664
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
35633
35665
  const { database } = context;
35634
35666
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -35684,21 +35716,21 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
35684
35716
  };
35685
35717
  }, "syncStoreOver");
35686
35718
 
35687
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/tags.js
35719
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/tags.js
35688
35720
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
35689
35721
  const { database } = context;
35690
35722
  return {
35691
- addTags: /* @__PURE__ */ __name(async (key2, target, list) => {
35723
+ addTags: /* @__PURE__ */ __name(async (key2, target, list2) => {
35692
35724
  let added = [];
35693
35725
  write(database, () => {
35694
- added = addTags(context, targetThing(context, key2, target), list);
35726
+ added = addTags(context, targetThing(context, key2, target), list2);
35695
35727
  });
35696
35728
  return added;
35697
35729
  }, "addTags"),
35698
- removeTags: /* @__PURE__ */ __name(async (key2, target, list, source2) => {
35730
+ removeTags: /* @__PURE__ */ __name(async (key2, target, list2, source2) => {
35699
35731
  let removed = [];
35700
35732
  write(database, () => {
35701
- removed = removeTags(context, targetThing(context, key2, target), list, source2);
35733
+ removed = removeTags(context, targetThing(context, key2, target), list2, source2);
35702
35734
  });
35703
35735
  return removed;
35704
35736
  }, "removeTags"),
@@ -35706,7 +35738,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
35706
35738
  };
35707
35739
  }, "tagsStoreOver");
35708
35740
 
35709
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
35741
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
35710
35742
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
35711
35743
  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
35712
35744
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -35833,7 +35865,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
35833
35865
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
35834
35866
  }, "savePictureChunks");
35835
35867
 
35836
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
35868
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
35837
35869
  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,
35838
35870
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
35839
35871
  FROM messages m
@@ -35922,7 +35954,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
35922
35954
  return plain2(best(found2));
35923
35955
  }, "nearestMessages");
35924
35956
 
35925
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/vectors.js
35957
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/vectors.js
35926
35958
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
35927
35959
  const { database } = context;
35928
35960
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -36180,7 +36212,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
36180
36212
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
36181
36213
  }), "vectorsStoreOver");
36182
36214
 
36183
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
36215
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
36184
36216
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
36185
36217
  import { dirname as dirname2, join as join2 } from "node:path";
36186
36218
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -36268,10 +36300,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
36268
36300
  }
36269
36301
  }, "lastBackup");
36270
36302
 
36271
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/providers.js
36303
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/providers.js
36272
36304
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
36273
36305
 
36274
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
36306
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
36275
36307
  var COUNTED_TABLES = [
36276
36308
  "accounts",
36277
36309
  "chats",
@@ -36356,7 +36388,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
36356
36388
  };
36357
36389
  }, "storeContents");
36358
36390
 
36359
- // node_modules/.pnpm/@wirecat+cli-core@0.519.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_3a77a7242330d89656a32c8be893f1d1/node_modules/@wirecat/cli-core/dist/store/store.js
36391
+ // node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/store.js
36360
36392
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
36361
36393
  const context = await openStoreContext(options);
36362
36394
  try {
@@ -36609,6 +36641,7 @@ export {
36609
36641
  titlePart,
36610
36642
  AGENDA_COLUMNS,
36611
36643
  correctWords,
36644
+ THREAD_COLUMNS,
36612
36645
  threadConversation,
36613
36646
  messageOfEmail,
36614
36647
  resetAttachmentWords,