@wirecat/cli-memo 0.131.33 → 0.131.34

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 (108) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-I67AQBML.js → all-profiles-GPFKMOBB.js} +5 -5
  3. package/dist/bundle/{anthropic-TAN7BXEI.js → anthropic-ASHT7U76.js} +3 -3
  4. package/dist/bundle/{app-server-BB6D3T5A.js → app-server-D3IL4M6V.js} +35 -35
  5. package/dist/bundle/auto-BL5FF576.js +86 -0
  6. package/dist/bundle/{bun-UQEFISW2.js → bun-EIOFQKTA.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-2QF3TO47.js → bun-sqlite-YIX2BVSZ.js} +2 -2
  8. package/dist/bundle/{chunk-MI6OKBKQ.js → chunk-26I6JRFH.js} +4 -4
  9. package/dist/bundle/{chunk-NOBWIWEE.js → chunk-2RDJLWOY.js} +2 -2
  10. package/dist/bundle/{chunk-NAKJLG6G.js → chunk-3W4HD6ZQ.js} +5 -5
  11. package/dist/bundle/{chunk-SN3VTCKM.js → chunk-47KEZ3AX.js} +12 -12
  12. package/dist/bundle/{chunk-3DDGDOTM.js → chunk-4VJJEIVC.js} +5 -5
  13. package/dist/bundle/{chunk-KBSN3KOJ.js → chunk-5HVQTBDA.js} +20 -20
  14. package/dist/bundle/{chunk-3CVPUL6V.js → chunk-5OCV4UG5.js} +2 -2
  15. package/dist/bundle/{chunk-BFLYYQZ7.js → chunk-6PTJTITL.js} +3 -3
  16. package/dist/bundle/{chunk-BT6ZZUXC.js → chunk-7PQZBIBH.js} +54 -54
  17. package/dist/bundle/{chunk-WSSMVWI6.js → chunk-7YECAMPV.js} +43 -43
  18. package/dist/bundle/{chunk-DUQGOBGY.js → chunk-AQQSOZ57.js} +9 -9
  19. package/dist/bundle/{chunk-5DEHFWR4.js → chunk-BN5H2M75.js} +1 -1
  20. package/dist/bundle/{chunk-4BDZUM4Z.js → chunk-BRG5MJLL.js} +1 -1
  21. package/dist/bundle/{chunk-YGKZOBRU.js → chunk-BWVE7V4A.js} +10 -10
  22. package/dist/bundle/{chunk-OGOMIZVL.js → chunk-C7AXGHGM.js} +1 -1
  23. package/dist/bundle/{chunk-LJZAVL4S.js → chunk-CL6MHRXX.js} +2 -2
  24. package/dist/bundle/{chunk-PVKETTTH.js → chunk-D22HTXOR.js} +7 -7
  25. package/dist/bundle/{chunk-R37MXUSP.js → chunk-D5LDALYF.js} +11 -11
  26. package/dist/bundle/{chunk-FZXOHGOA.js → chunk-DOXKMSML.js} +3 -3
  27. package/dist/bundle/{chunk-LUX5CPKS.js → chunk-DU6LCIHP.js} +1 -1
  28. package/dist/bundle/{chunk-BUYST3RY.js → chunk-E7NEGYRF.js} +1 -1
  29. package/dist/bundle/{chunk-KTGIARY4.js → chunk-EGB2R53R.js} +1 -1
  30. package/dist/bundle/{chunk-AP3AG2BB.js → chunk-EQR2QVP3.js} +4 -4
  31. package/dist/bundle/{chunk-ABORNS53.js → chunk-EVD3X6HS.js} +7 -7
  32. package/dist/bundle/{chunk-5JAYP233.js → chunk-G7TQ5W5Z.js} +7 -7
  33. package/dist/bundle/{chunk-JCFO4LQL.js → chunk-GWMA7EU5.js} +1 -1
  34. package/dist/bundle/{chunk-MF2IXW4D.js → chunk-GY27B6XK.js} +1 -1
  35. package/dist/bundle/{chunk-7OSMWDV3.js → chunk-H7N5JMQN.js} +2 -2
  36. package/dist/bundle/{chunk-2Y2UWMJX.js → chunk-I4SJXEDS.js} +5 -5
  37. package/dist/bundle/{chunk-PI5XHH3B.js → chunk-IAFUPD2G.js} +5 -5
  38. package/dist/bundle/{chunk-L5XW7SRP.js → chunk-JD4EEKNA.js} +1 -1
  39. package/dist/bundle/{chunk-P7AWDFQW.js → chunk-KG7APWFM.js} +1 -1
  40. package/dist/bundle/{chunk-YBSILL43.js → chunk-L43BXXBS.js} +4 -4
  41. package/dist/bundle/{chunk-LDEPGWLS.js → chunk-LC5SAWVM.js} +27 -27
  42. package/dist/bundle/{chunk-6MDFXQ3P.js → chunk-MQ7IHK4Z.js} +257 -280
  43. package/dist/bundle/{chunk-536BN5HJ.js → chunk-NDEA2YAQ.js} +1 -1
  44. package/dist/bundle/{chunk-MZMKZ3FS.js → chunk-NECGI52P.js} +8 -8
  45. package/dist/bundle/{chunk-IT5OORGL.js → chunk-NPLZ67KU.js} +1 -1
  46. package/dist/bundle/{chunk-RRLIMG4U.js → chunk-ONEW2BND.js} +32 -32
  47. package/dist/bundle/{chunk-QMK5MB3I.js → chunk-RQVC4ETN.js} +2 -2
  48. package/dist/bundle/{chunk-2S5YZCD4.js → chunk-RTPTCTH6.js} +2 -2
  49. package/dist/bundle/{chunk-62H5HS77.js → chunk-S62WXHPD.js} +6 -6
  50. package/dist/bundle/{chunk-N75EWKKC.js → chunk-SMAODNHO.js} +1 -1
  51. package/dist/bundle/{chunk-BSPNSDJR.js → chunk-TVHCOWJD.js} +4 -4
  52. package/dist/bundle/{chunk-3TEBUFO4.js → chunk-UBUKFDMN.js} +1 -1
  53. package/dist/bundle/{chunk-EN3D3M3X.js → chunk-UW2FRDLZ.js} +2 -2
  54. package/dist/bundle/{chunk-UMWPJXNA.js → chunk-VE2NDXFO.js} +3 -3
  55. package/dist/bundle/{chunk-SLY3522P.js → chunk-WROCO6RJ.js} +4 -4
  56. package/dist/bundle/{chunk-KJBKP66D.js → chunk-XV4E2XGC.js} +3 -3
  57. package/dist/bundle/{chunk-JOUN3RQQ.js → chunk-XZ3XUN4R.js} +162 -178
  58. package/dist/bundle/{chunk-S6HHL43A.js → chunk-Y3NJODLW.js} +1 -1
  59. package/dist/bundle/{chunk-GUCICZ5E.js → chunk-Y3XTA24Z.js} +4 -4
  60. package/dist/bundle/{chunk-AFCZMG3T.js → chunk-YJMQBJWU.js} +20 -20
  61. package/dist/bundle/{chunk-FQ23ENBP.js → chunk-YZU5HNYY.js} +275 -275
  62. package/dist/bundle/{chunk-X5WJDJ7B.js → chunk-ZE5HUZJV.js} +9 -9
  63. package/dist/bundle/{chunk-HU2UNNN5.js → chunk-ZV2K5I2G.js} +1 -1
  64. package/dist/bundle/{chunk-5M4CW3PM.js → chunk-ZWBLSTFE.js} +365 -314
  65. package/dist/bundle/{command-contract-LRGVHRDS.js → command-contract-X3I3J4AF.js} +11 -11
  66. package/dist/bundle/{decode-AC2QFP22.js → decode-BF5RUGSR.js} +2 -2
  67. package/dist/bundle/{echarts-2LGYCSJM.js → echarts-ADL7T3Q3.js} +2 -2
  68. package/dist/bundle/{embed-5G5NJRTM.js → embed-DOTUACTV.js} +3 -3
  69. package/dist/bundle/{embedder-AWGIIEIK.js → embedder-TMR4UP7L.js} +6 -6
  70. package/dist/bundle/{entry-J2G7NST5.js → entry-RPG5J5UQ.js} +4 -4
  71. package/dist/bundle/failure-4CTYFX6P.js +66 -0
  72. package/dist/bundle/{first-run-CIE4REGV.js → first-run-ONCIVD42.js} +5 -5
  73. package/dist/bundle/{first-screen-PLNL6V5J.js → first-screen-4LRYED7X.js} +12 -12
  74. package/dist/bundle/{instructions-5236MVDG.js → instructions-QVBHRTPG.js} +1 -1
  75. package/dist/bundle/{mcp-IRYWZZMF.js → mcp-4AFVFHYE.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-7746MVI2.js → node-6OXRSWHH.js} +2 -2
  78. package/dist/bundle/{node-sqlite-2JD5RF5A.js → node-sqlite-TG4H4T3L.js} +3 -3
  79. package/dist/bundle/{oauth-BUMW77DB.js → oauth-OXKNZOKZ.js} +4 -4
  80. package/dist/bundle/{open-CXUGW7QC.js → open-WW3W42QS.js} +2 -2
  81. package/dist/bundle/{openai-ORFEPFYD.js → openai-MNHTZHBT.js} +7 -7
  82. package/dist/bundle/{process-JXXYNYHP.js → process-TCXURVHD.js} +1 -1
  83. package/dist/bundle/{program-4RYVZYD2.js → program-GYW7IHWQ.js} +64 -73
  84. package/dist/bundle/{prompt-EHLY4L77.js → prompt-TGGJDYAS.js} +2 -2
  85. package/dist/bundle/{recognize-ES7MH57V.js → recognize-WV4MK35T.js} +1 -1
  86. package/dist/bundle/{remote-EZ76X2VI.js → remote-RQVV5MFO.js} +4 -4
  87. package/dist/bundle/{rerank-CDIZ6AA6.js → rerank-OJPVJGX5.js} +4 -4
  88. package/dist/bundle/{serve-YRSGBTJY.js → serve-KG7HPG5B.js} +6 -6
  89. package/dist/bundle/{server-MW5247KA.js → server-ESYNVVQC.js} +50 -50
  90. package/dist/bundle/server-TQVOXRHP.js +48 -0
  91. package/dist/bundle/server-YKMBFXQ4.js +61 -0
  92. package/dist/bundle/{state-S6A5VAWR.js → state-G7KN3S6X.js} +3 -3
  93. package/dist/bundle/{store-O5CDNS3U.js → store-GI2FLGUI.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-CQ3KI7LW.js +48 -0
  95. package/dist/bundle/update-NP3I4GCG.js +69 -0
  96. package/dist/knowledge/project-status-command.d.ts.map +1 -1
  97. package/dist/knowledge/project-status-command.js +12 -19
  98. package/dist/knowledge/project-status-command.js.map +1 -1
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +2 -2
  102. package/dist/bundle/auto-6555QOPH.js +0 -86
  103. package/dist/bundle/failure-7SDDOWOC.js +0 -66
  104. package/dist/bundle/server-EUYRPM4X.js +0 -48
  105. package/dist/bundle/server-OHIH2CMF.js +0 -61
  106. package/dist/bundle/store-maintenance-command-3OFVJT4R.js +0 -48
  107. package/dist/bundle/update-RC5CLYFY.js +0 -69
  108. /package/dist/bundle/{chunk-JB5P5WSQ.js → chunk-3RFXKBZA.js} +0 -0
@@ -93,11 +93,11 @@ import {
93
93
  validateQuery,
94
94
  walkQuery,
95
95
  zonedMoment
96
- } from "./chunk-BT6ZZUXC.js";
96
+ } from "./chunk-7PQZBIBH.js";
97
97
  import {
98
98
  holdsCredential,
99
99
  secretNamed
100
- } from "./chunk-N75EWKKC.js";
100
+ } from "./chunk-SMAODNHO.js";
101
101
  import {
102
102
  DEFAULT_STEMMERS,
103
103
  DEFAULT_STEMMERS_VERSION,
@@ -110,26 +110,26 @@ import {
110
110
  fold,
111
111
  normalize,
112
112
  parseStemmers
113
- } from "./chunk-ABORNS53.js";
113
+ } from "./chunk-EVD3X6HS.js";
114
114
  import {
115
115
  DEFAULT_TASK_CATEGORIES,
116
116
  sharedConfigPath,
117
117
  storedTaskCategories,
118
118
  taskCategoriesReader
119
- } from "./chunk-YBSILL43.js";
119
+ } from "./chunk-L43BXXBS.js";
120
120
  import {
121
121
  refuseOwnerStoreInTests,
122
122
  storePath
123
- } from "./chunk-IT5OORGL.js";
123
+ } from "./chunk-NPLZ67KU.js";
124
124
  import {
125
125
  quietSqliteWarning,
126
126
  storeCapable
127
- } from "./chunk-2Y2UWMJX.js";
127
+ } from "./chunk-I4SJXEDS.js";
128
128
  import {
129
129
  PRAGMAS,
130
130
  TIME_LIMIT_FUNCTION,
131
131
  TimeLimitReached
132
- } from "./chunk-536BN5HJ.js";
132
+ } from "./chunk-NDEA2YAQ.js";
133
133
  import {
134
134
  array,
135
135
  boolean,
@@ -179,12 +179,12 @@ import {
179
179
  sql,
180
180
  sqliteTable,
181
181
  text
182
- } from "./chunk-JCFO4LQL.js";
182
+ } from "./chunk-GWMA7EU5.js";
183
183
  import {
184
184
  __name
185
185
  } from "./chunk-ZVVMGPBJ.js";
186
186
 
187
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/account-store.js
187
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/account-store.js
188
188
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
189
189
  const methods = whole;
190
190
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -312,7 +312,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
312
312
  };
313
313
  }, "bindAccount");
314
314
 
315
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/locator.js
315
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/locator.js
316
316
  var SCHEME = "msg:";
317
317
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
318
318
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -326,7 +326,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
326
326
  return { provider, account, chat: chat2, message: message2 };
327
327
  }, "parseLocator");
328
328
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/references.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/references.js
330
330
  var SIMPLE_REFERENCES = [
331
331
  "note",
332
332
  "document",
@@ -474,7 +474,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
474
474
  return match !== null && byPrefix.has(match[1]);
475
475
  }, "looksLikeReference");
476
476
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/providers.js
477
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/providers.js
478
478
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
479
479
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
480
480
  var PROVIDERS = [
@@ -590,7 +590,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
590
590
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
591
591
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
592
592
 
593
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/query.js
593
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/query.js
594
594
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
595
595
  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");
596
596
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -613,7 +613,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
613
613
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
614
614
  }, "sourceOf");
615
615
 
616
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/account-list.js
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/account-list.js
617
617
  var ACCOUNT_GROUPS = "accountGroups";
618
618
  var ACCOUNT_GROUPS_SETTING = "account_groups";
619
619
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -800,7 +800,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
800
800
  return { accounts: [...chosen.values()], skipped };
801
801
  }, "fitting");
802
802
 
803
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
803
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
804
804
  var IndexBuilderOn = class {
805
805
  static {
806
806
  __name(this, "IndexBuilderOn");
@@ -995,7 +995,7 @@ function alias(table, alias2) {
995
995
  }
996
996
  __name(alias, "alias");
997
997
 
998
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
998
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
999
999
  var ENTITY_TABLES = {
1000
1000
  account: "accounts",
1001
1001
  attachment: "attachments",
@@ -1038,7 +1038,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
1038
1038
  return { table, pointer, type, count, known: known2 };
1039
1039
  }).filter(({ count }) => count > 0)), "orphanPointers");
1040
1040
 
1041
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1041
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1042
1042
  var canonicalTags = sqliteTable("canonical_tags", {
1043
1043
  id: integer("id").primaryKey(),
1044
1044
  name: text("name").notNull().unique(),
@@ -1047,7 +1047,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
1047
1047
  updatedAt: integer("updated_at").notNull()
1048
1048
  });
1049
1049
 
1050
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1050
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1051
1051
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1052
1052
  sourceKey: text("source_key").notNull(),
1053
1053
  collection: text("collection").notNull(),
@@ -1057,13 +1057,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1057
1057
  createdAt: integer("created_at").notNull()
1058
1058
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
1059
1059
 
1060
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1060
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1061
1061
  var documentIndexPending = sqliteTable("document_index_pending", {
1062
1062
  id: integer("id").notNull(),
1063
1063
  indexableType: text("indexable_type").notNull()
1064
1064
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
1065
1065
 
1066
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1066
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1067
1067
  var tagRedirects = sqliteTable("tag_redirects", {
1068
1068
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
1069
1069
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -1089,7 +1089,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
1089
1089
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
1090
1090
  ]);
1091
1091
 
1092
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1092
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1093
1093
  var accounts = sqliteTable("accounts", {
1094
1094
  id: integer("id").primaryKey(),
1095
1095
  provider: text("provider").notNull(),
@@ -2756,7 +2756,7 @@ var storeSettings = sqliteTable("store_settings", {
2756
2756
  at: integer("at").notNull()
2757
2757
  });
2758
2758
 
2759
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2759
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2760
2760
  var ARMS = [
2761
2761
  [
2762
2762
  "message",
@@ -2883,7 +2883,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2883
2883
  return recomputed;
2884
2884
  }, "drainInvolvementQueue");
2885
2885
 
2886
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2886
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2887
2887
  import { domainToUnicode } from "node:url";
2888
2888
 
2889
2889
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12905,7 +12905,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12905
12905
  }, "oa");
12906
12906
  var na = { parse: O, get: aa, isValid: oa };
12907
12907
 
12908
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12908
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12909
12909
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12910
12910
  var ID = /^[\w-]{10,}$/;
12911
12911
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12946,7 +12946,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
12946
12946
  return { url, documentId: googleDocumentId(url) };
12947
12947
  }), "googleDocumentLinks");
12948
12948
 
12949
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12949
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12950
12950
  var PHONE_PLANS = [
12951
12951
  {
12952
12952
  country: "us",
@@ -13326,7 +13326,7 @@ var PHONE_PLANS = [
13326
13326
  }
13327
13327
  ];
13328
13328
 
13329
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/phones.js
13329
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/phones.js
13330
13330
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
13331
13331
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
13332
13332
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -13367,7 +13367,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
13367
13367
  return void 0;
13368
13368
  }, "nationalPhone");
13369
13369
 
13370
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/places.js
13370
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/places.js
13371
13371
  var BEFORE = [
13372
13372
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
13373
13373
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13627,7 +13627,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
13627
13627
  return found2.sort((a, b) => a.start - b.start);
13628
13628
  }, "findPlaces");
13629
13629
 
13630
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13630
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13631
13631
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13632
13632
  var MENTION_VERSIONS = {
13633
13633
  phone: 1,
@@ -13817,7 +13817,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13817
13817
  };
13818
13818
  }, "typedPhone");
13819
13819
 
13820
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13820
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13821
13821
  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";
13822
13822
  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";
13823
13823
  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";
@@ -13825,7 +13825,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13825
13825
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13826
13826
  var NAME_WORDS = WORDS.split(" ");
13827
13827
 
13828
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13828
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13829
13829
  var LATIN_TO_CYRILLIC = {
13830
13830
  shch: "\u0449",
13831
13831
  sch: "\u0449",
@@ -14033,7 +14033,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
14033
14033
  return found2;
14034
14034
  }, "findUnknownNames");
14035
14035
 
14036
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14036
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14037
14037
  var NOT_FILES = /* @__PURE__ */ new Set([
14038
14038
  "webpage",
14039
14039
  "share",
@@ -14073,7 +14073,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
14073
14073
  });
14074
14074
  }, "matchDownloads");
14075
14075
 
14076
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14076
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14077
14077
  var QUERY_VERSION = 1;
14078
14078
  var QUERY_LIMITS2 = {
14079
14079
  ...QUERY_LIMITS,
@@ -14109,7 +14109,7 @@ function exhausted(budget) {
14109
14109
  }
14110
14110
  __name(exhausted, "exhausted");
14111
14111
 
14112
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14112
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14113
14113
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
14114
14114
  var literal2 = /* @__PURE__ */ __name((c) => ({
14115
14115
  kind: "char",
@@ -14509,7 +14509,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14509
14509
  return out;
14510
14510
  }, "foldRegex");
14511
14511
 
14512
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14512
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14513
14513
  var PRESET_VERSION = 1;
14514
14514
  var PRESETS = {
14515
14515
  password: {
@@ -14563,7 +14563,7 @@ var PRESETS = {
14563
14563
  }
14564
14564
  };
14565
14565
 
14566
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14566
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14567
14567
  var FIELD_VERSION = 2;
14568
14568
  var UNITS = {
14569
14569
  "": 1,
@@ -15024,12 +15024,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
15024
15024
  return validateFields(parsed3.output);
15025
15025
  }, "validateAst");
15026
15026
 
15027
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15027
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15028
15028
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
15029
15029
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
15030
15030
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
15031
15031
 
15032
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15032
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15033
15033
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
15034
15034
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
15035
15035
  var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
@@ -15053,7 +15053,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
15053
15053
  };
15054
15054
  }, "linkMatch");
15055
15055
 
15056
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15056
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15057
15057
  var SETTING = "phoneCountries";
15058
15058
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
15059
15059
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -15084,7 +15084,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
15084
15084
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
15085
15085
  }, "valueMatch");
15086
15086
 
15087
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15087
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15088
15088
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
15089
15089
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
15090
15090
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -15112,7 +15112,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
15112
15112
  return 2 * intersection2 / (aa2.size + bb.size);
15113
15113
  }, "vocabularySimilarity");
15114
15114
 
15115
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15115
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15116
15116
  import { createHash } from "node:crypto";
15117
15117
  var folded2 = /* @__PURE__ */ __name((name) => {
15118
15118
  try {
@@ -15178,7 +15178,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
15178
15178
  });
15179
15179
  }, "guardTagCreation");
15180
15180
 
15181
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15181
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15182
15182
  var invalid2 = /* @__PURE__ */ __name((message2) => {
15183
15183
  throw new CliError("validation_error", message2);
15184
15184
  }, "invalid");
@@ -15255,7 +15255,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
15255
15255
  };
15256
15256
  }, "createTagRedirectIndex");
15257
15257
 
15258
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15258
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15259
15259
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
15260
15260
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
15261
15261
  if (!row2)
@@ -15283,7 +15283,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
15283
15283
  return snapshot2;
15284
15284
  }, "tagRedirectSnapshot");
15285
15285
 
15286
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15286
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15287
15287
  import { createHash as createHash2 } from "node:crypto";
15288
15288
  var TASK_KEY_PREFIXES = {
15289
15289
  question: "Q",
@@ -15311,7 +15311,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
15311
15311
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
15312
15312
  }, "taskAccountOf");
15313
15313
 
15314
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15314
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15315
15315
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
15316
15316
  var REFERABLE = {
15317
15317
  note: { tombstone: true },
@@ -15476,7 +15476,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
15476
15476
  return row2 ? String(row2.id ?? row2.key) : void 0;
15477
15477
  }, "taskIdOf");
15478
15478
 
15479
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15479
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15480
15480
  var toMs = /* @__PURE__ */ __name((iso13) => {
15481
15481
  if (iso13 === null || iso13 === void 0)
15482
15482
  return null;
@@ -15490,7 +15490,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15490
15490
  var DELIVERY = { delivered: 1, read: 2 };
15491
15491
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15492
15492
 
15493
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15493
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15494
15494
  var TAG_KINDS = ["tag", "topic"];
15495
15495
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15496
15496
  var TAG_TYPE = {
@@ -15693,7 +15693,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15693
15693
  return result;
15694
15694
  }, "tagsOf");
15695
15695
 
15696
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15696
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15697
15697
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15698
15698
  var SPEECH = speech("att");
15699
15699
  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");
@@ -16057,7 +16057,7 @@ var FIELD_COMPILERS = {
16057
16057
  subject
16058
16058
  };
16059
16059
 
16060
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16060
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16061
16061
  var placeOf = /* @__PURE__ */ __name((database) => {
16062
16062
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
16063
16063
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -16073,7 +16073,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
16073
16073
  };
16074
16074
  }, "placeOf");
16075
16075
 
16076
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16076
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16077
16077
  var DRAIN_ON_WRITE = 500;
16078
16078
  var METHOD = "rules";
16079
16079
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -16236,7 +16236,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
16236
16236
  return queued.length;
16237
16237
  }, "drainMentions");
16238
16238
 
16239
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16239
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16240
16240
  var indexRow = /* @__PURE__ */ __name((database, name) => {
16241
16241
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
16242
16242
  if (!exists2)
@@ -16244,7 +16244,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
16244
16244
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
16245
16245
  }, "indexRow");
16246
16246
 
16247
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16247
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16248
16248
  var INDEX = "message_stems";
16249
16249
  var SETTING2 = "searchStemmers";
16250
16250
  var DRAIN_ON_WRITE2 = 500;
@@ -16366,7 +16366,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
16366
16366
  };
16367
16367
  }, "stemmerCache");
16368
16368
 
16369
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16369
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16370
16370
  var SQLITE_BUSY = 5;
16371
16371
  var pause = new Int32Array(new SharedArrayBuffer(4));
16372
16372
  var isBusy = /* @__PURE__ */ __name((error) => {
@@ -16461,7 +16461,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
16461
16461
  }
16462
16462
  }, "read");
16463
16463
 
16464
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16464
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16465
16465
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
16466
16466
  coalesce(CASE k.chunkable_type
16467
16467
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16603,7 +16603,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16603
16603
  }, "dropUnusedVectors");
16604
16604
  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");
16605
16605
 
16606
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16606
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16607
16607
  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({
16608
16608
  target: [accounts.provider, accounts.externalId],
16609
16609
  set: {
@@ -16712,7 +16712,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16712
16712
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16713
16713
  }, "dropOrphanPeople");
16714
16714
 
16715
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16715
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16716
16716
  var FOLDED = [
16717
16717
  { table: "tasks", column: "title" },
16718
16718
  { table: "tasks", column: "close_reason" },
@@ -16749,7 +16749,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
16749
16749
  return filled2;
16750
16750
  }, "fillFolded");
16751
16751
 
16752
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16752
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16753
16753
  var HISTORY_KEY = "$history";
16754
16754
  var objectOf = /* @__PURE__ */ __name((text6) => {
16755
16755
  if (typeof text6 !== "string")
@@ -16825,7 +16825,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
16825
16825
  return rest;
16826
16826
  }, "withoutHistory");
16827
16827
 
16828
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16828
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16829
16829
  import { createHash as createHash3 } from "node:crypto";
16830
16830
  var CHUNK_CHARS = 1200;
16831
16831
  var CHUNK_OVERLAP = 150;
@@ -16930,7 +16930,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16930
16930
  return chunks2;
16931
16931
  }, "cutChunks");
16932
16932
 
16933
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16933
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16934
16934
  var DAY = 864e5;
16935
16935
  var CURRENCY = [
16936
16936
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -17056,7 +17056,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
17056
17056
  return best?.day ?? null;
17057
17057
  }, "dueDayOf");
17058
17058
 
17059
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17059
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17060
17060
  var DAY2 = 864e5;
17061
17061
  var STOP_WORDS = new Set([
17062
17062
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -17211,7 +17211,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
17211
17211
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
17212
17212
  })).sort((a, b) => b.score - a.score), "rankCandidates");
17213
17213
 
17214
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17214
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17215
17215
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
17216
17216
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
17217
17217
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -17482,7 +17482,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
17482
17482
  };
17483
17483
  }, "readiness");
17484
17484
 
17485
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17485
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17486
17486
  var DOCUMENT_PICTURE = "document_picture";
17487
17487
  var SCAN_PAGE2 = 5e3;
17488
17488
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -17545,7 +17545,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
17545
17545
  }, "nearestPictures")
17546
17546
  }), "documentPicturesOver");
17547
17547
 
17548
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17548
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17549
17549
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
17550
17550
  const literal4 = escaped2 ?? plain2 ?? "";
17551
17551
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -17610,7 +17610,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
17610
17610
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
17611
17611
  var bound2 = /* @__PURE__ */ __name(({ sql: text6, params }) => sql.join(text6.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
17612
17612
 
17613
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17613
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17614
17614
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
17615
17615
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
17616
17616
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17700,7 +17700,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17700
17700
  });
17701
17701
  }, "linkMeeting");
17702
17702
 
17703
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17703
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17704
17704
  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), ''))";
17705
17705
  var UNSEARCHED_EVENT_TYPES = [
17706
17706
  "working-location",
@@ -17930,7 +17930,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17930
17930
  return true;
17931
17931
  }, "resetNoteIndex");
17932
17932
 
17933
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17933
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17934
17934
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
17935
17935
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17936
17936
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -17949,7 +17949,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17949
17949
  }
17950
17950
  }, "resolvePersonLinks");
17951
17951
 
17952
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17952
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17953
17953
  var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
17954
17954
  var prepare = /* @__PURE__ */ __name((orm) => ({
17955
17955
  find: orm.select({
@@ -18174,7 +18174,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
18174
18174
  }, "meetingIdentityPk");
18175
18175
  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");
18176
18176
 
18177
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18177
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18178
18178
  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");
18179
18179
  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");
18180
18180
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -18454,7 +18454,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
18454
18454
  }
18455
18455
  }, "replaceAutoTags");
18456
18456
 
18457
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/counters.js
18457
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/counters.js
18458
18458
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
18459
18459
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
18460
18460
  var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
@@ -18473,7 +18473,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
18473
18473
  return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
18474
18474
  }, "counterFreshness");
18475
18475
 
18476
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/context/evidence.js
18476
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/context/evidence.js
18477
18477
  import { createHash as createHash4 } from "node:crypto";
18478
18478
  var CONTEXT_MAX_READ_BYTES = 262144;
18479
18479
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -18571,7 +18571,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
18571
18571
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
18572
18572
  }, "contextEvidenceRequest");
18573
18573
 
18574
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18574
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18575
18575
  var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
18576
18576
  var ACTIVITY = `
18577
18577
  SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
@@ -18688,7 +18688,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
18688
18688
  threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
18689
18689
  }), "mailActivity");
18690
18690
 
18691
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18691
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18692
18692
  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");
18693
18693
  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;
18694
18694
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -18829,7 +18829,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
18829
18829
  return text6 || body2.trim();
18830
18830
  }, "mailOwnText");
18831
18831
 
18832
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18832
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18833
18833
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
18834
18834
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
18835
18835
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -18939,7 +18939,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
18939
18939
  return emails3 + threads;
18940
18940
  }, "drainEmailIndex");
18941
18941
 
18942
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18942
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18943
18943
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
18944
18944
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
18945
18945
  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,
@@ -19037,7 +19037,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
19037
19037
  var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
19038
19038
  SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
19039
19039
 
19040
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19040
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19041
19041
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
19042
19042
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
19043
19043
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -19087,7 +19087,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
19087
19087
  return threads.length;
19088
19088
  }, "markEmailsRestored");
19089
19089
 
19090
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19090
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19091
19091
  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");
19092
19092
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
19093
19093
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -19154,7 +19154,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
19154
19154
  }
19155
19155
  }), "mailRulesOver");
19156
19156
 
19157
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19157
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19158
19158
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
19159
19159
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
19160
19160
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -19162,7 +19162,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
19162
19162
  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);
19163
19163
  }, "reviewLink");
19164
19164
 
19165
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19165
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19166
19166
  function checkMeetingCancelled(signal) {
19167
19167
  if (!signal?.aborted)
19168
19168
  return;
@@ -19173,7 +19173,7 @@ function checkMeetingCancelled(signal) {
19173
19173
  }
19174
19174
  __name(checkMeetingCancelled, "checkMeetingCancelled");
19175
19175
 
19176
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19176
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19177
19177
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
19178
19178
  id: Number(row2.id),
19179
19179
  accountId: Number(row2.account_id),
@@ -19223,7 +19223,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
19223
19223
  createdAt: Number(row2.created_at)
19224
19224
  }), "transcriptRowOf");
19225
19225
 
19226
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19226
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19227
19227
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
19228
19228
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
19229
19229
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -19390,7 +19390,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
19390
19390
  }
19391
19391
  }), "meetingReadsOver");
19392
19392
 
19393
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19393
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19394
19394
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19395
19395
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
19396
19396
  const params = [input.accountId];
@@ -19433,7 +19433,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19433
19433
  return { clauses, params };
19434
19434
  }, "meetingSelectionSql");
19435
19435
 
19436
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19436
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19437
19437
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19438
19438
  async meetingChatLines(input) {
19439
19439
  checkMeetingCancelled(input.signal);
@@ -19461,7 +19461,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19461
19461
  }
19462
19462
  }), "meetingChatLinesOver");
19463
19463
 
19464
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19464
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19465
19465
  var MESSAGE_FIELDS = {
19466
19466
  pk: messages.id,
19467
19467
  nativeId: messages.externalId,
@@ -19632,7 +19632,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
19632
19632
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
19633
19633
  }), "chatActivity");
19634
19634
 
19635
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19635
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19636
19636
  var HIT_FIELDS = {
19637
19637
  ...MESSAGE_FIELDS,
19638
19638
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -19731,7 +19731,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
19731
19731
  };
19732
19732
  }, "directReplies");
19733
19733
 
19734
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19734
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19735
19735
  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");
19736
19736
  var required = /* @__PURE__ */ __name((context, ref3) => {
19737
19737
  const found2 = identityRow(context, ref3);
@@ -19862,7 +19862,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
19862
19862
  }, "mentioning");
19863
19863
  var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
19864
19864
 
19865
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19865
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19866
19866
  var missing2 = /* @__PURE__ */ __name(() => {
19867
19867
  throw new CliError("not_found", "Meeting, participant or selected target not found");
19868
19868
  }, "missing");
@@ -19984,7 +19984,7 @@ function meetingContextLinksOver(context) {
19984
19984
  }
19985
19985
  __name(meetingContextLinksOver, "meetingContextLinksOver");
19986
19986
 
19987
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19987
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19988
19988
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
19989
19989
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
19990
19990
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -20013,7 +20013,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
20013
20013
  return row2 ? summaryText(summaryOf(row2)) : null;
20014
20014
  }, "indexedText");
20015
20015
 
20016
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20016
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20017
20017
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
20018
20018
  var meetingCurrentIndexRows = `
20019
20019
  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
@@ -20044,7 +20044,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
20044
20044
  }, "invalidateMeetingStems");
20045
20045
  var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
20046
20046
 
20047
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20047
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20048
20048
  function meetingHitIndexOver({ database, now: now2 }) {
20049
20049
  return {
20050
20050
  async indexSearch(original) {
@@ -20112,10 +20112,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
20112
20112
  }
20113
20113
  __name(meetingHitIndexOver, "meetingHitIndexOver");
20114
20114
 
20115
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20115
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20116
20116
  import { createHash as createHash5 } from "node:crypto";
20117
20117
 
20118
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20118
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20119
20119
  var trigrams = /* @__PURE__ */ __name((term) => {
20120
20120
  const padded = ` ${term} `;
20121
20121
  const pieces = /* @__PURE__ */ new Set();
@@ -20124,7 +20124,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
20124
20124
  return [...pieces];
20125
20125
  }, "trigrams");
20126
20126
 
20127
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/correct.js
20127
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/correct.js
20128
20128
  var SHORTEST_CORRECTION = 3;
20129
20129
  var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
20130
20130
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -20171,7 +20171,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
20171
20171
  return corrections;
20172
20172
  }, "correctWords");
20173
20173
 
20174
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/garbled.js
20174
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/garbled.js
20175
20175
  var SHORTEST_GARBLED = 4;
20176
20176
  var MOST_WIDENED = 64;
20177
20177
  var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
@@ -20263,7 +20263,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
20263
20263
  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((word2) => word2.term));
20264
20264
  }, "widenWords");
20265
20265
 
20266
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20266
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20267
20267
  import { readFileSync } from "node:fs";
20268
20268
  var loaded;
20269
20269
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -20322,7 +20322,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
20322
20322
  return false;
20323
20323
  }, "knownRussianWord");
20324
20324
 
20325
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20325
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20326
20326
  var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
20327
20327
  var MOST_WORDS = 128;
20328
20328
  var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
@@ -20549,7 +20549,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
20549
20549
  return check3(tree);
20550
20550
  }, "matchMeetingText");
20551
20551
 
20552
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20552
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20553
20553
  var fail3 = /* @__PURE__ */ __name((message2) => {
20554
20554
  throw new CliError("validation_error", message2);
20555
20555
  }, "fail");
@@ -20731,7 +20731,7 @@ function meetingHitSearchOver({ database }) {
20731
20731
  }
20732
20732
  __name(meetingHitSearchOver, "meetingHitSearchOver");
20733
20733
 
20734
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20734
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20735
20735
  var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20736
20736
  async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
20737
20737
  positiveReadInteger(accountId, "accountId");
@@ -20763,7 +20763,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20763
20763
  }
20764
20764
  }), "meetingLanguagesOver");
20765
20765
 
20766
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20766
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20767
20767
  import { createHash as createHash6 } from "node:crypto";
20768
20768
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
20769
20769
  if (value === void 0)
@@ -20853,7 +20853,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
20853
20853
  }
20854
20854
  }), "meetingParticipantSearchOver");
20855
20855
 
20856
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20856
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20857
20857
  var preparationQueries = {
20858
20858
  participants: {
20859
20859
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -20903,7 +20903,7 @@ var preparationQueries = {
20903
20903
  }
20904
20904
  };
20905
20905
 
20906
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20906
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20907
20907
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20908
20908
  async preparationContext(original) {
20909
20909
  const input = validateMeetingPreparationContext(original);
@@ -20944,7 +20944,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20944
20944
  }
20945
20945
  }), "meetingPreparationContextOver");
20946
20946
 
20947
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20947
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20948
20948
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20949
20949
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
20950
20950
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -20958,7 +20958,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20958
20958
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
20959
20959
  )`, "preparationSubjects");
20960
20960
 
20961
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20961
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20962
20962
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
20963
20963
  async preparationKnowledge(original) {
20964
20964
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -21003,7 +21003,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
21003
21003
  }
21004
21004
  }), "meetingPreparationKnowledgeOver");
21005
21005
 
21006
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21006
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21007
21007
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21008
21008
  async preparationNotes(original) {
21009
21009
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -21056,7 +21056,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21056
21056
  }
21057
21057
  }), "meetingPreparationNotesOver");
21058
21058
 
21059
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21059
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21060
21060
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21061
21061
  async relatedHistory(original) {
21062
21062
  const input = validateMeetingRelatedHistory(original);
@@ -21127,7 +21127,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21127
21127
  }
21128
21128
  }), "meetingRelatedHistoryOver");
21129
21129
 
21130
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21130
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21131
21131
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
21132
21132
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
21133
21133
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -21208,7 +21208,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
21208
21208
  }
21209
21209
  }), "meetingReviewOver");
21210
21210
 
21211
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21211
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21212
21212
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
21213
21213
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
21214
21214
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -21262,7 +21262,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21262
21262
  }
21263
21263
  }), "meetingSeriesHistoryOver");
21264
21264
 
21265
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21265
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21266
21266
  var MOST_ROWS = 5e5;
21267
21267
  var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
21268
21268
  EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
@@ -21331,7 +21331,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
21331
21331
  }
21332
21332
  }), "meetingStatsOver");
21333
21333
 
21334
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21334
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21335
21335
  var CURSOR_KEY = "meetings";
21336
21336
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
21337
21337
  id: Number(row2.id),
@@ -21900,7 +21900,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
21900
21900
  };
21901
21901
  }, "meetingStoreOver");
21902
21902
 
21903
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21903
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21904
21904
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
21905
21905
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
21906
21906
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -21926,7 +21926,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
21926
21926
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
21927
21927
  }, "release");
21928
21928
 
21929
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21929
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21930
21930
  var THREAD_COLUMNS = {
21931
21931
  subject: {
21932
21932
  where: /* @__PURE__ */ __name(({ value }) => ({
@@ -21943,7 +21943,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
21943
21943
  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);
21944
21944
  }, "threadRows");
21945
21945
 
21946
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21946
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21947
21947
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
21948
21948
  id: `email:${place.emailId}`,
21949
21949
  chatId: place.threadExternalId,
@@ -22499,7 +22499,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
22499
22499
  }
22500
22500
  }), "mailStoreOver");
22501
22501
 
22502
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22502
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22503
22503
  import { readFileSync as readFileSync2 } from "node:fs";
22504
22504
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
22505
22505
  var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
@@ -22589,7 +22589,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
22589
22589
  }, "knownWord");
22590
22590
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
22591
22591
 
22592
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22592
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22593
22593
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
22594
22594
  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");
22595
22595
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -22675,7 +22675,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
22675
22675
  return found2;
22676
22676
  }, "spokenTranscripts");
22677
22677
 
22678
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22678
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22679
22679
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
22680
22680
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
22681
22681
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -22722,7 +22722,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
22722
22722
  });
22723
22723
  }, "placeHits");
22724
22724
 
22725
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22725
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22726
22726
  var GROUPS = {
22727
22727
  chat: {
22728
22728
  key: "m.chat_id",
@@ -22744,7 +22744,7 @@ var GROUPS = {
22744
22744
  }
22745
22745
  };
22746
22746
 
22747
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22747
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22748
22748
  var MESSAGES2 = {
22749
22749
  rows: "messages",
22750
22750
  threads: "chats",
@@ -23227,7 +23227,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
23227
23227
  };
23228
23228
  }, "runCompiled");
23229
23229
 
23230
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23230
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23231
23231
  function invalidMetadata() {
23232
23232
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
23233
23233
  }
@@ -23329,7 +23329,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
23329
23329
  };
23330
23330
  }), "counterTargets");
23331
23331
 
23332
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23332
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23333
23333
  var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
23334
23334
  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,
23335
23335
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -23448,7 +23448,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
23448
23448
  }));
23449
23449
  }, "attachmentViews");
23450
23450
 
23451
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23451
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23452
23452
  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");
23453
23453
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
23454
23454
  const { orm, database, now: now2 } = context;
@@ -23486,7 +23486,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
23486
23486
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
23487
23487
  }, "intoVoiceAttachment");
23488
23488
 
23489
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23489
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23490
23490
  var FIELDS = [
23491
23491
  "threadExternalId",
23492
23492
  "senderIdentityId",
@@ -23803,7 +23803,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
23803
23803
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
23804
23804
  }, "writeDerivedReactions");
23805
23805
 
23806
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/keys.js
23806
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/keys.js
23807
23807
  var keysOver = /* @__PURE__ */ __name((context) => {
23808
23808
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
23809
23809
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -23824,7 +23824,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
23824
23824
  };
23825
23825
  }, "keysOver");
23826
23826
 
23827
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23827
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23828
23828
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
23829
23829
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
23830
23830
  if (!row2)
@@ -23859,7 +23859,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
23859
23859
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
23860
23860
  }, "saveProfile");
23861
23861
 
23862
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23862
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23863
23863
  var BOT_KINDS = ["agent", "rule", "script", "integration"];
23864
23864
  var ownerPerson = /* @__PURE__ */ __name((database) => {
23865
23865
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -23916,7 +23916,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
23916
23916
  return { sql: bot("pb.name = ?"), params: [by.bot] };
23917
23917
  }, "proposedBySql");
23918
23918
 
23919
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23919
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23920
23920
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
23921
23921
  const owner = ownerPerson(context.database).id;
23922
23922
  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);
@@ -23937,7 +23937,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
23937
23937
  return personOf(context, ref3);
23938
23938
  }, "linkToOwner");
23939
23939
 
23940
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23940
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23941
23941
  var PROVIDERS_SETTING = "providers";
23942
23942
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
23943
23943
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -23972,7 +23972,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
23972
23972
  });
23973
23973
  }, "registerProvider");
23974
23974
 
23975
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23975
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23976
23976
  var DAY3 = 864e5;
23977
23977
  var RECENTLY_CLOSED_MS = 14 * DAY3;
23978
23978
  var TEXT_LIMIT = 20;
@@ -24171,7 +24171,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
24171
24171
  };
24172
24172
  }, "taskSimilarityOver");
24173
24173
 
24174
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24174
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24175
24175
  var SETTING3 = "taskCategories";
24176
24176
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
24177
24177
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -24190,7 +24190,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
24190
24190
  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);
24191
24191
  }, "saveTaskCategories");
24192
24192
 
24193
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24193
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24194
24194
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
24195
24195
  var ALLOWED = "taskAgentClose";
24196
24196
  var MIN = "taskAgentCloseMin";
@@ -24246,10 +24246,10 @@ var SUGGESTION_COLUMNS = [
24246
24246
  ];
24247
24247
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
24248
24248
 
24249
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24249
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24250
24250
  var MAIL_FINDINGS_KIND = "mail_findings";
24251
24251
 
24252
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/decisions.js
24252
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/decisions.js
24253
24253
  var TASK_CLOSE_KIND = "task_close";
24254
24254
  var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
24255
24255
  var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
@@ -24297,7 +24297,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
24297
24297
  }, "assertMayDecide");
24298
24298
  var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
24299
24299
 
24300
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24300
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24301
24301
  var PROFILE_PLACEHOLDER = "<profile>";
24302
24302
  var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
24303
24303
  var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
@@ -24350,7 +24350,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
24350
24350
  return `${WORDS2[summary.kind]} ${named2}${notes2 === "" ? "" : ` (${notes2})`}`;
24351
24351
  }, "refLabel");
24352
24352
 
24353
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24353
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24354
24354
  var EXCERPT_CHARS = 280;
24355
24355
  var TITLE_CHARS = 120;
24356
24356
  var MEMORY_TITLE_CHARS = 80;
@@ -24711,7 +24711,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
24711
24711
  var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
24712
24712
  var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
24713
24713
 
24714
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24714
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24715
24715
  var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
24716
24716
  ref: ref3,
24717
24717
  kind: read2.kind,
@@ -24747,7 +24747,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
24747
24747
  });
24748
24748
  }, "evidenceSourcesOf");
24749
24749
 
24750
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24750
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24751
24751
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
24752
24752
  var MAX_TEXT_CHARS = 2e6;
24753
24753
  var ATTACHMENT_LIMIT_ENV = [
@@ -24773,7 +24773,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
24773
24773
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
24774
24774
  }, "pdfPreviewLimits");
24775
24775
 
24776
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/ulid.js
24776
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/ulid.js
24777
24777
  import { randomBytes } from "node:crypto";
24778
24778
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
24779
24779
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -24786,7 +24786,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
24786
24786
  return time3 + random;
24787
24787
  }, "ulid");
24788
24788
 
24789
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24789
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24790
24790
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
24791
24791
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
24792
24792
  if (!meta && !sections?.length)
@@ -24807,7 +24807,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
24807
24807
  return typeof language === "string" && language !== "" ? language : null;
24808
24808
  }, "languageOf");
24809
24809
 
24810
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24810
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24811
24811
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
24812
24812
  var objectOf2 = /* @__PURE__ */ __name((value) => {
24813
24813
  if (isObject(value))
@@ -25050,7 +25050,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
25050
25050
  };
25051
25051
  }, "filesStoreOver");
25052
25052
 
25053
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25053
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25054
25054
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
25055
25055
  entity: "document",
25056
25056
  backend: "sql",
@@ -25096,7 +25096,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
25096
25096
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
25097
25097
  }, "importedDocumentWhere");
25098
25098
 
25099
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25099
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25100
25100
  var NOTE_FORMATS = ["obsidian", "markdown"];
25101
25101
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25102
25102
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
@@ -25622,7 +25622,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
25622
25622
  };
25623
25623
  }, "notesStoreOver");
25624
25624
 
25625
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25625
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25626
25626
  var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
25627
25627
  var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25628
25628
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -25844,7 +25844,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
25844
25844
  };
25845
25845
  }, "memoriesStoreOver");
25846
25846
 
25847
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25847
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25848
25848
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
25849
25849
  var KEY = "taskFirstPassPerChat";
25850
25850
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -25864,7 +25864,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
25864
25864
  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);
25865
25865
  }, "saveFirstPassPerChat");
25866
25866
 
25867
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/external-links.js
25867
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/external-links.js
25868
25868
  var EXTERNAL_SERVICE = /^[a-z][a-z0-9-]{0,31}$/;
25869
25869
  var EXTERNAL_ID_CHARS = 200;
25870
25870
  var SOURCE_URL_CHARS = 2e3;
@@ -25891,7 +25891,7 @@ var sourceUrlOf = /* @__PURE__ */ __name((value, reason = "task.source-url") =>
25891
25891
  return text6;
25892
25892
  }, "sourceUrlOf");
25893
25893
 
25894
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25894
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25895
25895
  var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
25896
25896
  var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
25897
25897
  name,
@@ -26114,7 +26114,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
26114
26114
  return root === void 0 ? void 0 : { ...query, root };
26115
26115
  }, "withoutField");
26116
26116
 
26117
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26117
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26118
26118
  var authorNamed = /* @__PURE__ */ __name((database, row2) => {
26119
26119
  if (row2.author_type == null)
26120
26120
  return null;
@@ -26142,7 +26142,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
26142
26142
  return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
26143
26143
  }, "addComment");
26144
26144
 
26145
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26145
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26146
26146
  var TASK_RELATION_KINDS = [
26147
26147
  "blocked-by",
26148
26148
  "follow-up-of",
@@ -26272,7 +26272,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
26272
26272
  };
26273
26273
  }, "taskRelationsStoreOver");
26274
26274
 
26275
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26275
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26276
26276
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
26277
26277
  var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
26278
26278
  var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
@@ -26801,7 +26801,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
26801
26801
  };
26802
26802
  }, "workTasksOver");
26803
26803
 
26804
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26804
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26805
26805
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
26806
26806
  const { database, now: now2 } = context;
26807
26807
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -26850,7 +26850,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
26850
26850
  };
26851
26851
  }, "taskCloseOver");
26852
26852
 
26853
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26853
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26854
26854
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
26855
26855
  const { database, now: now2 } = context;
26856
26856
  const required3 = /* @__PURE__ */ __name((id2) => {
@@ -27068,7 +27068,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
27068
27068
  };
27069
27069
  }, "taskPairsOver");
27070
27070
 
27071
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27071
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27072
27072
  var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
27073
27073
  var TASK_STATS_SQL = {
27074
27074
  rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
@@ -27107,7 +27107,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
27107
27107
  }, "statNames")
27108
27108
  }), "taskStatsOver");
27109
27109
 
27110
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27110
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27111
27111
  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";
27112
27112
  var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
27113
27113
  const key2 = inboxKey(account);
@@ -27314,7 +27314,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
27314
27314
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
27315
27315
  }, "oneOf");
27316
27316
 
27317
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/accounts.js
27317
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/accounts.js
27318
27318
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
27319
27319
  const { database } = context;
27320
27320
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -27359,7 +27359,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
27359
27359
  };
27360
27360
  }, "accountsStoreOver");
27361
27361
 
27362
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27362
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27363
27363
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
27364
27364
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
27365
27365
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -27383,7 +27383,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
27383
27383
  })), "keepDownloads");
27384
27384
  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");
27385
27385
 
27386
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/attachments.js
27386
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/attachments.js
27387
27387
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
27388
27388
  const { database } = context;
27389
27389
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -27440,7 +27440,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
27440
27440
  }, "keepAttachmentText")
27441
27441
  }), "attachmentsStoreOver");
27442
27442
 
27443
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27443
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27444
27444
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
27445
27445
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
27446
27446
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -27620,7 +27620,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
27620
27620
  return done;
27621
27621
  }, "rekeyChats");
27622
27622
 
27623
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27623
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27624
27624
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
27625
27625
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
27626
27626
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -27678,7 +27678,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
27678
27678
  return { ...coverage, oldestMessageAt: toIso(oldest) };
27679
27679
  }, "chatCoverage");
27680
27680
 
27681
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/chats.js
27681
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/chats.js
27682
27682
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27683
27683
  const { database } = context;
27684
27684
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -27813,7 +27813,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27813
27813
  };
27814
27814
  }, "chatsStoreOver");
27815
27815
 
27816
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27816
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27817
27817
  import { createHash as createHash7 } from "node:crypto";
27818
27818
  var BATCH_CONTEXT = 50;
27819
27819
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -27951,7 +27951,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
27951
27951
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
27952
27952
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
27953
27953
 
27954
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27954
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27955
27955
  import { setTimeout } from "node:timers/promises";
27956
27956
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
27957
27957
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -28263,7 +28263,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
28263
28263
  AND NOT EXISTS (SELECT 1 FROM messages d
28264
28264
  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");
28265
28265
 
28266
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/conversations.js
28266
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/conversations.js
28267
28267
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28268
28268
  const { database } = context;
28269
28269
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -28370,7 +28370,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28370
28370
  };
28371
28371
  }, "conversationsStoreOver");
28372
28372
 
28373
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/counters.js
28373
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/counters.js
28374
28374
  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";
28375
28375
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
28376
28376
  const { database } = context;
@@ -28395,7 +28395,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28395
28395
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
28396
28396
  }), "countersStoreOver");
28397
28397
 
28398
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28398
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28399
28399
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
28400
28400
  var MENTION_QUERY = defineQuery({
28401
28401
  entity: "mention",
@@ -28611,7 +28611,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
28611
28611
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
28612
28612
  }, "listPlaces");
28613
28613
 
28614
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/mentions.js
28614
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/mentions.js
28615
28615
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
28616
28616
  const { database } = context;
28617
28617
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -28646,7 +28646,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28646
28646
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
28647
28647
  }), "mentionsStoreOver");
28648
28648
 
28649
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28649
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28650
28650
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
28651
28651
  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");
28652
28652
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -28661,7 +28661,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
28661
28661
  }));
28662
28662
  }, "documentLinkMessages");
28663
28663
 
28664
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28664
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28665
28665
  var stemmerFor = stemmerCache();
28666
28666
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
28667
28667
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -28705,7 +28705,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
28705
28705
  });
28706
28706
  }, "laterSharingRare");
28707
28707
 
28708
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/messages.js
28708
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/messages.js
28709
28709
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
28710
28710
  const { database } = context;
28711
28711
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -28840,7 +28840,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28840
28840
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
28841
28841
  }), "messagesStoreOver");
28842
28842
 
28843
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28843
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28844
28844
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
28845
28845
  var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
28846
28846
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -28897,7 +28897,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
28897
28897
  });
28898
28898
  }, "personPreparation");
28899
28899
 
28900
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28900
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28901
28901
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
28902
28902
  const id2 = Number(uid);
28903
28903
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -28905,7 +28905,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
28905
28905
  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)));
28906
28906
  }, "personSeenInAccounts");
28907
28907
 
28908
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28908
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28909
28909
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
28910
28910
  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);
28911
28911
  if (!row2)
@@ -28971,7 +28971,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
28971
28971
  return { id: id2, personId, removed: true };
28972
28972
  }, "removeNote");
28973
28973
 
28974
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/people.js
28974
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/people.js
28975
28975
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
28976
28976
  const { database } = context;
28977
28977
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -29056,13 +29056,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
29056
29056
  };
29057
29057
  }, "peopleStoreOver");
29058
29058
 
29059
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29059
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29060
29060
  import { createHash as createHash9 } from "node:crypto";
29061
29061
 
29062
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29062
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29063
29063
  import { createHash as createHash8 } from "node:crypto";
29064
29064
 
29065
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29065
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29066
29066
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
29067
29067
  var AUTHOR_MEASURES = [
29068
29068
  "messages",
@@ -29202,7 +29202,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
29202
29202
  var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
29203
29203
  var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
29204
29204
 
29205
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29205
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29206
29206
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
29207
29207
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
29208
29208
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -29424,7 +29424,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
29424
29424
  };
29425
29425
  }, "rankReplyGraph");
29426
29426
 
29427
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29427
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29428
29428
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
29429
29429
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
29430
29430
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -29598,7 +29598,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
29598
29598
  return { items, evidence, summary, graph: graph.quality };
29599
29599
  }, "calculateAdminStatistics");
29600
29600
 
29601
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29601
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29602
29602
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
29603
29603
  const dates = [];
29604
29604
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -29620,7 +29620,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
29620
29620
  return dates[0].node.resolution.date;
29621
29621
  }, "rankingContextRange");
29622
29622
 
29623
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29623
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29624
29624
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
29625
29625
  let counts;
29626
29626
  try {
@@ -29915,7 +29915,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
29915
29915
  });
29916
29916
  }, "rankQuery");
29917
29917
 
29918
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29918
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29919
29919
  function fail4(message2, reason = "query.too-large") {
29920
29920
  throw new CliError("validation_error", message2, { reason, complete: false });
29921
29921
  }
@@ -30092,7 +30092,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
30092
30092
  return result;
30093
30093
  }), "adminStatisticsQuery");
30094
30094
 
30095
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30095
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30096
30096
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
30097
30097
  if (!execution.accounts.length)
30098
30098
  return { conversations: [], chats: [] };
@@ -30110,7 +30110,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
30110
30110
  return { conversations: conversations2, chats: chats2 };
30111
30111
  }, "conversationEligibility");
30112
30112
 
30113
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30113
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30114
30114
  import { createHash as createHash10 } from "node:crypto";
30115
30115
  var EVIDENCE_BYTES = 64 * 1024;
30116
30116
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -30260,7 +30260,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
30260
30260
  return result;
30261
30261
  }, "rankingEvidence");
30262
30262
 
30263
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30263
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30264
30264
  var FAR = Number.MAX_SAFE_INTEGER;
30265
30265
  var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
30266
30266
  const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
@@ -30354,7 +30354,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
30354
30354
  });
30355
30355
  }, "waitingChats");
30356
30356
 
30357
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/queries.js
30357
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/queries.js
30358
30358
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30359
30359
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
30360
30360
  if (execution.corpus === "mail")
@@ -30375,7 +30375,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30375
30375
  };
30376
30376
  }, "queriesStoreOver");
30377
30377
 
30378
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30378
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30379
30379
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
30380
30380
  const { database, now: now2 } = context;
30381
30381
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -30414,10 +30414,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
30414
30414
  }));
30415
30415
  }, "chatEventsOf");
30416
30416
 
30417
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30417
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30418
30418
  import { createHash as createHash11 } from "node:crypto";
30419
30419
 
30420
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30420
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30421
30421
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
30422
30422
  const format = new Intl.DateTimeFormat("en-CA", {
30423
30423
  timeZone: zone,
@@ -30437,7 +30437,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
30437
30437
  return date3.toISOString().slice(0, 10);
30438
30438
  }, "weekKey");
30439
30439
 
30440
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/retention.js
30440
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/retention.js
30441
30441
  var RETENTION_TOLERANCE = 864e5;
30442
30442
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
30443
30443
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -30491,7 +30491,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
30491
30491
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
30492
30492
  }, "retentionCohorts");
30493
30493
 
30494
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30494
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30495
30495
  var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
30496
30496
  var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
30497
30497
  validateRetentionOptions(options);
@@ -30622,7 +30622,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
30622
30622
  };
30623
30623
  }, "retentionQuery");
30624
30624
 
30625
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30625
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30626
30626
  var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
30627
30627
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
30628
30628
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -30753,7 +30753,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
30753
30753
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
30754
30754
  })), "trackedChats");
30755
30755
 
30756
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/roster.js
30756
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/roster.js
30757
30757
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30758
30758
  const { database } = context;
30759
30759
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -30809,7 +30809,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30809
30809
  };
30810
30810
  }, "rosterStoreOver");
30811
30811
 
30812
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30812
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30813
30813
  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");
30814
30814
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
30815
30815
  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 ?`);
@@ -30833,7 +30833,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
30833
30833
  }
30834
30834
  }, "backfillNormalized");
30835
30835
 
30836
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30836
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30837
30837
  var INDEX2 = "message_words";
30838
30838
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
30839
30839
  const row2 = indexRow(database, INDEX2);
@@ -30960,7 +30960,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
30960
30960
  });
30961
30961
  }, "resetSearchIndex");
30962
30962
 
30963
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30963
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30964
30964
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
30965
30965
  const filled2 = { stemmed: 0, drained: 0 };
30966
30966
  const before2 = stemsState(database);
@@ -31055,7 +31055,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
31055
31055
  return resetStems(database, { now: now2 });
31056
31056
  }, "followDefaultStemmers");
31057
31057
 
31058
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31058
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31059
31059
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
31060
31060
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
31061
31061
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -31077,7 +31077,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
31077
31077
  });
31078
31078
  }, "termCandidates");
31079
31079
 
31080
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/search-index.js
31080
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/search-index.js
31081
31081
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31082
31082
  const { database } = context;
31083
31083
  const stemmerFor2 = stemmerCache();
@@ -31099,7 +31099,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31099
31099
  };
31100
31100
  }, "searchIndexStoreOver");
31101
31101
 
31102
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31102
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31103
31103
  var HISTORY_KEPT = 1e3;
31104
31104
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
31105
31105
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -31168,7 +31168,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
31168
31168
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
31169
31169
  }, "clearHistory");
31170
31170
 
31171
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/searches.js
31171
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/searches.js
31172
31172
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31173
31173
  const { database } = context;
31174
31174
  return {
@@ -31192,7 +31192,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31192
31192
  };
31193
31193
  }, "searchesStoreOver");
31194
31194
 
31195
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31195
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31196
31196
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
31197
31197
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
31198
31198
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -31235,7 +31235,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
31235
31235
  };
31236
31236
  }, "agentActionsStoreOver");
31237
31237
 
31238
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31238
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31239
31239
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31240
31240
  }) => {
31241
31241
  const { database, now: now2 } = context;
@@ -31294,7 +31294,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31294
31294
  };
31295
31295
  }, "botUpdateStoreOver");
31296
31296
 
31297
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31297
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31298
31298
  var DAY4 = 864e5;
31299
31299
  var accountsOf = /* @__PURE__ */ __name((filter) => {
31300
31300
  if (filter.accountIds !== void 0 && filter.accountId !== void 0)
@@ -31403,7 +31403,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
31403
31403
  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);
31404
31404
  }, "listEvents");
31405
31405
 
31406
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31406
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31407
31407
  var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
31408
31408
  var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
31409
31409
  const unseenBefore = unreferenced(database, "identities");
@@ -31458,7 +31458,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
31458
31458
  return { entries: entryIds.length, events: goneEvents.length };
31459
31459
  }, "forgetCalendarRows");
31460
31460
 
31461
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31461
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31462
31462
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
31463
31463
  id: Number(row2.id),
31464
31464
  accountId: Number(row2.account_id),
@@ -32045,7 +32045,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
32045
32045
  };
32046
32046
  }, "eventStoreOver");
32047
32047
 
32048
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32048
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32049
32049
  var CATALOG_QUERY = defineQuery({
32050
32050
  entity: "document",
32051
32051
  backend: "sql",
@@ -32287,7 +32287,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
32287
32287
  };
32288
32288
  }, "catalogStoreOver");
32289
32289
 
32290
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32290
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32291
32291
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
32292
32292
  var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
32293
32293
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -32300,7 +32300,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
32300
32300
  THEN 'source-modified' ELSE 'stored-update' END`;
32301
32301
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
32302
32302
 
32303
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32303
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32304
32304
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32305
32305
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
32306
32306
  signal?.throwIfAborted();
@@ -32399,7 +32399,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32399
32399
  });
32400
32400
  }, "readMeetingContextEvidence");
32401
32401
 
32402
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32402
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32403
32403
  var corpora = {
32404
32404
  message: {
32405
32405
  table: "messages",
@@ -32638,7 +32638,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
32638
32638
  }
32639
32639
  }), "contextRecordsOver");
32640
32640
 
32641
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32641
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32642
32642
  var NOTE_FIELDS = [
32643
32643
  "text",
32644
32644
  "exact",
@@ -33068,7 +33068,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
33068
33068
  };
33069
33069
  }, "noteSearchOver");
33070
33070
 
33071
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33071
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33072
33072
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
33073
33073
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
33074
33074
  var EVENT_CORPUS = {
@@ -33200,7 +33200,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
33200
33200
  };
33201
33201
  }, "eventSearchOver");
33202
33202
 
33203
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33203
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33204
33204
  var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
33205
33205
  throw new CliError(code, message2, { reason });
33206
33206
  }, "refuse");
@@ -33661,7 +33661,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
33661
33661
  };
33662
33662
  }, "financeStoreOver");
33663
33663
 
33664
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33664
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33665
33665
  var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
33666
33666
  throw new CliError("validation_error", message2, { reason });
33667
33667
  }, "refuse");
@@ -33739,7 +33739,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
33739
33739
  };
33740
33740
  }, "paymentEntriesOver");
33741
33741
 
33742
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33742
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33743
33743
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
33744
33744
  var reference = /* @__PURE__ */ __name((raw) => {
33745
33745
  if (/^(document|note):[1-9]\d*$/.test(raw))
@@ -33765,7 +33765,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
33765
33765
  return valid;
33766
33766
  }, "validateEvidenceFindings");
33767
33767
 
33768
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/moment.js
33768
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/moment.js
33769
33769
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
33770
33770
  try {
33771
33771
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -33777,7 +33777,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
33777
33777
  }
33778
33778
  }, "calendarMoment");
33779
33779
 
33780
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33780
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33781
33781
  var NAMED3 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
33782
33782
  var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
33783
33783
  var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -33986,7 +33986,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
33986
33986
  };
33987
33987
  }, "factsStoreOver");
33988
33988
 
33989
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33989
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33990
33990
  var invalid4 = /* @__PURE__ */ __name((message2) => {
33991
33991
  throw new CliError("validation_error", message2);
33992
33992
  }, "invalid");
@@ -34090,7 +34090,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
34090
34090
  return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
34091
34091
  }, "findingsCoreOver");
34092
34092
 
34093
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34093
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34094
34094
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
34095
34095
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
34096
34096
  var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -34255,7 +34255,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
34255
34255
  };
34256
34256
  }, "proposedActionsStoreOver");
34257
34257
 
34258
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34258
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34259
34259
  var stale = /* @__PURE__ */ __name(() => {
34260
34260
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
34261
34261
  reason: "evidence-findings.stale"
@@ -34436,7 +34436,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
34436
34436
  };
34437
34437
  }, "evidenceFindingsStoreOver");
34438
34438
 
34439
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34439
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34440
34440
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
34441
34441
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
34442
34442
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -34489,7 +34489,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
34489
34489
  }, "forPerson")
34490
34490
  }), "involvementStoreOver");
34491
34491
 
34492
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34492
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34493
34493
  import { createHash as createHash12 } from "node:crypto";
34494
34494
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
34495
34495
  var id = /* @__PURE__ */ __name((value) => {
@@ -34575,7 +34575,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
34575
34575
  };
34576
34576
  }, "meetingProjectsStoreOver");
34577
34577
 
34578
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34578
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34579
34579
  var relationOf = /* @__PURE__ */ __name((link3) => ({
34580
34580
  id: link3.id,
34581
34581
  from: link3.from,
@@ -34801,16 +34801,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
34801
34801
  provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
34802
34802
  }, "decidedOrigin");
34803
34803
 
34804
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34804
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34805
34805
  import { createHash as createHash15 } from "node:crypto";
34806
34806
 
34807
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34807
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34808
34808
  import { createHash as createHash14 } from "node:crypto";
34809
34809
 
34810
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34810
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34811
34811
  import { createHash as createHash13 } from "node:crypto";
34812
34812
 
34813
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34813
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34814
34814
  var consolidationId = /* @__PURE__ */ __name((value, field4) => {
34815
34815
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
34816
34816
  throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
@@ -34861,7 +34861,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
34861
34861
  return input;
34862
34862
  }, "consolidationApplyInput");
34863
34863
 
34864
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34864
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34865
34865
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
34866
34866
  id: String(row2.id),
34867
34867
  sourceId: String(row2.source_id),
@@ -34936,7 +34936,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
34936
34936
  }, { beforeCommit: check3 });
34937
34937
  }, "applyTagConsolidation");
34938
34938
 
34939
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34939
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34940
34940
  var selections = [
34941
34941
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
34942
34942
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -35080,7 +35080,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
35080
35080
  };
35081
35081
  }, "previewRows");
35082
35082
 
35083
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35083
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35084
35084
  var kinds = ["project", "tag", "topic"];
35085
35085
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
35086
35086
  if (signal?.aborted)
@@ -35344,7 +35344,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
35344
35344
  };
35345
35345
  }, "vocabularyStoreOver");
35346
35346
 
35347
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35347
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35348
35348
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
35349
35349
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
35350
35350
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -35901,7 +35901,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
35901
35901
  return key2.padEnd(3, "X");
35902
35902
  }, "projectKey");
35903
35903
 
35904
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35904
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35905
35905
  var DAY5 = 864e5;
35906
35906
  var SETTING4 = "logs_pruned_at";
35907
35907
  var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
@@ -35928,7 +35928,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
35928
35928
  };
35929
35929
  }, "logPruner");
35930
35930
 
35931
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/mail/findings.js
35931
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/findings.js
35932
35932
  var MAIL_FINDINGS_PER_RUN = 30;
35933
35933
  var MAIL_FINDINGS_PER_SENDER = 5;
35934
35934
  var invalid6 = /* @__PURE__ */ __name((message2) => {
@@ -36227,7 +36227,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
36227
36227
  }, "validateMailFindings");
36228
36228
  var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
36229
36229
 
36230
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36230
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36231
36231
  var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
36232
36232
  var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36233
36233
  const { database, now: now2 } = context;
@@ -36379,7 +36379,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
36379
36379
  };
36380
36380
  }, "ordersStoreOver");
36381
36381
 
36382
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36382
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36383
36383
  var stale2 = /* @__PURE__ */ __name(() => {
36384
36384
  throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
36385
36385
  reason: "mail-findings.stale"
@@ -36748,7 +36748,7 @@ ${evidence.join("\n")}`, agent);
36748
36748
  };
36749
36749
  }, "mailFindingsStoreOver");
36750
36750
 
36751
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36751
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36752
36752
  var stale3 = /* @__PURE__ */ __name(() => {
36753
36753
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
36754
36754
  reason: "meeting-findings.stale"
@@ -36916,7 +36916,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
36916
36916
  };
36917
36917
  }, "meetingFindingsStoreOver");
36918
36918
 
36919
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36919
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36920
36920
  var RANK_BATCH = 512;
36921
36921
  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";
36922
36922
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -37187,7 +37187,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
37187
37187
  }
37188
37188
  }), "meetingVectorsOver");
37189
37189
 
37190
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37190
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37191
37191
  var OTHER_SOURCES = ["document", "note", "email"];
37192
37192
  var TEXTS = {
37193
37193
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -37288,11 +37288,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
37288
37288
  };
37289
37289
  }, "sourceMentionStoreOver");
37290
37290
 
37291
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37291
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37292
37292
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
37293
37293
  import { dirname } from "node:path";
37294
37294
 
37295
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37295
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37296
37296
  import { readFileSync as readFileSync3 } from "node:fs";
37297
37297
  var CLIENTS_SETTING = "clients";
37298
37298
  var coreVersion = (() => {
@@ -37350,7 +37350,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
37350
37350
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
37351
37351
  }, "refusalAdvice");
37352
37352
 
37353
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37353
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37354
37354
  var GENERATED = [
37355
37355
  {
37356
37356
  "name": "20261010184427_initial",
@@ -38353,7 +38353,7 @@ WHERE json_type(params, '$.selection') = 'object';`
38353
38353
  }
38354
38354
  ];
38355
38355
 
38356
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38356
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38357
38357
  var MANIFEST = [
38358
38358
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
38359
38359
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -38445,7 +38445,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
38445
38445
  return migrations;
38446
38446
  }, "generatedMigrations");
38447
38447
 
38448
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/migrations.js
38448
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/migrations.js
38449
38449
  var MIGRATIONS = generatedMigrations();
38450
38450
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
38451
38451
  version INTEGER PRIMARY KEY,
@@ -38498,7 +38498,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
38498
38498
  }
38499
38499
  }, "migrate");
38500
38500
 
38501
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38501
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38502
38502
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38503
38503
  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 ?");
38504
38504
  if (pending.get(0, 1) === void 0)
@@ -38520,7 +38520,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38520
38520
  }
38521
38521
  }, "fillJoinKeys");
38522
38522
 
38523
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38523
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38524
38524
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
38525
38525
  refuseOwnerStoreInTests(path);
38526
38526
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
@@ -38534,8 +38534,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
38534
38534
  }, "openSqlite");
38535
38535
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38536
38536
  quietSqliteWarning();
38537
- const { drizzle } = await import("./node-7746MVI2.js");
38538
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-2JD5RF5A.js");
38537
+ const { drizzle } = await import("./node-6OXRSWHH.js");
38538
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-TG4H4T3L.js");
38539
38539
  const client = await nodeClient(path, { readOnly });
38540
38540
  try {
38541
38541
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -38545,8 +38545,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38545
38545
  }
38546
38546
  }, "openUnderNode");
38547
38547
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38548
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-2QF3TO47.js");
38549
- const { drizzle } = await import("./bun-UQEFISW2.js");
38548
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-YIX2BVSZ.js");
38549
+ const { drizzle } = await import("./bun-EIOFQKTA.js");
38550
38550
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
38551
38551
  try {
38552
38552
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -38556,7 +38556,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38556
38556
  }
38557
38557
  }, "openUnderBun");
38558
38558
 
38559
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38559
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38560
38560
  var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
38561
38561
  var paymentOf = /* @__PURE__ */ __name((metadata3) => {
38562
38562
  try {
@@ -38624,7 +38624,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
38624
38624
  });
38625
38625
  }, "movePaymentFacts");
38626
38626
 
38627
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38627
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38628
38628
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38629
38629
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
38630
38630
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -38639,7 +38639,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38639
38639
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
38640
38640
  }, "assertReadCompatible");
38641
38641
 
38642
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38642
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38643
38643
  var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
38644
38644
  var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
38645
38645
  if (provenance2?.startsWith("rule:"))
@@ -38685,7 +38685,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
38685
38685
  });
38686
38686
  }, "moveSuggestedLinks");
38687
38687
 
38688
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38688
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38689
38689
  var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
38690
38690
  var TEST_PROVIDER = "chat";
38691
38691
  var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
@@ -38706,7 +38706,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
38706
38706
  }
38707
38707
  }, "purgeTestAccounts");
38708
38708
 
38709
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38709
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38710
38710
  var BACKFILL_ON_OPEN = 5e3;
38711
38711
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
38712
38712
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -38771,10 +38771,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
38771
38771
  }
38772
38772
  }, "openStoreContext");
38773
38773
 
38774
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38774
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38775
38775
  import { createHash as createHash16 } from "node:crypto";
38776
38776
 
38777
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38777
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38778
38778
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
38779
38779
  var ref = text4(2048);
38780
38780
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -38840,7 +38840,7 @@ var projectAnnotationsSchema = strictObject({
38840
38840
  }))
38841
38841
  });
38842
38842
 
38843
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38843
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38844
38844
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
38845
38845
  var invalid9 = /* @__PURE__ */ __name((field4) => {
38846
38846
  throw new CliError("validation_error", `invalid project annotations.${field4}`);
@@ -38944,7 +38944,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
38944
38944
  invalid9("external.unused");
38945
38945
  }, "validateProjectAnnotationsGraph");
38946
38946
 
38947
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38947
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38948
38948
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
38949
38949
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
38950
38950
  var targetSchema = strictObject({
@@ -39050,7 +39050,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
39050
39050
  };
39051
39051
  }, "planBoundProjectAnnotations");
39052
39052
 
39053
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
39053
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
39054
39054
  import { createHash as createHash17 } from "node:crypto";
39055
39055
  var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
39056
39056
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -39144,7 +39144,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
39144
39144
  })).digest("hex");
39145
39145
  }, "projectAnnotationSnapshotFingerprint");
39146
39146
 
39147
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39147
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39148
39148
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
39149
39149
  if (!request || typeof request !== "object" || Array.isArray(request))
39150
39150
  throw new CliError("validation_error", "project annotation request is required");
@@ -39161,7 +39161,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
39161
39161
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
39162
39162
  }, "projectAnnotationRequest");
39163
39163
 
39164
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39164
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39165
39165
  var SnapshotBudget = class {
39166
39166
  static {
39167
39167
  __name(this, "SnapshotBudget");
@@ -39187,13 +39187,13 @@ var SnapshotBudget = class {
39187
39187
  }
39188
39188
  };
39189
39189
 
39190
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39190
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39191
39191
  import { createHash as createHash19 } from "node:crypto";
39192
39192
 
39193
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39193
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39194
39194
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
39195
39195
 
39196
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39196
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39197
39197
  import { createHash as createHash18 } from "node:crypto";
39198
39198
  var invalid11 = /* @__PURE__ */ __name(() => {
39199
39199
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -39336,7 +39336,7 @@ var ProjectSnapshotSources = class {
39336
39336
  }
39337
39337
  };
39338
39338
 
39339
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39339
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39340
39340
  var unsupported = /* @__PURE__ */ __name(() => {
39341
39341
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
39342
39342
  }, "unsupported");
@@ -39507,7 +39507,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
39507
39507
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
39508
39508
  }), "projectAnnotationSnapshot");
39509
39509
 
39510
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39510
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39511
39511
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
39512
39512
  const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
39513
39513
  const sources = new ProjectSnapshotSources(database, budget);
@@ -39569,7 +39569,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
39569
39569
  };
39570
39570
  }), "previewAnnotationSnapshot");
39571
39571
 
39572
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39572
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39573
39573
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
39574
39574
  const mappings = { ...bindings };
39575
39575
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -39611,7 +39611,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
39611
39611
  return mappings;
39612
39612
  }, "restoreAnnotationRecords");
39613
39613
 
39614
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39614
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39615
39615
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39616
39616
  async preview(request) {
39617
39617
  const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
@@ -39641,7 +39641,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39641
39641
  }
39642
39642
  }), "projectAnnotationStoreOver");
39643
39643
 
39644
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/domain/records.js
39644
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/domain/records.js
39645
39645
  import { createHash as createHash20 } from "node:crypto";
39646
39646
  var RECORDS_SCHEMA_VERSION = 1;
39647
39647
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -39873,7 +39873,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
39873
39873
  return isObject2(header) ? { ...header, records: records2 } : header;
39874
39874
  }, "envelopeOfJsonl");
39875
39875
 
39876
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39876
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39877
39877
  var PROJECTED = {
39878
39878
  invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
39879
39879
  payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
@@ -40286,7 +40286,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
40286
40286
  };
40287
40287
  }, "recordStoreOver");
40288
40288
 
40289
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40289
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40290
40290
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
40291
40291
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
40292
40292
  let merged = { from: from2, to };
@@ -40299,7 +40299,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
40299
40299
  }, "markRange");
40300
40300
  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");
40301
40301
 
40302
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40302
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40303
40303
  var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
40304
40304
  var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
40305
40305
  chatId: String(row2.key).slice(prefix.length),
@@ -40320,7 +40320,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
40320
40320
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
40321
40321
  }, "setTaskAnalysisMark");
40322
40322
 
40323
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40323
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40324
40324
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
40325
40325
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
40326
40326
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -40330,7 +40330,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
40330
40330
  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);
40331
40331
  }, "setTaskRulesStop");
40332
40332
 
40333
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sync.js
40333
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sync.js
40334
40334
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
40335
40335
  const { database } = context;
40336
40336
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -40389,7 +40389,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
40389
40389
  };
40390
40390
  }, "syncStoreOver");
40391
40391
 
40392
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/tags.js
40392
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/tags.js
40393
40393
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40394
40394
  const { database } = context;
40395
40395
  return {
@@ -40411,7 +40411,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40411
40411
  };
40412
40412
  }, "tagsStoreOver");
40413
40413
 
40414
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40414
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40415
40415
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
40416
40416
  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
40417
40417
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -40538,7 +40538,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
40538
40538
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
40539
40539
  }, "savePictureChunks");
40540
40540
 
40541
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40541
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40542
40542
  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,
40543
40543
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
40544
40544
  FROM messages m
@@ -40627,7 +40627,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
40627
40627
  return plain2(best(found2));
40628
40628
  }, "nearestMessages");
40629
40629
 
40630
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/vectors.js
40630
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/vectors.js
40631
40631
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
40632
40632
  const { database } = context;
40633
40633
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -40885,7 +40885,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
40885
40885
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
40886
40886
  }), "vectorsStoreOver");
40887
40887
 
40888
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40888
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40889
40889
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
40890
40890
  import { dirname as dirname2, join as join2 } from "node:path";
40891
40891
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -40973,10 +40973,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
40973
40973
  }
40974
40974
  }, "lastBackup");
40975
40975
 
40976
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/providers.js
40976
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/providers.js
40977
40977
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
40978
40978
 
40979
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40979
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40980
40980
  var COUNTED_TABLES = [
40981
40981
  "accounts",
40982
40982
  "chats",
@@ -41061,7 +41061,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
41061
41061
  };
41062
41062
  }, "storeContents");
41063
41063
 
41064
- // node_modules/.pnpm/@wirecat+cli-core@0.577.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_b456bb3dbfa5a2ab44c157391052a5e8/node_modules/@wirecat/cli-core/dist/store/store.js
41064
+ // node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/store.js
41065
41065
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
41066
41066
  const context = await openStoreContext(options);
41067
41067
  try {