@wirecat/zoom-cli 0.61.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/bin/zm.js +2 -2
  2. package/dist/bundle/{all-profiles-HZLIU6RZ.js → all-profiles-CGGNBINU.js} +8 -8
  3. package/dist/bundle/answer-policy-D46SGQ35.js +96 -0
  4. package/dist/bundle/{anthropic-O2YYPCVK.js → anthropic-KVWPIHFG.js} +4 -4
  5. package/dist/bundle/{app-server-YYCANTUE.js → app-server-NKKFBTQN.js} +50 -50
  6. package/dist/bundle/{bun-UEFRULAT.js → bun-XRO6XJHQ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-VVYKOY7S.js → bun-sqlite-FWNCLOAR.js} +3 -3
  8. package/dist/bundle/{chunk-IKZFR645.js → chunk-2DPMYUWQ.js} +10 -10
  9. package/dist/bundle/{chunk-LX6DO44O.js → chunk-2LLNPNMB.js} +1 -1
  10. package/dist/bundle/{chunk-P2NRA7E5.js → chunk-2NAM2XQG.js} +2 -2
  11. package/dist/bundle/{chunk-KXYURHVE.js → chunk-2T7MUSDB.js} +95 -95
  12. package/dist/bundle/{chunk-S726LZCH.js → chunk-3YBDRVOG.js} +6 -6
  13. package/dist/bundle/{chunk-4XI4PDEH.js → chunk-4OQVRDTG.js} +20 -20
  14. package/dist/bundle/{chunk-RSXLI5GP.js → chunk-4OTXE6CF.js} +52 -52
  15. package/dist/bundle/{chunk-VARX3SBT.js → chunk-4UUQEQ5D.js} +1 -1
  16. package/dist/bundle/{chunk-UYAKSUT5.js → chunk-5LMQTEU5.js} +5 -5
  17. package/dist/bundle/{chunk-BNUNZTOU.js → chunk-5MYLM6SU.js} +44 -26
  18. package/dist/bundle/{chunk-YESOQEOB.js → chunk-5NLFQ644.js} +543 -288
  19. package/dist/bundle/{chunk-5NRBNGR3.js → chunk-6R3GMSLR.js} +2 -2
  20. package/dist/bundle/{chunk-MTAVA2LS.js → chunk-6SK5SHCR.js} +2 -2
  21. package/dist/bundle/{chunk-H5EAHMQN.js → chunk-6SPWQCJF.js} +11 -11
  22. package/dist/bundle/{chunk-E4T7IJJO.js → chunk-6URISMGR.js} +26 -26
  23. package/dist/bundle/{chunk-XZ4OVTA5.js → chunk-72S5TXFN.js} +9 -9
  24. package/dist/bundle/{chunk-XX2PDQ54.js → chunk-73BAQ7PH.js} +24 -24
  25. package/dist/bundle/{chunk-F32GKBMF.js → chunk-7AY3ADNV.js} +5 -5
  26. package/dist/bundle/{chunk-COU66X3X.js → chunk-7CNRZSAV.js} +4 -4
  27. package/dist/bundle/{chunk-77GJITSU.js → chunk-7LQLJ7LW.js} +2 -2
  28. package/dist/bundle/{chunk-KGZHRJ7H.js → chunk-AMIIU3UZ.js} +4 -4
  29. package/dist/bundle/{chunk-HTGBUE2U.js → chunk-BJPFWPKH.js} +2 -2
  30. package/dist/bundle/{chunk-2M2U43IF.js → chunk-BNTAQADF.js} +2 -2
  31. package/dist/bundle/{chunk-PCUPOGKR.js → chunk-BPMKLWHV.js} +4 -4
  32. package/dist/bundle/{chunk-JKWYXBGK.js → chunk-CXPHUOJR.js} +12 -12
  33. package/dist/bundle/{chunk-NVN4O5IC.js → chunk-D6FTCPXA.js} +9 -9
  34. package/dist/bundle/{chunk-KZGHGU2M.js → chunk-DIXC56OU.js} +4 -4
  35. package/dist/bundle/{chunk-TD4Y5LXG.js → chunk-ECXRRW7J.js} +18 -18
  36. package/dist/bundle/{chunk-M3EVVGR6.js → chunk-EG7HC4EC.js} +2 -2
  37. package/dist/bundle/{chunk-B45MFBBF.js → chunk-EJFSS65P.js} +6 -6
  38. package/dist/bundle/{chunk-FQ54A7GI.js → chunk-EOEDICIE.js} +1 -1
  39. package/dist/bundle/{chunk-7ATLKYBN.js → chunk-FAOLCUKV.js} +17 -17
  40. package/dist/bundle/{chunk-KPZIQKOF.js → chunk-FDCGTODC.js} +1 -1
  41. package/dist/bundle/{chunk-OU46OTTE.js → chunk-GOESXUJQ.js} +3 -3
  42. package/dist/bundle/{chunk-CUSGSXSR.js → chunk-HIZQYFY3.js} +3 -3
  43. package/dist/bundle/{chunk-MBMDF5EL.js → chunk-IK2OSV5C.js} +6 -6
  44. package/dist/bundle/{chunk-6SLGIPLT.js → chunk-IOCS5FXW.js} +2 -2
  45. package/dist/bundle/{chunk-AOSIU5T6.js → chunk-IOUPXUFH.js} +37 -36
  46. package/dist/bundle/{chunk-KZV5GU7G.js → chunk-IR73ZZY6.js} +8 -8
  47. package/dist/bundle/{chunk-FBJC7OCI.js → chunk-JBBZCTTF.js} +1 -1
  48. package/dist/bundle/{chunk-QHT2LZRW.js → chunk-JDJDVYGS.js} +6 -6
  49. package/dist/bundle/{chunk-SVBM6F4Z.js → chunk-JYVFFUIX.js} +1 -1
  50. package/dist/bundle/{chunk-4XPIOW5L.js → chunk-KM7Q67Z3.js} +1 -1
  51. package/dist/bundle/{chunk-U4Y2QQ2D.js → chunk-KMQUZ4YM.js} +3 -3
  52. package/dist/bundle/{chunk-CMG54Q4X.js → chunk-LXYC75D3.js} +25 -25
  53. package/dist/bundle/{chunk-E4QPLXZT.js → chunk-M2WQWF3I.js} +47 -47
  54. package/dist/bundle/{chunk-T7IQMYPW.js → chunk-M6FCCVYZ.js} +4 -3
  55. package/dist/bundle/{chunk-O3WVOAT7.js → chunk-M7YNOK4D.js} +10 -10
  56. package/dist/bundle/{chunk-HF233RN4.js → chunk-MI3JK6MW.js} +10 -10
  57. package/dist/bundle/{chunk-FXY45HU7.js → chunk-MIUPH3WA.js} +6 -6
  58. package/dist/bundle/{chunk-7DMMNCY2.js → chunk-MLNC5N7H.js} +3 -3
  59. package/dist/bundle/{chunk-OLZE27RS.js → chunk-N3KQ7XND.js} +2 -2
  60. package/dist/bundle/{chunk-XOJGXWTK.js → chunk-NQCFUYC2.js} +8 -8
  61. package/dist/bundle/{chunk-6LHTWR3X.js → chunk-Q4ZE2LXE.js} +2 -2
  62. package/dist/bundle/{chunk-67WW33JB.js → chunk-QLQ7VVLK.js} +4 -4
  63. package/dist/bundle/{chunk-6RV7KXDF.js → chunk-QUWMFBMS.js} +6 -6
  64. package/dist/bundle/{chunk-WVYSOV3C.js → chunk-RWG44LQD.js} +4 -4
  65. package/dist/bundle/{chunk-L7VIPVHL.js → chunk-SB47UAW2.js} +49 -39
  66. package/dist/bundle/{chunk-LXOSBFWW.js → chunk-SEH7DBAM.js} +7 -7
  67. package/dist/bundle/{chunk-FAOVUALC.js → chunk-SPJJCD2A.js} +13 -13
  68. package/dist/bundle/{chunk-UPWHCUVA.js → chunk-TILW3EJY.js} +334 -293
  69. package/dist/bundle/{chunk-LPJ3S6GE.js → chunk-TQFCPUIM.js} +1 -1
  70. package/dist/bundle/{chunk-BPQNTYLN.js → chunk-TZE6WXID.js} +565 -297
  71. package/dist/bundle/{chunk-OMUX4LSS.js → chunk-UD4FKICZ.js} +4 -4
  72. package/dist/bundle/{chunk-DLAFGSTN.js → chunk-UIPT6IAU.js} +1 -1
  73. package/dist/bundle/{chunk-35X6G276.js → chunk-URJZK4GX.js} +1 -1
  74. package/dist/bundle/{chunk-RGOBGHWE.js → chunk-VFJ3MOIR.js} +3 -3
  75. package/dist/bundle/{chunk-GNHPYQMM.js → chunk-XAXXEZZ5.js} +2 -2
  76. package/dist/bundle/{chunk-OVVDOVLN.js → chunk-YBMOFCY5.js} +2 -2
  77. package/dist/bundle/{chunk-3TGR4RDD.js → chunk-YF2PT5KA.js} +31 -31
  78. package/dist/bundle/{chunk-ABCHE4YP.js → chunk-YFIUXE25.js} +3 -3
  79. package/dist/bundle/{chunk-MVRCLMQL.js → chunk-YI6ZNDPC.js} +22 -12
  80. package/dist/bundle/{chunk-B3PTSX5D.js → chunk-YJN4XYNA.js} +2 -2
  81. package/dist/bundle/{cli-O4LAGYXI.js → cli-AHPIESAC.js} +63 -53
  82. package/dist/bundle/command-contract-HVLI3OKU.js +38 -0
  83. package/dist/bundle/config-UW6W34I2.js +78 -0
  84. package/dist/bundle/{decode-WRMZJJCR.js → decode-ZU7WLMMV.js} +3 -3
  85. package/dist/bundle/{dist-SQK4GIJT.js → dist-LTS7VI3S.js} +14 -14
  86. package/dist/bundle/{echarts-3DOOJSQR.js → echarts-YNGCOYHW.js} +2 -2
  87. package/dist/bundle/{embed-OYRHTMFI.js → embed-VWWOW7PP.js} +4 -4
  88. package/dist/bundle/{embedder-ZAYCL22W.js → embedder-T5GJC7M2.js} +7 -7
  89. package/dist/bundle/{first-run-QXSPIXOQ.js → first-run-PX3SHPUU.js} +8 -8
  90. package/dist/bundle/first-screen-RAPEZG57.js +36 -0
  91. package/dist/bundle/{folders-EXQLKXVK.js → folders-VXMDFC2D.js} +2 -2
  92. package/dist/bundle/{instructions-GFEOB7XJ.js → instructions-GJHHFV64.js} +1 -1
  93. package/dist/bundle/{main-RADF3CRI.js → main-IYCD6MBH.js} +16 -16
  94. package/dist/bundle/{mcp-WSGVVZWI.js → mcp-EMNFFY4N.js} +2 -2
  95. package/dist/bundle/{meetings-6BIIT42H.js → meetings-GHYNIOHG.js} +4 -4
  96. package/dist/bundle/{node-A3B2YRQI.js → node-GFOH6FKP.js} +2 -2
  97. package/dist/bundle/{node-sqlite-XRP5FUDY.js → node-sqlite-QXKSPHTP.js} +3 -3
  98. package/dist/bundle/{oauth-YICY4AN4.js → oauth-A6I2OMDD.js} +5 -5
  99. package/dist/bundle/{open-4CNKSQRB.js → open-TQKCU447.js} +2 -2
  100. package/dist/bundle/{openai-YYRO3X7I.js → openai-XE3BJXOI.js} +9 -9
  101. package/dist/bundle/{output-file-7BXYV6OL.js → output-file-FQNFCUKE.js} +3 -3
  102. package/dist/bundle/{process-A45QXKID.js → process-XVDX4SPD.js} +1 -1
  103. package/dist/bundle/{program-DTP7BRTW.js → program-UYK4AD2W.js} +69 -69
  104. package/dist/bundle/{prompt-5LMKO7SE.js → prompt-ISYG5RWM.js} +3 -3
  105. package/dist/bundle/{recognize-MB6WRGUD.js → recognize-KENPECLZ.js} +2 -2
  106. package/dist/bundle/{remote-PD7WMTTS.js → remote-ZP5XTDCC.js} +5 -5
  107. package/dist/bundle/{rerank-7E6GQ5Y6.js → rerank-SG653RHT.js} +5 -5
  108. package/dist/bundle/{run-log-TCFK4LEC.js → run-log-HYKGQ42E.js} +53 -53
  109. package/dist/bundle/{serve-JBT2BWHK.js → serve-6UJCZD7Z.js} +7 -7
  110. package/dist/bundle/server-AXE37E6Q.js +66 -0
  111. package/dist/bundle/{server-H2UPGGBI.js → server-ZAYEDPFR.js} +42 -42
  112. package/dist/bundle/{services-SJOTKL5V.js → services-KMH7XZPY.js} +31 -27
  113. package/dist/bundle/{speech-4SL25GSC.js → speech-LINBLG5E.js} +11 -11
  114. package/dist/bundle/{state-FVMTDZ6B.js → state-4RKZNHE7.js} +4 -4
  115. package/dist/bundle/{store-TI77SCNL.js → store-253N7NUC.js} +15 -15
  116. package/dist/bundle/{store-DNPKBUVO.js → store-JTBHRQZK.js} +13 -13
  117. package/dist/bundle/store-connection-PWLUMCP7.js +76 -0
  118. package/dist/bundle/store-maintenance-command-XRNECVDU.js +55 -0
  119. package/dist/bundle/{streaming-UHAHGPH5.js → streaming-YW64OKKQ.js} +4 -4
  120. package/dist/bundle/{tokens-Y2MX6JBL.js → tokens-DPBC2P3I.js} +4 -4
  121. package/dist/bundle/zm.js +1 -1
  122. package/dist/tokens.d.ts +6 -1
  123. package/dist/tokens.d.ts.map +1 -1
  124. package/dist/tokens.js +21 -10
  125. package/dist/tokens.js.map +1 -1
  126. package/dist/version.d.ts +1 -1
  127. package/dist/version.js +1 -1
  128. package/package.json +3 -3
  129. package/dist/bundle/answer-policy-GRODO2DY.js +0 -96
  130. package/dist/bundle/command-contract-67QKBY6M.js +0 -38
  131. package/dist/bundle/config-ABURZDD2.js +0 -78
  132. package/dist/bundle/first-screen-MD6HWIJW.js +0 -36
  133. package/dist/bundle/server-CFIKEPLG.js +0 -66
  134. package/dist/bundle/store-connection-GIFWWMNO.js +0 -76
  135. package/dist/bundle/store-maintenance-command-WBKGF2CZ.js +0 -55
  136. /package/dist/bundle/{chunk-62EDJKGP.js → chunk-NPGVOZVK.js} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  WORK_TASK_TYPES,
17
17
  linkKind,
18
18
  matches
19
- } from "./chunk-6RV7KXDF.js";
19
+ } from "./chunk-QUWMFBMS.js";
20
20
  import {
21
21
  DEFAULT_STEMMERS,
22
22
  DEFAULT_STEMMERS_VERSION,
@@ -29,13 +29,13 @@ import {
29
29
  fold,
30
30
  normalize,
31
31
  parseStemmers
32
- } from "./chunk-KZV5GU7G.js";
32
+ } from "./chunk-IR73ZZY6.js";
33
33
  import {
34
34
  DEFAULT_TASK_CATEGORIES,
35
35
  sharedConfigPath,
36
36
  storedTaskCategories,
37
37
  taskCategoriesReader
38
- } from "./chunk-UYAKSUT5.js";
38
+ } from "./chunk-5LMQTEU5.js";
39
39
  import {
40
40
  COUNTER_FIELDS,
41
41
  DOCUMENT_ACCOUNT_PROVIDERS,
@@ -67,19 +67,19 @@ import {
67
67
  rankingWords,
68
68
  useStoredProviders,
69
69
  validCounter
70
- } from "./chunk-FXY45HU7.js";
70
+ } from "./chunk-MIUPH3WA.js";
71
71
  import {
72
72
  normalizeTag,
73
73
  tagOf
74
- } from "./chunk-OVVDOVLN.js";
74
+ } from "./chunk-YBMOFCY5.js";
75
75
  import {
76
76
  storePath
77
- } from "./chunk-M3EVVGR6.js";
77
+ } from "./chunk-EG7HC4EC.js";
78
78
  import {
79
79
  PRAGMAS,
80
80
  quietSqliteWarning,
81
81
  storeCapable
82
- } from "./chunk-MBMDF5EL.js";
82
+ } from "./chunk-IK2OSV5C.js";
83
83
  import {
84
84
  CHAT_MESSAGES_READ,
85
85
  MEETING_FINDINGS_KIND,
@@ -106,7 +106,7 @@ import {
106
106
  validateMeetingPreparationContext,
107
107
  validateMeetingRelatedHistory,
108
108
  validateMeetingSeriesHistory
109
- } from "./chunk-RSXLI5GP.js";
109
+ } from "./chunk-4OTXE6CF.js";
110
110
  import {
111
111
  QUERY_LIMITS,
112
112
  dateRange,
@@ -117,7 +117,7 @@ import {
117
117
  validateQuery,
118
118
  walkQuery,
119
119
  zonedMoment
120
- } from "./chunk-NVN4O5IC.js";
120
+ } from "./chunk-D6FTCPXA.js";
121
121
  import {
122
122
  CliError,
123
123
  array,
@@ -136,7 +136,7 @@ import {
136
136
  singleLine,
137
137
  strictObject,
138
138
  string
139
- } from "./chunk-L7VIPVHL.js";
139
+ } from "./chunk-SB47UAW2.js";
140
140
  import {
141
141
  resolveFrom
142
142
  } from "./chunk-Y5E2WNWB.js";
@@ -164,12 +164,12 @@ import {
164
164
  sql,
165
165
  sqliteTable,
166
166
  text
167
- } from "./chunk-FQ54A7GI.js";
167
+ } from "./chunk-EOEDICIE.js";
168
168
  import {
169
169
  __name
170
170
  } from "./chunk-ZVVMGPBJ.js";
171
171
 
172
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/account-store.js
172
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/account-store.js
173
173
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
174
174
  const methods = whole;
175
175
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -297,7 +297,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
297
297
  };
298
298
  }, "bindAccount");
299
299
 
300
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/query.js
300
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/query.js
301
301
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
302
302
  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");
303
303
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -320,7 +320,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
320
320
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
321
321
  }, "sourceOf");
322
322
 
323
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/account-list.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/account-list.js
324
324
  var ACCOUNT_GROUPS = "accountGroups";
325
325
  var ACCOUNT_GROUPS_SETTING = "account_groups";
326
326
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -507,7 +507,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf = (kind3)
507
507
  return { accounts: [...chosen.values()], skipped };
508
508
  }, "fitting");
509
509
 
510
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
510
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
511
511
  var IndexBuilderOn = class {
512
512
  static {
513
513
  __name(this, "IndexBuilderOn");
@@ -702,7 +702,7 @@ function alias(table, alias2) {
702
702
  }
703
703
  __name(alias, "alias");
704
704
 
705
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
705
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
706
706
  var ENTITY_TABLES = {
707
707
  account: "accounts",
708
708
  attachment: "attachments",
@@ -742,7 +742,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
742
742
  return { table, pointer, type, count, known: known2 };
743
743
  }).filter(({ count }) => count > 0)), "orphanPointers");
744
744
 
745
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
745
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
746
746
  var canonicalTags = sqliteTable("canonical_tags", {
747
747
  id: integer("id").primaryKey(),
748
748
  name: text("name").notNull().unique(),
@@ -751,7 +751,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
751
751
  updatedAt: integer("updated_at").notNull()
752
752
  });
753
753
 
754
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
754
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
755
755
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
756
756
  sourceKey: text("source_key").notNull(),
757
757
  collection: text("collection").notNull(),
@@ -761,13 +761,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
761
761
  createdAt: integer("created_at").notNull()
762
762
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
763
763
 
764
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
764
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
765
765
  var documentIndexPending = sqliteTable("document_index_pending", {
766
766
  id: integer("id").notNull(),
767
767
  indexableType: text("indexable_type").notNull()
768
768
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
769
769
 
770
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
770
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
771
771
  var tagRedirects = sqliteTable("tag_redirects", {
772
772
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
773
773
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -793,7 +793,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
793
793
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
794
794
  ]);
795
795
 
796
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
796
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
797
797
  var accounts = sqliteTable("accounts", {
798
798
  id: integer("id").primaryKey(),
799
799
  provider: text("provider").notNull(),
@@ -2289,7 +2289,7 @@ var storeSettings = sqliteTable("store_settings", {
2289
2289
  at: integer("at").notNull()
2290
2290
  });
2291
2291
 
2292
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2292
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2293
2293
  var ARMS = [
2294
2294
  [
2295
2295
  "message",
@@ -2416,7 +2416,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2416
2416
  return recomputed;
2417
2417
  }, "drainInvolvementQueue");
2418
2418
 
2419
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2419
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2420
2420
  import { domainToUnicode } from "node:url";
2421
2421
 
2422
2422
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12438,7 +12438,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12438
12438
  }, "oa");
12439
12439
  var na = { parse: O, get: aa, isValid: oa };
12440
12440
 
12441
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12441
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12442
12442
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12443
12443
  var ID = /^[\w-]{10,}$/;
12444
12444
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12479,7 +12479,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text5) => [...text5.matchAll(L
12479
12479
  return { url, documentId: googleDocumentId(url) };
12480
12480
  }), "googleDocumentLinks");
12481
12481
 
12482
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12482
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12483
12483
  var PHONE_PLANS = [
12484
12484
  {
12485
12485
  country: "us",
@@ -12859,7 +12859,7 @@ var PHONE_PLANS = [
12859
12859
  }
12860
12860
  ];
12861
12861
 
12862
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/phones.js
12862
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/phones.js
12863
12863
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
12864
12864
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
12865
12865
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -12900,7 +12900,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
12900
12900
  return void 0;
12901
12901
  }, "nationalPhone");
12902
12902
 
12903
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/places.js
12903
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/places.js
12904
12904
  var BEFORE = [
12905
12905
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
12906
12906
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13160,7 +13160,7 @@ var findPlaces = /* @__PURE__ */ __name((text5) => {
13160
13160
  return found2.sort((a, b) => a.start - b.start);
13161
13161
  }, "findPlaces");
13162
13162
 
13163
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13163
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13164
13164
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13165
13165
  var MENTION_VERSIONS = {
13166
13166
  phone: 1,
@@ -13350,7 +13350,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13350
13350
  };
13351
13351
  }, "typedPhone");
13352
13352
 
13353
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13353
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13354
13354
  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";
13355
13355
  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";
13356
13356
  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";
@@ -13358,7 +13358,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13358
13358
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13359
13359
  var NAME_WORDS = WORDS.split(" ");
13360
13360
 
13361
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13361
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13362
13362
  var LATIN_TO_CYRILLIC = {
13363
13363
  shch: "\u0449",
13364
13364
  sch: "\u0449",
@@ -13566,7 +13566,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text5, stem, taken) => {
13566
13566
  return found2;
13567
13567
  }, "findUnknownNames");
13568
13568
 
13569
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13569
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/attachments.js
13570
13570
  var NOT_FILES = /* @__PURE__ */ new Set([
13571
13571
  "webpage",
13572
13572
  "share",
@@ -13598,7 +13598,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
13598
13598
  });
13599
13599
  }, "matchDownloads");
13600
13600
 
13601
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13601
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
13602
13602
  var QUERY_VERSION = 1;
13603
13603
  var QUERY_LIMITS2 = {
13604
13604
  ...QUERY_LIMITS,
@@ -13629,7 +13629,7 @@ function exhausted(budget) {
13629
13629
  }
13630
13630
  __name(exhausted, "exhausted");
13631
13631
 
13632
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13632
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
13633
13633
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
13634
13634
  var literal2 = /* @__PURE__ */ __name((c) => ({
13635
13635
  kind: "char",
@@ -14029,7 +14029,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14029
14029
  return out;
14030
14030
  }, "foldRegex");
14031
14031
 
14032
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14032
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14033
14033
  var PRESET_VERSION = 1;
14034
14034
  var PRESETS = {
14035
14035
  password: {
@@ -14083,7 +14083,7 @@ var PRESETS = {
14083
14083
  }
14084
14084
  };
14085
14085
 
14086
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14086
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14087
14087
  var FIELD_VERSION = 2;
14088
14088
  var UNITS = {
14089
14089
  "": 1,
@@ -14583,12 +14583,12 @@ var QUERY_OPERATORS = [
14583
14583
  { name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
14584
14584
  ];
14585
14585
 
14586
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14586
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
14587
14587
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
14588
14588
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
14589
14589
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
14590
14590
 
14591
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14591
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
14592
14592
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
14593
14593
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
14594
14594
  var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
@@ -14612,7 +14612,7 @@ var linkMatch = /* @__PURE__ */ __name((field3, typed, mail, mentioned2) => {
14612
14612
  };
14613
14613
  }, "linkMatch");
14614
14614
 
14615
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14615
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
14616
14616
  var SETTING = "phoneCountries";
14617
14617
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
14618
14618
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -14643,7 +14643,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
14643
14643
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
14644
14644
  }, "valueMatch");
14645
14645
 
14646
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14646
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
14647
14647
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
14648
14648
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
14649
14649
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -14671,7 +14671,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
14671
14671
  return 2 * intersection2 / (aa2.size + bb.size);
14672
14672
  }, "vocabularySimilarity");
14673
14673
 
14674
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14674
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
14675
14675
  import { createHash } from "node:crypto";
14676
14676
  var folded2 = /* @__PURE__ */ __name((name) => {
14677
14677
  try {
@@ -14737,7 +14737,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind3, by, options
14737
14737
  });
14738
14738
  }, "guardTagCreation");
14739
14739
 
14740
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14740
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
14741
14741
  var invalid = /* @__PURE__ */ __name((message2) => {
14742
14742
  throw new CliError("validation_error", message2);
14743
14743
  }, "invalid");
@@ -14814,7 +14814,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
14814
14814
  };
14815
14815
  }, "createTagRedirectIndex");
14816
14816
 
14817
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14817
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
14818
14818
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
14819
14819
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
14820
14820
  if (!row2)
@@ -14842,7 +14842,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
14842
14842
  return snapshot2;
14843
14843
  }, "tagRedirectSnapshot");
14844
14844
 
14845
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14845
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
14846
14846
  import { createHash as createHash2 } from "node:crypto";
14847
14847
  var TASK_KEY_PREFIXES = {
14848
14848
  question: "Q",
@@ -14870,7 +14870,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
14870
14870
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
14871
14871
  }, "taskAccountOf");
14872
14872
 
14873
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14873
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
14874
14874
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
14875
14875
  var REFERABLE = {
14876
14876
  note: { tombstone: true },
@@ -15028,7 +15028,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
15028
15028
  }, "taskIdOf");
15029
15029
  var canonicalThingReference = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith("meeting:") ? canonicalMeetingReference(reference2) : canonicalReference(reference2), "canonicalThingReference");
15030
15030
 
15031
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15031
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15032
15032
  var toMs = /* @__PURE__ */ __name((iso11) => {
15033
15033
  if (iso11 === null || iso11 === void 0)
15034
15034
  return null;
@@ -15042,7 +15042,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15042
15042
  var DELIVERY = { delivered: 1, read: 2 };
15043
15043
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15044
15044
 
15045
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15045
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15046
15046
  var TAG_KINDS = ["tag", "topic"];
15047
15047
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15048
15048
  var TAG_TYPE = {
@@ -15233,7 +15233,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15233
15233
  return result;
15234
15234
  }, "tagsOf");
15235
15235
 
15236
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15236
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15237
15237
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15238
15238
  var SPEECH = speech("att");
15239
15239
  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");
@@ -15588,7 +15588,7 @@ var FIELD_COMPILERS = {
15588
15588
  subject
15589
15589
  };
15590
15590
 
15591
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15591
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
15592
15592
  var placeOf = /* @__PURE__ */ __name((database) => {
15593
15593
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
15594
15594
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -15604,7 +15604,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
15604
15604
  };
15605
15605
  }, "placeOf");
15606
15606
 
15607
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15607
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
15608
15608
  var DRAIN_ON_WRITE = 500;
15609
15609
  var METHOD = "rules";
15610
15610
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -15767,7 +15767,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
15767
15767
  return queued.length;
15768
15768
  }, "drainMentions");
15769
15769
 
15770
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15770
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
15771
15771
  var indexRow = /* @__PURE__ */ __name((database, name) => {
15772
15772
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
15773
15773
  if (!exists2)
@@ -15775,7 +15775,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
15775
15775
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
15776
15776
  }, "indexRow");
15777
15777
 
15778
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15778
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
15779
15779
  var INDEX = "message_stems";
15780
15780
  var SETTING2 = "searchStemmers";
15781
15781
  var DRAIN_ON_WRITE2 = 500;
@@ -15897,7 +15897,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
15897
15897
  };
15898
15898
  }, "stemmerCache");
15899
15899
 
15900
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15900
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
15901
15901
  var SQLITE_BUSY = 5;
15902
15902
  var pause = new Int32Array(new SharedArrayBuffer(4));
15903
15903
  var isBusy = /* @__PURE__ */ __name((error) => {
@@ -15934,7 +15934,14 @@ var connectionOf = /* @__PURE__ */ __name((database) => {
15934
15934
  return connection;
15935
15935
  }, "connectionOf");
15936
15936
  var write = /* @__PURE__ */ __name((database, body2, { beforeCommit } = {}) => transact(database, body2, true, beforeCommit), "write");
15937
- var writeBatch = /* @__PURE__ */ __name((database, body2) => transact(database, body2, false), "writeBatch");
15937
+ var writeBatch = /* @__PURE__ */ __name((database, body2) => {
15938
+ const outer = connectionOf(database).depth === 0;
15939
+ const result = transact(database, body2, false);
15940
+ if (outer)
15941
+ Atomics.wait(pause, 0, 0, BATCH_PAUSE_MS);
15942
+ return result;
15943
+ }, "writeBatch");
15944
+ var BATCH_PAUSE_MS = 2;
15938
15945
  var transact = /* @__PURE__ */ __name((database, body2, drain, beforeCommit) => {
15939
15946
  const connection = connectionOf(database);
15940
15947
  if (connection.reading)
@@ -15985,7 +15992,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
15985
15992
  }
15986
15993
  }, "read");
15987
15994
 
15988
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15995
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
15989
15996
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
15990
15997
  coalesce(CASE k.chunkable_type
15991
15998
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16127,7 +16134,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16127
16134
  }, "dropUnusedVectors");
16128
16135
  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");
16129
16136
 
16130
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16137
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16131
16138
  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({
16132
16139
  target: [accounts.provider, accounts.externalId],
16133
16140
  set: {
@@ -16233,7 +16240,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16233
16240
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16234
16241
  }, "dropOrphanPeople");
16235
16242
 
16236
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16243
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16237
16244
  var FOLDED = [
16238
16245
  { table: "tasks", column: "title" },
16239
16246
  { table: "tasks", column: "close_reason" },
@@ -16270,7 +16277,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
16270
16277
  return filled2;
16271
16278
  }, "fillFolded");
16272
16279
 
16273
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16280
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16274
16281
  import { createHash as createHash3 } from "node:crypto";
16275
16282
  var CHUNK_CHARS = 1200;
16276
16283
  var CHUNK_OVERLAP = 150;
@@ -16375,7 +16382,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16375
16382
  return chunks2;
16376
16383
  }, "cutChunks");
16377
16384
 
16378
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16385
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16379
16386
  var DAY = 864e5;
16380
16387
  var CURRENCY = [
16381
16388
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -16492,7 +16499,7 @@ var dueDayOf = /* @__PURE__ */ __name((text5, createdMs) => {
16492
16499
  return best?.day ?? null;
16493
16500
  }, "dueDayOf");
16494
16501
 
16495
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
16502
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
16496
16503
  var DAY2 = 864e5;
16497
16504
  var STOP_WORDS = new Set([
16498
16505
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -16647,7 +16654,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
16647
16654
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
16648
16655
  })).sort((a, b) => b.score - a.score), "rankCandidates");
16649
16656
 
16650
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
16657
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
16651
16658
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
16652
16659
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
16653
16660
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -16918,7 +16925,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
16918
16925
  };
16919
16926
  }, "readiness");
16920
16927
 
16921
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
16928
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
16922
16929
  var DOCUMENT_PICTURE = "document_picture";
16923
16930
  var SCAN_PAGE2 = 5e3;
16924
16931
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -16981,7 +16988,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
16981
16988
  }, "nearestPictures")
16982
16989
  }), "documentPicturesOver");
16983
16990
 
16984
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16991
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
16985
16992
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
16986
16993
  const literal4 = escaped2 ?? plain2 ?? "";
16987
16994
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -17046,7 +17053,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
17046
17053
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
17047
17054
  var bound2 = /* @__PURE__ */ __name(({ sql: text5, params }) => sql.join(text5.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
17048
17055
 
17049
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17056
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17050
17057
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
17051
17058
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
17052
17059
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17136,7 +17143,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17136
17143
  });
17137
17144
  }, "linkMeeting");
17138
17145
 
17139
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17146
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17140
17147
  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), ''))";
17141
17148
  var UNSEARCHED_EVENT_TYPES = [
17142
17149
  "working-location",
@@ -17366,7 +17373,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17366
17373
  return true;
17367
17374
  }, "resetNoteIndex");
17368
17375
 
17369
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17376
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17370
17377
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
17371
17378
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17372
17379
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -17385,7 +17392,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17385
17392
  }
17386
17393
  }, "resolvePersonLinks");
17387
17394
 
17388
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17395
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17389
17396
  var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
17390
17397
  var prepare = /* @__PURE__ */ __name((orm) => ({
17391
17398
  find: orm.select({
@@ -17610,7 +17617,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
17610
17617
  }, "meetingIdentityPk");
17611
17618
  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");
17612
17619
 
17613
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
17620
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
17614
17621
  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");
17615
17622
  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");
17616
17623
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -17890,7 +17897,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
17890
17897
  }
17891
17898
  }, "replaceAutoTags");
17892
17899
 
17893
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
17900
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
17894
17901
  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");
17895
17902
  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;
17896
17903
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -17971,7 +17978,7 @@ var mailCore = /* @__PURE__ */ __name((body2, earlier) => {
17971
17978
  return withoutSignOff(withoutGreeting(kept)).join("\n").trim();
17972
17979
  }, "mailCore");
17973
17980
 
17974
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17981
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
17975
17982
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
17976
17983
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
17977
17984
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -18081,7 +18088,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
18081
18088
  return emails3 + threads;
18082
18089
  }, "drainEmailIndex");
18083
18090
 
18084
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18091
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18085
18092
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
18086
18093
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
18087
18094
  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,
@@ -18127,7 +18134,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
18127
18134
  leave.run(emailId, Number(box.id), emailId, Number(box.id));
18128
18135
  }, "forgetLocations");
18129
18136
 
18130
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
18137
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
18131
18138
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
18132
18139
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
18133
18140
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -18177,7 +18184,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
18177
18184
  return threads.length;
18178
18185
  }, "markEmailsRestored");
18179
18186
 
18180
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
18187
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
18181
18188
  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");
18182
18189
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
18183
18190
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -18244,7 +18251,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
18244
18251
  }
18245
18252
  }), "mailRulesOver");
18246
18253
 
18247
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18254
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
18248
18255
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
18249
18256
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
18250
18257
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -18252,7 +18259,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
18252
18259
  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);
18253
18260
  }, "reviewLink");
18254
18261
 
18255
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18262
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
18256
18263
  function checkMeetingCancelled(signal) {
18257
18264
  if (!signal?.aborted)
18258
18265
  return;
@@ -18263,7 +18270,7 @@ function checkMeetingCancelled(signal) {
18263
18270
  }
18264
18271
  __name(checkMeetingCancelled, "checkMeetingCancelled");
18265
18272
 
18266
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18273
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
18267
18274
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
18268
18275
  id: Number(row2.id),
18269
18276
  accountId: Number(row2.account_id),
@@ -18313,7 +18320,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
18313
18320
  createdAt: Number(row2.created_at)
18314
18321
  }), "transcriptRowOf");
18315
18322
 
18316
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18323
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
18317
18324
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
18318
18325
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
18319
18326
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -18480,7 +18487,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
18480
18487
  }
18481
18488
  }), "meetingReadsOver");
18482
18489
 
18483
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18490
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
18484
18491
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18485
18492
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
18486
18493
  const params = [input.accountId];
@@ -18523,7 +18530,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
18523
18530
  return { clauses, params };
18524
18531
  }, "meetingSelectionSql");
18525
18532
 
18526
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18533
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
18527
18534
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18528
18535
  async meetingChatLines(input) {
18529
18536
  checkMeetingCancelled(input.signal);
@@ -18551,7 +18558,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
18551
18558
  }
18552
18559
  }), "meetingChatLinesOver");
18553
18560
 
18554
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18561
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
18555
18562
  var MESSAGE_FIELDS = {
18556
18563
  pk: messages.id,
18557
18564
  nativeId: messages.externalId,
@@ -18718,7 +18725,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
18718
18725
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
18719
18726
  }), "chatActivity");
18720
18727
 
18721
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18728
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
18722
18729
  var HIT_FIELDS = {
18723
18730
  ...MESSAGE_FIELDS,
18724
18731
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -18817,7 +18824,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
18817
18824
  };
18818
18825
  }, "directReplies");
18819
18826
 
18820
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18827
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
18821
18828
  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");
18822
18829
  var required = /* @__PURE__ */ __name((context, ref3) => {
18823
18830
  const found2 = identityRow(context, ref3);
@@ -18948,7 +18955,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
18948
18955
  }, "mentioning");
18949
18956
  var escaped = /* @__PURE__ */ __name((text5) => text5.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
18950
18957
 
18951
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18958
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
18952
18959
  var missing2 = /* @__PURE__ */ __name(() => {
18953
18960
  throw new CliError("not_found", "Meeting, participant or selected target not found");
18954
18961
  }, "missing");
@@ -19070,7 +19077,7 @@ function meetingContextLinksOver(context) {
19070
19077
  }
19071
19078
  __name(meetingContextLinksOver, "meetingContextLinksOver");
19072
19079
 
19073
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19080
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19074
19081
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
19075
19082
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
19076
19083
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -19099,7 +19106,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
19099
19106
  return row2 ? summaryText(summaryOf(row2)) : null;
19100
19107
  }, "indexedText");
19101
19108
 
19102
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
19109
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
19103
19110
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
19104
19111
  var meetingCurrentIndexRows = `
19105
19112
  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
@@ -19130,7 +19137,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
19130
19137
  }, "invalidateMeetingStems");
19131
19138
  var meetingStemmableText = /* @__PURE__ */ __name((text5) => text5.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
19132
19139
 
19133
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
19140
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
19134
19141
  function meetingHitIndexOver({ database, now: now2 }) {
19135
19142
  return {
19136
19143
  async indexSearch(original) {
@@ -19198,10 +19205,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
19198
19205
  }
19199
19206
  __name(meetingHitIndexOver, "meetingHitIndexOver");
19200
19207
 
19201
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19208
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19202
19209
  import { createHash as createHash4 } from "node:crypto";
19203
19210
 
19204
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19211
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/trigrams.js
19205
19212
  var trigrams = /* @__PURE__ */ __name((term) => {
19206
19213
  const padded = ` ${term} `;
19207
19214
  const pieces = /* @__PURE__ */ new Set();
@@ -19210,7 +19217,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
19210
19217
  return [...pieces];
19211
19218
  }, "trigrams");
19212
19219
 
19213
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/correct.js
19220
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/correct.js
19214
19221
  var SHORTEST_CORRECTION = 3;
19215
19222
  var maxEdits = /* @__PURE__ */ __name((word) => word.length <= 4 ? 1 : 2, "maxEdits");
19216
19223
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -19257,7 +19264,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
19257
19264
  return corrections;
19258
19265
  }, "correctWords");
19259
19266
 
19260
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/garbled.js
19267
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/garbled.js
19261
19268
  var SHORTEST_GARBLED = 4;
19262
19269
  var MOST_WIDENED = 64;
19263
19270
  var plain = /* @__PURE__ */ __name((word) => word.replaceAll("\u044D", "\u0435"), "plain");
@@ -19349,7 +19356,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
19349
19356
  return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word) => word.term));
19350
19357
  }, "widenWords");
19351
19358
 
19352
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19359
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
19353
19360
  import { readFileSync } from "node:fs";
19354
19361
  var loaded;
19355
19362
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -19408,7 +19415,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word) => {
19408
19415
  return false;
19409
19416
  }, "knownRussianWord");
19410
19417
 
19411
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19418
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
19412
19419
  var WORD2 = /[\p{L}\p{N}\p{M}]+/gu;
19413
19420
  var MOST_WORDS = 128;
19414
19421
  var quote = /* @__PURE__ */ __name((word) => `"${word.replaceAll('"', '""')}"`, "quote");
@@ -19635,7 +19642,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text5, stemmer) => {
19635
19642
  return check3(tree);
19636
19643
  }, "matchMeetingText");
19637
19644
 
19638
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19645
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
19639
19646
  var fail3 = /* @__PURE__ */ __name((message2) => {
19640
19647
  throw new CliError("validation_error", message2);
19641
19648
  }, "fail");
@@ -19812,7 +19819,7 @@ function meetingHitSearchOver({ database }) {
19812
19819
  }
19813
19820
  __name(meetingHitSearchOver, "meetingHitSearchOver");
19814
19821
 
19815
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19822
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
19816
19823
  import { createHash as createHash5 } from "node:crypto";
19817
19824
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
19818
19825
  if (value === void 0)
@@ -19902,7 +19909,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
19902
19909
  }
19903
19910
  }), "meetingParticipantSearchOver");
19904
19911
 
19905
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19912
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
19906
19913
  var preparationQueries = {
19907
19914
  participants: {
19908
19915
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -19952,7 +19959,7 @@ var preparationQueries = {
19952
19959
  }
19953
19960
  };
19954
19961
 
19955
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19962
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
19956
19963
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19957
19964
  async preparationContext(original) {
19958
19965
  const input = validateMeetingPreparationContext(original);
@@ -19993,7 +20000,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
19993
20000
  }
19994
20001
  }), "meetingPreparationContextOver");
19995
20002
 
19996
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20003
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
19997
20004
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
19998
20005
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
19999
20006
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -20007,7 +20014,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20007
20014
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
20008
20015
  )`, "preparationSubjects");
20009
20016
 
20010
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20017
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20011
20018
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
20012
20019
  async preparationKnowledge(original) {
20013
20020
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20052,7 +20059,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
20052
20059
  }
20053
20060
  }), "meetingPreparationKnowledgeOver");
20054
20061
 
20055
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
20062
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
20056
20063
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
20057
20064
  async preparationNotes(original) {
20058
20065
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20105,7 +20112,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
20105
20112
  }
20106
20113
  }), "meetingPreparationNotesOver");
20107
20114
 
20108
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
20115
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
20109
20116
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20110
20117
  async relatedHistory(original) {
20111
20118
  const input = validateMeetingRelatedHistory(original);
@@ -20176,7 +20183,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20176
20183
  }
20177
20184
  }), "meetingRelatedHistoryOver");
20178
20185
 
20179
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
20186
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
20180
20187
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
20181
20188
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
20182
20189
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -20257,7 +20264,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
20257
20264
  }
20258
20265
  }), "meetingReviewOver");
20259
20266
 
20260
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20267
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
20261
20268
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
20262
20269
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
20263
20270
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -20311,7 +20318,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
20311
20318
  }
20312
20319
  }), "meetingSeriesHistoryOver");
20313
20320
 
20314
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20321
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
20315
20322
  var MOST_ROWS = 5e5;
20316
20323
  var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20317
20324
  async meetingStats(input) {
@@ -20358,7 +20365,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
20358
20365
  }
20359
20366
  }), "meetingStatsOver");
20360
20367
 
20361
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20368
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
20362
20369
  var CURSOR_KEY = "meetings";
20363
20370
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
20364
20371
  id: Number(row2.id),
@@ -20910,7 +20917,33 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
20910
20917
  };
20911
20918
  }, "meetingStoreOver");
20912
20919
 
20913
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20920
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
20921
+ var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
20922
+ const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
20923
+ return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
20924
+ }, "syncStateOf");
20925
+ var writeState = /* @__PURE__ */ __name(({ orm, now: now2 }, accountKey, name, value) => {
20926
+ orm.insert(syncCursors).values({ accountId: accountKey, key: name, value, createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
20927
+ target: [syncCursors.accountId, syncCursors.key],
20928
+ set: { value: sql`excluded.value`, updatedAt: sql`excluded.updated_at` }
20929
+ }).run();
20930
+ }, "writeState");
20931
+ var clearState = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
20932
+ orm.delete(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).run();
20933
+ }, "clearState");
20934
+ var claim2 = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, anchor, holder, forMs) => {
20935
+ const at = now2();
20936
+ return orm.insert(fetchLeases).values({ chatId: chatKey, anchor, holder, expiresAt: at + forMs }).onConflictDoUpdate({
20937
+ target: [fetchLeases.chatId, fetchLeases.anchor],
20938
+ set: { holder: sql`excluded.holder`, expiresAt: sql`excluded.expires_at` },
20939
+ setWhere: or(eq(fetchLeases.holder, sql`excluded.holder`), lte(fetchLeases.expiresAt, at))
20940
+ }).returning({ chatId: fetchLeases.chatId }).all().length > 0;
20941
+ }, "claim");
20942
+ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
20943
+ orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
20944
+ }, "release");
20945
+
20946
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
20914
20947
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
20915
20948
  id: `email:${place.emailId}`,
20916
20949
  chatId: place.threadExternalId,
@@ -21243,12 +21276,21 @@ var emailHitsByPk = /* @__PURE__ */ __name((database, pks) => {
21243
21276
  ];
21244
21277
  });
21245
21278
  }, "emailHitsByPk");
21246
- var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = stemmerCache()) => ({
21279
+ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemmerFor2 = stemmerCache()) => ({
21247
21280
  rules: mailRulesOver(database),
21248
21281
  async saveThread(input) {
21249
21282
  const id2 = write(database, () => saveThread(database, orm, input));
21250
21283
  return threadDetails(database, id2);
21251
21284
  },
21285
+ async saveThreads(inputs, states = []) {
21286
+ const ids = write(database, () => {
21287
+ const saved = inputs.map((input) => saveThread(database, orm, input));
21288
+ for (const { accountId, name, value } of states)
21289
+ writeState({ orm, now: now2 }, accountId, name, value);
21290
+ return saved;
21291
+ });
21292
+ return ids.map((id2) => threadDetails(database, id2));
21293
+ },
21252
21294
  async threads(filter = {}) {
21253
21295
  const [limit, offset] = page(filter);
21254
21296
  return database.prepare(`SELECT * FROM email_threads WHERE (? IS NULL OR account_id = ?) AND (? OR deleted_at IS NULL)
@@ -21307,7 +21349,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = ste
21307
21349
  dmarc: str(row2.dmarc)
21308
21350
  }));
21309
21351
  },
21310
- async setSenderScores(accountId, scores, now2) {
21352
+ async setSenderScores(accountId, scores, now3) {
21311
21353
  return write(database, () => {
21312
21354
  const link3 = database.prepare(`INSERT INTO account_identities
21313
21355
  (account_id, identity_id, created_at, updated_at, mail_score, mail_signals, mail_scored_at, mail_demoted)
@@ -21316,7 +21358,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = ste
21316
21358
  mail_signals = excluded.mail_signals, mail_scored_at = excluded.mail_scored_at,
21317
21359
  mail_demoted = excluded.mail_demoted`);
21318
21360
  for (const { address, score, signals, demoted } of scores)
21319
- link3.run(accountId, identityOf2(database, { address, name: null }, now2), now2, now2, score, JSON.stringify(signals), now2, demoted ? 1 : null);
21361
+ link3.run(accountId, identityOf2(database, { address, name: null }, now3), now3, now3, score, JSON.stringify(signals), now3, demoted ? 1 : null);
21320
21362
  return scores.length;
21321
21363
  });
21322
21364
  },
@@ -21329,9 +21371,9 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = ste
21329
21371
  kind: str(b.kind)
21330
21372
  }));
21331
21373
  },
21332
- async setMailboxes(accountId, scanned, found2, now2) {
21374
+ async setMailboxes(accountId, scanned, found2, now3) {
21333
21375
  return write(database, () => {
21334
- const boxes = new Map(scanned.map((box) => [box.externalId, mailboxPk(database, accountId, box, now2)]));
21376
+ const boxes = new Map(scanned.map((box) => [box.externalId, mailboxPk(database, accountId, box, now3)]));
21335
21377
  const lookup = database.prepare("SELECT id FROM emails WHERE account_id = ? AND external_id = ?");
21336
21378
  const leave = database.prepare(`DELETE FROM email_mailboxes WHERE email_id = ? AND mailbox_id IN (SELECT value FROM json_each(?))
21337
21379
  AND mailbox_id NOT IN (SELECT value FROM json_each(?))`);
@@ -21348,22 +21390,22 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = ste
21348
21390
  });
21349
21391
  leave.run(Number(row2.id), JSON.stringify([...boxes.values()]), JSON.stringify(kept));
21350
21392
  for (const pk of kept)
21351
- join(database, Number(row2.id), pk, now2);
21393
+ join(database, Number(row2.id), pk, now3);
21352
21394
  count++;
21353
21395
  }
21354
21396
  return count;
21355
21397
  });
21356
21398
  },
21357
- async setFlags(accountId, flags, now2) {
21399
+ async setFlags(accountId, flags, now3) {
21358
21400
  return write(database, () => {
21359
- return setEmailFlags(database, accountId, flags, now2);
21401
+ return setEmailFlags(database, accountId, flags, now3);
21360
21402
  });
21361
21403
  },
21362
21404
  folderEmails: /* @__PURE__ */ __name(async (accountId, folder, uidvalidity) => folderEmails(database, accountId, folder, uidvalidity), "folderEmails"),
21363
21405
  setLocations: /* @__PURE__ */ __name(async (accountId, folder, uidvalidity, found2) => write(database, () => setLocations(database, accountId, folder, uidvalidity, found2)), "setLocations"),
21364
21406
  forgetLocations: /* @__PURE__ */ __name(async (accountId, folder, uidvalidity, uids) => write(database, () => forgetLocations(database, accountId, folder, uidvalidity, uids)), "forgetLocations"),
21365
- markDeleted: /* @__PURE__ */ __name(async (accountId, externalIds, now2) => write(database, () => markEmailsDeleted(database, accountId, externalIds, now2)), "markDeleted"),
21366
- markRestored: /* @__PURE__ */ __name(async (accountId, externalIds, now2) => write(database, () => markEmailsRestored(database, accountId, externalIds, now2)), "markRestored"),
21407
+ markDeleted: /* @__PURE__ */ __name(async (accountId, externalIds, now3) => write(database, () => markEmailsDeleted(database, accountId, externalIds, now3)), "markDeleted"),
21408
+ markRestored: /* @__PURE__ */ __name(async (accountId, externalIds, now3) => write(database, () => markEmailsRestored(database, accountId, externalIds, now3)), "markRestored"),
21367
21409
  async chunksToEmbed(model, { after: after2, limit }) {
21368
21410
  drainEmailIndex(database, stemmerFor2);
21369
21411
  const file = database.prepare("SELECT text FROM attachments WHERE id = ?");
@@ -21458,7 +21500,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm }, stemmerFor2 = ste
21458
21500
  }
21459
21501
  }), "mailStoreOver");
21460
21502
 
21461
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21503
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/search/dictionary.js
21462
21504
  import { readFileSync as readFileSync2 } from "node:fs";
21463
21505
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
21464
21506
  var folded4 = /* @__PURE__ */ __name((word) => /^[а-яё'-]*$/.test(word) ? word.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word), "folded");
@@ -21548,7 +21590,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
21548
21590
  }, "knownWord");
21549
21591
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
21550
21592
 
21551
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21593
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
21552
21594
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
21553
21595
  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");
21554
21596
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -21634,7 +21676,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
21634
21676
  return found2;
21635
21677
  }, "spokenTranscripts");
21636
21678
 
21637
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21679
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
21638
21680
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
21639
21681
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
21640
21682
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -21681,7 +21723,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
21681
21723
  });
21682
21724
  }, "placeHits");
21683
21725
 
21684
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21726
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
21685
21727
  var MESSAGES2 = {
21686
21728
  rows: "messages",
21687
21729
  threads: "chats",
@@ -21717,17 +21759,18 @@ var GROUPS = {
21717
21759
  var matchQuery = /* @__PURE__ */ __name((context, execution) => runQuery(context, execution), "matchQuery");
21718
21760
  var countQuery = /* @__PURE__ */ __name((context, execution, by) => runQuery(context, execution, by), "countQuery");
21719
21761
  var queryMessagePks = /* @__PURE__ */ __name((context, execution) => runQuery(context, execution, "pks"), "queryMessagePks");
21720
- var countMatches = /* @__PURE__ */ __name((context, execution, cap) => {
21762
+ var countMatches = /* @__PURE__ */ __name((context, execution, cap) => matchingPks(context, execution, cap)?.length, "countMatches");
21763
+ var matchingPks = /* @__PURE__ */ __name((context, execution, cap) => {
21721
21764
  const { database, check: check3, where, from: from2, withRanking, ranked, leaves } = compileQuery(context, {
21722
21765
  ...execution,
21723
21766
  newest: true
21724
21767
  });
21725
21768
  if (leaves.some(({ test }) => test))
21726
21769
  return void 0;
21727
- const row2 = database.prepare(`SELECT count(*) AS n FROM (${withRanking}SELECT m.id ${from2} WHERE ${where.sql} LIMIT ?)`).get(...ranked.params, ...where.params, cap + 1);
21770
+ const rows = database.prepare(`${withRanking}SELECT m.id ${from2} WHERE ${where.sql} LIMIT ?`).all(...ranked.params, ...where.params, cap + 1);
21728
21771
  check3();
21729
- return Number(row2?.n ?? 0);
21730
- }, "countMatches");
21772
+ return rows.map(({ id: id2 }) => Number(id2));
21773
+ }, "matchingPks");
21731
21774
  var compileQuery = /* @__PURE__ */ __name((context, execution, boundedAttachments = false) => {
21732
21775
  const { database } = context;
21733
21776
  const corpus = execution.corpus === "mail" ? MAIL : MESSAGES2;
@@ -22154,7 +22197,7 @@ var runQuery = /* @__PURE__ */ __name(async (context, execution, by) => {
22154
22197
  };
22155
22198
  }, "runQuery");
22156
22199
 
22157
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
22200
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
22158
22201
  function invalidMetadata() {
22159
22202
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
22160
22203
  }
@@ -22256,7 +22299,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
22256
22299
  };
22257
22300
  }), "counterTargets");
22258
22301
 
22259
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22302
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
22260
22303
  var NOT_FILE_LIST = [...NOT_FILES].map((kind3) => `'${kind3}'`).join(",");
22261
22304
  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,
22262
22305
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -22375,7 +22418,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
22375
22418
  }));
22376
22419
  }, "attachmentViews");
22377
22420
 
22378
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22421
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
22379
22422
  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");
22380
22423
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text5, source2) => {
22381
22424
  const { orm, database, now: now2 } = context;
@@ -22413,7 +22456,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
22413
22456
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
22414
22457
  }, "intoVoiceAttachment");
22415
22458
 
22416
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22459
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
22417
22460
  var FIELDS = [
22418
22461
  "threadExternalId",
22419
22462
  "senderIdentityId",
@@ -22730,33 +22773,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
22730
22773
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
22731
22774
  }, "writeDerivedReactions");
22732
22775
 
22733
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
22734
- var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
22735
- const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
22736
- return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
22737
- }, "syncStateOf");
22738
- var writeState = /* @__PURE__ */ __name(({ orm, now: now2 }, accountKey, name, value) => {
22739
- orm.insert(syncCursors).values({ accountId: accountKey, key: name, value, createdAt: now2(), updatedAt: now2() }).onConflictDoUpdate({
22740
- target: [syncCursors.accountId, syncCursors.key],
22741
- set: { value: sql`excluded.value`, updatedAt: sql`excluded.updated_at` }
22742
- }).run();
22743
- }, "writeState");
22744
- var clearState = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
22745
- orm.delete(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).run();
22746
- }, "clearState");
22747
- var claim2 = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, anchor, holder, forMs) => {
22748
- const at = now2();
22749
- return orm.insert(fetchLeases).values({ chatId: chatKey, anchor, holder, expiresAt: at + forMs }).onConflictDoUpdate({
22750
- target: [fetchLeases.chatId, fetchLeases.anchor],
22751
- set: { holder: sql`excluded.holder`, expiresAt: sql`excluded.expires_at` },
22752
- setWhere: or(eq(fetchLeases.holder, sql`excluded.holder`), lte(fetchLeases.expiresAt, at))
22753
- }).returning({ chatId: fetchLeases.chatId }).all().length > 0;
22754
- }, "claim");
22755
- var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
22756
- orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
22757
- }, "release");
22758
-
22759
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/keys.js
22776
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/keys.js
22760
22777
  var keysOver = /* @__PURE__ */ __name((context) => {
22761
22778
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
22762
22779
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -22777,7 +22794,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
22777
22794
  };
22778
22795
  }, "keysOver");
22779
22796
 
22780
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22797
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
22781
22798
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
22782
22799
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
22783
22800
  if (!row2)
@@ -22812,7 +22829,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
22812
22829
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
22813
22830
  }, "saveProfile");
22814
22831
 
22815
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22832
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
22816
22833
  var BOT_KINDS = ["agent", "script", "integration"];
22817
22834
  var ownerPerson = /* @__PURE__ */ __name((database) => {
22818
22835
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -22848,7 +22865,7 @@ var originOfActor = /* @__PURE__ */ __name((database, type, id2) => {
22848
22865
  return database.prepare("SELECT name FROM bots WHERE id = ?").get(Number(id2))?.name === "rule" ? "rule" : "agent";
22849
22866
  }, "originOfActor");
22850
22867
 
22851
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22868
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
22852
22869
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
22853
22870
  const owner = ownerPerson(context.database).id;
22854
22871
  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);
@@ -22869,7 +22886,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
22869
22886
  return personOf(context, ref3);
22870
22887
  }, "linkToOwner");
22871
22888
 
22872
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22889
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
22873
22890
  var PROVIDERS_SETTING = "providers";
22874
22891
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
22875
22892
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -22904,7 +22921,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
22904
22921
  });
22905
22922
  }, "registerProvider");
22906
22923
 
22907
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22924
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
22908
22925
  var DAY3 = 864e5;
22909
22926
  var RECENTLY_CLOSED_MS = 14 * DAY3;
22910
22927
  var TEXT_LIMIT = 20;
@@ -23103,7 +23120,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
23103
23120
  };
23104
23121
  }, "taskSimilarityOver");
23105
23122
 
23106
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
23123
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
23107
23124
  var SETTING3 = "taskCategories";
23108
23125
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
23109
23126
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -23122,7 +23139,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
23122
23139
  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);
23123
23140
  }, "saveTaskCategories");
23124
23141
 
23125
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
23142
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
23126
23143
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
23127
23144
  var ALLOWED = "taskAgentClose";
23128
23145
  var MIN = "taskAgentCloseMin";
@@ -23178,7 +23195,7 @@ var SUGGESTION_COLUMNS = [
23178
23195
  ];
23179
23196
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
23180
23197
 
23181
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
23198
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
23182
23199
  var EXCERPT_CHARS = 280;
23183
23200
  var excerptOf = /* @__PURE__ */ __name((text5) => {
23184
23201
  if (text5 == null)
@@ -23221,7 +23238,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => database.pre
23221
23238
  };
23222
23239
  }), "evidenceSourcesOf");
23223
23240
 
23224
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/attachments/limits.js
23241
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/attachments/limits.js
23225
23242
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
23226
23243
  var MAX_TEXT_CHARS = 2e6;
23227
23244
  var ATTACHMENT_LIMIT_ENV = [
@@ -23247,7 +23264,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
23247
23264
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
23248
23265
  }, "pdfPreviewLimits");
23249
23266
 
23250
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/ulid.js
23267
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/ulid.js
23251
23268
  import { randomBytes } from "node:crypto";
23252
23269
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
23253
23270
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -23260,7 +23277,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
23260
23277
  return time3 + random;
23261
23278
  }, "ulid");
23262
23279
 
23263
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
23280
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
23264
23281
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
23265
23282
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
23266
23283
  if (!meta && !sections?.length)
@@ -23281,7 +23298,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
23281
23298
  return typeof language === "string" && language !== "" ? language : null;
23282
23299
  }, "languageOf");
23283
23300
 
23284
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23301
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
23285
23302
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
23286
23303
  var objectOf = /* @__PURE__ */ __name((value) => {
23287
23304
  if (isObject(value))
@@ -23524,7 +23541,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
23524
23541
  };
23525
23542
  }, "filesStoreOver");
23526
23543
 
23527
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23544
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
23528
23545
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
23529
23546
  entity: "document",
23530
23547
  backend: "sql",
@@ -23570,7 +23587,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
23570
23587
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
23571
23588
  }, "importedDocumentWhere");
23572
23589
 
23573
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23590
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
23574
23591
  var NOTE_FORMATS = ["obsidian", "markdown"];
23575
23592
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
23576
23593
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
@@ -24080,7 +24097,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
24080
24097
  };
24081
24098
  }, "notesStoreOver");
24082
24099
 
24083
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
24100
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
24084
24101
  var NAMED = "SELECT m.*, b.name AS author_name FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
24085
24102
  var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
24086
24103
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -24127,6 +24144,16 @@ var subjectOf = /* @__PURE__ */ __name((database, row2) => {
24127
24144
  subjectIsOwner: Number(named2?.owner) === 1
24128
24145
  };
24129
24146
  }, "subjectOf");
24147
+ var highestKey = /* @__PURE__ */ __name((table) => `ids.${table}.highest`, "highestKey");
24148
+ var nextId = /* @__PURE__ */ __name((database, table) => {
24149
+ const kept = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(highestKey(table));
24150
+ const highest = database.prepare(`SELECT max(id) AS id FROM ${table}`).get();
24151
+ return Math.max(Number(kept?.value ?? 0), Number(highest?.id ?? 0)) + 1;
24152
+ }, "nextId");
24153
+ var keepHighestId = /* @__PURE__ */ __name((database, table, at) => {
24154
+ const highest = nextId(database, table) - 1;
24155
+ database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(highestKey(table), String(highest), at);
24156
+ }, "keepHighestId");
24130
24157
  var dropLinksOf = /* @__PURE__ */ __name((database, thing) => {
24131
24158
  const count = Number(database.prepare("SELECT count(*) AS n FROM links WHERE (from_type = ? AND from_id = ?) OR (to_type = ? AND to_id = ?)").get(thing.type, thing.id, thing.type, thing.id)?.n);
24132
24159
  database.prepare("DELETE FROM links WHERE to_type = ? AND to_id = ?").run(thing.type, thing.id);
@@ -24205,7 +24232,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
24205
24232
  const subject2 = input.subject === void 0 ? void 0 : requiredThing(database, input.subject, "the subject");
24206
24233
  const replaced = input.supersedes === void 0 ? void 0 : Number(rowOf(input.supersedes).id);
24207
24234
  const at = now2();
24208
- const made = Number(database.prepare("INSERT INTO memories (kind, body, subject_type, subject_id, author_type, author_id, model, confidence, status, last_verified_at, supersedes_id, scope, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(kind3, body2, subject2?.type ?? null, subject2?.id ?? null, actor.type, actor.id, model, input.confidence ?? null, status, status === "confirmed" ? at : null, replaced ?? null, scope3, at, at)?.id);
24235
+ const made = Number(database.prepare("INSERT INTO memories (id, kind, body, subject_type, subject_id, author_type, author_id, model, confidence, status, last_verified_at, supersedes_id, scope, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(nextId(database, "memories"), kind3, body2, subject2?.type ?? null, subject2?.id ?? null, actor.type, actor.id, model, input.confidence ?? null, status, status === "confirmed" ? at : null, replaced ?? null, scope3, at, at)?.id);
24209
24236
  linkEvidence(context, { type: "memory", id: made }, input.evidence, input.author === "owner" ? "owner" : "agent");
24210
24237
  if (replaced !== void 0)
24211
24238
  database.prepare("UPDATE memories SET status = 'superseded', updated_at = ? WHERE id = ?").run(at, replaced);
@@ -24223,6 +24250,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
24223
24250
  remove: /* @__PURE__ */ __name(async (reference2) => {
24224
24251
  const id2 = Number(rowOf(reference2).id);
24225
24252
  const links2 = erase(database, () => {
24253
+ keepHighestId(database, "memories", now2());
24226
24254
  database.prepare("UPDATE memories SET supersedes_id = NULL WHERE supersedes_id = ?").run(id2);
24227
24255
  const count = dropLinksOf(database, { type: "memory", id: id2 });
24228
24256
  database.prepare("DELETE FROM memories WHERE id = ?").run(id2);
@@ -24244,7 +24272,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
24244
24272
  };
24245
24273
  }, "memoriesStoreOver");
24246
24274
 
24247
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
24275
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
24248
24276
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
24249
24277
  var KEY = "taskFirstPassPerChat";
24250
24278
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -24264,7 +24292,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
24264
24292
  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);
24265
24293
  }, "saveFirstPassPerChat");
24266
24294
 
24267
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
24295
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
24268
24296
  var TASK_RELATION_KINDS = [
24269
24297
  "blocked-by",
24270
24298
  "follow-up-of",
@@ -24394,7 +24422,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
24394
24422
  };
24395
24423
  }, "taskRelationsStoreOver");
24396
24424
 
24397
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24425
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
24398
24426
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
24399
24427
  var TASK_EVENT_KINDS = [
24400
24428
  "created",
@@ -24681,7 +24709,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
24681
24709
  };
24682
24710
  }, "workTasksOver");
24683
24711
 
24684
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
24712
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
24685
24713
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
24686
24714
  const { database, now: now2 } = context;
24687
24715
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -24727,7 +24755,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
24727
24755
  };
24728
24756
  }, "taskCloseOver");
24729
24757
 
24730
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
24758
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
24731
24759
  var TASK_PAIR_DECISIONS = ["review", "unsure", "merged", "rejected", "unmerged", "attached", "new"];
24732
24760
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
24733
24761
  const { database, now: now2 } = context;
@@ -24946,7 +24974,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
24946
24974
  };
24947
24975
  }, "taskPairsOver");
24948
24976
 
24949
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
24977
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
24950
24978
  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";
24951
24979
  var taskStoreOver = /* @__PURE__ */ __name((context) => {
24952
24980
  const { database, now: now2 } = context;
@@ -25141,7 +25169,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
25141
25169
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
25142
25170
  }, "oneOf");
25143
25171
 
25144
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/accounts.js
25172
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/accounts.js
25145
25173
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
25146
25174
  const { database } = context;
25147
25175
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -25186,7 +25214,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
25186
25214
  };
25187
25215
  }, "accountsStoreOver");
25188
25216
 
25189
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
25217
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
25190
25218
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
25191
25219
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
25192
25220
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -25210,7 +25238,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
25210
25238
  })), "keepDownloads");
25211
25239
  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");
25212
25240
 
25213
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/attachments.js
25241
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/attachments.js
25214
25242
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
25215
25243
  const { database } = context;
25216
25244
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -25267,7 +25295,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
25267
25295
  }, "keepAttachmentText")
25268
25296
  }), "attachmentsStoreOver");
25269
25297
 
25270
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
25298
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
25271
25299
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
25272
25300
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
25273
25301
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -25447,7 +25475,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
25447
25475
  return done;
25448
25476
  }, "rekeyChats");
25449
25477
 
25450
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25478
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
25451
25479
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
25452
25480
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
25453
25481
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -25479,7 +25507,7 @@ var chatCompleteness = /* @__PURE__ */ __name(({ database }, accountKey, chatIds
25479
25507
  });
25480
25508
  }, "chatCompleteness");
25481
25509
 
25482
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/chats.js
25510
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/chats.js
25483
25511
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25484
25512
  const { database } = context;
25485
25513
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -25586,7 +25614,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
25586
25614
  };
25587
25615
  }, "chatsStoreOver");
25588
25616
 
25589
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
25617
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
25590
25618
  import { createHash as createHash6 } from "node:crypto";
25591
25619
  var BATCH_CONTEXT = 50;
25592
25620
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -25724,7 +25752,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
25724
25752
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
25725
25753
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
25726
25754
 
25727
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
25755
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
25728
25756
  import { setTimeout } from "node:timers/promises";
25729
25757
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
25730
25758
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -26036,7 +26064,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
26036
26064
  AND NOT EXISTS (SELECT 1 FROM messages d
26037
26065
  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");
26038
26066
 
26039
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/conversations.js
26067
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/conversations.js
26040
26068
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
26041
26069
  const { database } = context;
26042
26070
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -26143,7 +26171,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
26143
26171
  };
26144
26172
  }, "conversationsStoreOver");
26145
26173
 
26146
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/counters.js
26174
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/counters.js
26147
26175
  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";
26148
26176
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
26149
26177
  const { database } = context;
@@ -26168,7 +26196,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26168
26196
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
26169
26197
  }), "countersStoreOver");
26170
26198
 
26171
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
26199
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
26172
26200
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
26173
26201
  var MENTION_QUERY = defineQuery({
26174
26202
  entity: "mention",
@@ -26384,7 +26412,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
26384
26412
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
26385
26413
  }, "listPlaces");
26386
26414
 
26387
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/mentions.js
26415
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/mentions.js
26388
26416
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
26389
26417
  const { database } = context;
26390
26418
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -26419,7 +26447,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26419
26447
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
26420
26448
  }), "mentionsStoreOver");
26421
26449
 
26422
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26450
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
26423
26451
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
26424
26452
  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");
26425
26453
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -26434,7 +26462,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
26434
26462
  }));
26435
26463
  }, "documentLinkMessages");
26436
26464
 
26437
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
26465
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
26438
26466
  var stemmerFor = stemmerCache();
26439
26467
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
26440
26468
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -26444,13 +26472,12 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
26444
26472
  if (!wanted.length || !stemmers || !stemsState(database)?.ready)
26445
26473
  return wanted.map(() => []);
26446
26474
  const stemmer = stemmerFor(stemmers);
26447
- database.exec("CREATE VIRTUAL TABLE IF NOT EXISTS temp.message_stem_counts USING fts5vocab(main, message_stems, col)");
26448
- const count = database.prepare("SELECT doc FROM temp.message_stem_counts WHERE term = ? AND col = 'stems'");
26475
+ const count = database.prepare("SELECT count(*) AS doc FROM (SELECT rowid FROM message_stems WHERE message_stems MATCH ? LIMIT ?)");
26449
26476
  const counts = /* @__PURE__ */ new Map();
26450
26477
  const countOf = /* @__PURE__ */ __name((stem) => {
26451
26478
  let found2 = counts.get(stem);
26452
26479
  if (found2 === void 0) {
26453
- found2 = Number(count.get(stem)?.doc ?? 0);
26480
+ found2 = Number(count.get(`stems : "${stem.replaceAll('"', '""')}"`, rareAt + 1)?.doc ?? 0);
26454
26481
  counts.set(stem, found2);
26455
26482
  }
26456
26483
  return found2;
@@ -26479,7 +26506,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
26479
26506
  });
26480
26507
  }, "laterSharingRare");
26481
26508
 
26482
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/messages.js
26509
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/messages.js
26483
26510
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
26484
26511
  const { database } = context;
26485
26512
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -26614,7 +26641,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
26614
26641
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
26615
26642
  }), "messagesStoreOver");
26616
26643
 
26617
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
26644
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
26618
26645
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
26619
26646
  var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
26620
26647
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -26671,7 +26698,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
26671
26698
  });
26672
26699
  }, "personPreparation");
26673
26700
 
26674
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
26701
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
26675
26702
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
26676
26703
  const id2 = Number(uid);
26677
26704
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -26679,7 +26706,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
26679
26706
  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)));
26680
26707
  }, "personSeenInAccounts");
26681
26708
 
26682
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
26709
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
26683
26710
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
26684
26711
  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);
26685
26712
  if (!row2)
@@ -26745,7 +26772,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
26745
26772
  return { id: id2, personId, removed: true };
26746
26773
  }, "removeNote");
26747
26774
 
26748
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/people.js
26775
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/people.js
26749
26776
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
26750
26777
  const { database } = context;
26751
26778
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -26820,13 +26847,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
26820
26847
  };
26821
26848
  }, "peopleStoreOver");
26822
26849
 
26823
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
26850
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
26824
26851
  import { createHash as createHash8 } from "node:crypto";
26825
26852
 
26826
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26853
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
26827
26854
  import { createHash as createHash7 } from "node:crypto";
26828
26855
 
26829
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
26856
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
26830
26857
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
26831
26858
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
26832
26859
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -27048,7 +27075,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
27048
27075
  };
27049
27076
  }, "rankReplyGraph");
27050
27077
 
27051
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27078
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
27052
27079
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
27053
27080
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
27054
27081
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -27222,7 +27249,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
27222
27249
  return { items, evidence, summary, graph: graph.quality };
27223
27250
  }, "calculateAdminStatistics");
27224
27251
 
27225
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
27252
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
27226
27253
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
27227
27254
  const dates = [];
27228
27255
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -27244,7 +27271,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
27244
27271
  return dates[0].node.resolution.date;
27245
27272
  }, "rankingContextRange");
27246
27273
 
27247
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
27274
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
27248
27275
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
27249
27276
  let counts;
27250
27277
  try {
@@ -27539,7 +27566,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
27539
27566
  });
27540
27567
  }, "rankQuery");
27541
27568
 
27542
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27569
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
27543
27570
  function fail4(message2, reason = "query.too-large") {
27544
27571
  throw new CliError("validation_error", message2, { reason, complete: false });
27545
27572
  }
@@ -27716,7 +27743,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
27716
27743
  return result;
27717
27744
  }), "adminStatisticsQuery");
27718
27745
 
27719
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
27746
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
27720
27747
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
27721
27748
  if (!execution.accounts.length)
27722
27749
  return { conversations: [], chats: [] };
@@ -27734,7 +27761,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
27734
27761
  return { conversations: conversations2, chats: chats2 };
27735
27762
  }, "conversationEligibility");
27736
27763
 
27737
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
27764
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
27738
27765
  import { createHash as createHash9 } from "node:crypto";
27739
27766
  var EVIDENCE_BYTES = 64 * 1024;
27740
27767
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -27884,7 +27911,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
27884
27911
  return result;
27885
27912
  }, "rankingEvidence");
27886
27913
 
27887
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/queries.js
27914
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/queries.js
27888
27915
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
27889
27916
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
27890
27917
  if (execution.corpus === "mail")
@@ -27895,6 +27922,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
27895
27922
  matchQuery: /* @__PURE__ */ __name(async (execution) => matchQuery(context, mailIndexed(execution)), "matchQuery"),
27896
27923
  countQuery: /* @__PURE__ */ __name(async (execution, by) => countQuery(context, mailIndexed(execution), by), "countQuery"),
27897
27924
  countMatches: /* @__PURE__ */ __name(async (execution, cap) => countMatches(context, mailIndexed(execution), cap), "countMatches"),
27925
+ matchingPks: /* @__PURE__ */ __name(async (execution, cap) => matchingPks(context, mailIndexed(execution), cap), "matchingPks"),
27898
27926
  conversationEligibility: /* @__PURE__ */ __name(async (execution) => conversationEligibility(context, execution), "conversationEligibility"),
27899
27927
  rankQuery: /* @__PURE__ */ __name(async (execution, request) => rankQuery(context, execution, request), "rankQuery"),
27900
27928
  rankingEvidence: /* @__PURE__ */ __name(async (execution, request) => rankingEvidence(context, execution, request), "rankingEvidence"),
@@ -27902,7 +27930,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
27902
27930
  };
27903
27931
  }, "queriesStoreOver");
27904
27932
 
27905
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
27933
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
27906
27934
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
27907
27935
  const { database, now: now2 } = context;
27908
27936
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -27941,10 +27969,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
27941
27969
  }));
27942
27970
  }, "chatEventsOf");
27943
27971
 
27944
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27972
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
27945
27973
  import { createHash as createHash10 } from "node:crypto";
27946
27974
 
27947
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/calendar.js
27975
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/calendar.js
27948
27976
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
27949
27977
  const format = new Intl.DateTimeFormat("en-CA", {
27950
27978
  timeZone: zone,
@@ -27959,7 +27987,7 @@ var calendarKey = /* @__PURE__ */ __name((zone, by) => {
27959
27987
  };
27960
27988
  }, "calendarKey");
27961
27989
 
27962
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/retention.js
27990
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/retention.js
27963
27991
  var RETENTION_TOLERANCE = 864e5;
27964
27992
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
27965
27993
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -28013,7 +28041,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
28013
28041
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
28014
28042
  }, "retentionCohorts");
28015
28043
 
28016
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28044
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
28017
28045
  var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
28018
28046
  var week = /* @__PURE__ */ __name((day) => {
28019
28047
  const date3 = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
@@ -28149,7 +28177,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
28149
28177
  };
28150
28178
  }, "retentionQuery");
28151
28179
 
28152
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
28180
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
28153
28181
  var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
28154
28182
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
28155
28183
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -28280,7 +28308,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
28280
28308
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
28281
28309
  })), "trackedChats");
28282
28310
 
28283
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/roster.js
28311
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/roster.js
28284
28312
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
28285
28313
  const { database } = context;
28286
28314
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -28336,7 +28364,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
28336
28364
  };
28337
28365
  }, "rosterStoreOver");
28338
28366
 
28339
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
28367
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
28340
28368
  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");
28341
28369
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
28342
28370
  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 ?`);
@@ -28360,7 +28388,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
28360
28388
  }
28361
28389
  }, "backfillNormalized");
28362
28390
 
28363
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
28391
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
28364
28392
  var INDEX2 = "message_words";
28365
28393
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
28366
28394
  const row2 = indexRow(database, INDEX2);
@@ -28487,7 +28515,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
28487
28515
  });
28488
28516
  }, "resetSearchIndex");
28489
28517
 
28490
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28518
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
28491
28519
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
28492
28520
  const filled2 = { stemmed: 0, drained: 0 };
28493
28521
  const before2 = stemsState(database);
@@ -28582,7 +28610,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
28582
28610
  return resetStems(database, { now: now2 });
28583
28611
  }, "followDefaultStemmers");
28584
28612
 
28585
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
28613
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
28586
28614
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
28587
28615
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
28588
28616
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -28604,7 +28632,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
28604
28632
  });
28605
28633
  }, "termCandidates");
28606
28634
 
28607
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/search-index.js
28635
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/search-index.js
28608
28636
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
28609
28637
  const { database } = context;
28610
28638
  const stemmerFor2 = stemmerCache();
@@ -28626,7 +28654,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
28626
28654
  };
28627
28655
  }, "searchIndexStoreOver");
28628
28656
 
28629
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
28657
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
28630
28658
  var HISTORY_KEPT = 1e3;
28631
28659
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
28632
28660
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -28695,7 +28723,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
28695
28723
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
28696
28724
  }, "clearHistory");
28697
28725
 
28698
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/searches.js
28726
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/searches.js
28699
28727
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
28700
28728
  const { database } = context;
28701
28729
  return {
@@ -28719,7 +28747,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
28719
28747
  };
28720
28748
  }, "searchesStoreOver");
28721
28749
 
28722
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
28750
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
28723
28751
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
28724
28752
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
28725
28753
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -28762,7 +28790,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
28762
28790
  };
28763
28791
  }, "agentActionsStoreOver");
28764
28792
 
28765
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
28793
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
28766
28794
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
28767
28795
  }) => {
28768
28796
  const { database, now: now2 } = context;
@@ -28821,7 +28849,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
28821
28849
  };
28822
28850
  }, "botUpdateStoreOver");
28823
28851
 
28824
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
28852
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
28825
28853
  var DAY4 = 864e5;
28826
28854
  var listEvents = /* @__PURE__ */ __name((database, filter) => {
28827
28855
  const clauses = ["e.deleted_at IS NULL"];
@@ -28906,7 +28934,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
28906
28934
  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);
28907
28935
  }, "listEvents");
28908
28936
 
28909
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
28937
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
28910
28938
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
28911
28939
  id: Number(row2.id),
28912
28940
  accountId: Number(row2.account_id),
@@ -29486,7 +29514,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
29486
29514
  };
29487
29515
  }, "eventStoreOver");
29488
29516
 
29489
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
29517
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
29490
29518
  var CATALOG_QUERY = defineQuery({
29491
29519
  entity: "document",
29492
29520
  backend: "sql",
@@ -29728,7 +29756,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
29728
29756
  };
29729
29757
  }, "catalogStoreOver");
29730
29758
 
29731
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/context/evidence.js
29759
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/context/evidence.js
29732
29760
  import { createHash as createHash11 } from "node:crypto";
29733
29761
  var CONTEXT_MAX_READ_BYTES = 262144;
29734
29762
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -29826,7 +29854,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
29826
29854
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
29827
29855
  }, "contextEvidenceRequest");
29828
29856
 
29829
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
29857
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
29830
29858
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
29831
29859
  var field2 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
29832
29860
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -29839,7 +29867,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
29839
29867
  THEN 'source-modified' ELSE 'stored-update' END`;
29840
29868
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field2("sourceUrl")})`;
29841
29869
 
29842
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
29870
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
29843
29871
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
29844
29872
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
29845
29873
  signal?.throwIfAborted();
@@ -29938,7 +29966,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
29938
29966
  });
29939
29967
  }, "readMeetingContextEvidence");
29940
29968
 
29941
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
29969
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
29942
29970
  var corpora = {
29943
29971
  message: {
29944
29972
  table: "messages",
@@ -30167,7 +30195,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
30167
30195
  }
30168
30196
  }), "contextRecordsOver");
30169
30197
 
30170
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
30198
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
30171
30199
  var NOTE_FIELDS = [
30172
30200
  "text",
30173
30201
  "exact",
@@ -30597,7 +30625,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
30597
30625
  };
30598
30626
  }, "noteSearchOver");
30599
30627
 
30600
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
30628
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
30601
30629
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
30602
30630
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
30603
30631
  var EVENT_CORPUS = {
@@ -30729,7 +30757,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
30729
30757
  };
30730
30758
  }, "eventSearchOver");
30731
30759
 
30732
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
30760
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
30733
30761
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
30734
30762
  var reference = /* @__PURE__ */ __name((raw) => {
30735
30763
  if (/^document:[1-9]\d*$/.test(raw))
@@ -30742,7 +30770,7 @@ var reference = /* @__PURE__ */ __name((raw) => {
30742
30770
  }, "reference");
30743
30771
  var validateEvidenceFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "evidence findings", singular: "evidence finding", cited: "reference", reference }), "validateEvidenceFindings");
30744
30772
 
30745
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/domain/moment.js
30773
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/domain/moment.js
30746
30774
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
30747
30775
  try {
30748
30776
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -30754,7 +30782,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
30754
30782
  }
30755
30783
  }, "calendarMoment");
30756
30784
 
30757
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
30785
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
30758
30786
  var NAMED3 = "SELECT f.*, b.name AS author_name FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
30759
30787
  var iso8 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
30760
30788
  var oneOf4 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -30822,7 +30850,7 @@ var factOperationsOver = /* @__PURE__ */ __name((context) => {
30822
30850
  const owner = input.by === "owner";
30823
30851
  const { actor, model } = authorActor(context, input.by);
30824
30852
  const at = now2();
30825
- const made = Number(database.prepare("INSERT INTO facts (type, statement, status, project_id, subject_type, subject_id, occurred_at, supersedes_id, author_type, author_id, model, scope, source, created_at, updated_at) VALUES (?, ?, 'proposed', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(type, statement, project?.id ?? null, subject2?.type ?? null, subject2?.id ?? null, occurredAt, replaced === void 0 ? null : Number(replaced.id), actor.type, actor.id, model, scope3, owner ? "owner" : "agent", at, at)?.id);
30853
+ const made = Number(database.prepare("INSERT INTO facts (id, type, statement, status, project_id, subject_type, subject_id, occurred_at, supersedes_id, author_type, author_id, model, scope, source, created_at, updated_at) VALUES (?, ?, ?, 'proposed', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING id").get(nextId(database, "facts"), type, statement, project?.id ?? null, subject2?.type ?? null, subject2?.id ?? null, occurredAt, replaced === void 0 ? null : Number(replaced.id), actor.type, actor.id, model, scope3, owner ? "owner" : "agent", at, at)?.id);
30826
30854
  linkEvidence(context, { type: "fact", id: made }, input.evidence ?? [], owner ? "owner" : "agent");
30827
30855
  if (input.createdFrom !== void 0) {
30828
30856
  const from2 = requiredThing(database, input.createdFrom, "the source");
@@ -30866,6 +30894,9 @@ var factOperationsOver = /* @__PURE__ */ __name((context) => {
30866
30894
  const id2 = Number(row2.id);
30867
30895
  const twin = row2.source === "memory" && row2.metadata != null ? migratedFrom(String(row2.metadata)) : void 0;
30868
30896
  const links2 = erase(database, () => {
30897
+ keepHighestId(database, "facts", now2());
30898
+ if (twin !== void 0)
30899
+ keepHighestId(database, "memories", now2());
30869
30900
  database.prepare("UPDATE facts SET supersedes_id = NULL WHERE supersedes_id = ?").run(id2);
30870
30901
  const count = dropLinksOf(database, { type: "fact", id: id2 });
30871
30902
  database.prepare("DELETE FROM links WHERE from_type = 'fact' AND from_id = ?").run(id2);
@@ -30902,7 +30933,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
30902
30933
  };
30903
30934
  }, "factsStoreOver");
30904
30935
 
30905
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
30936
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
30906
30937
  var invalid2 = /* @__PURE__ */ __name((message2) => {
30907
30938
  throw new CliError("validation_error", message2);
30908
30939
  }, "invalid");
@@ -30992,7 +31023,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind3) => {
30992
31023
  return { snapshot: snapshot2, snapshotParts, previous, outcomes };
30993
31024
  }, "findingsCoreOver");
30994
31025
 
30995
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
31026
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
30996
31027
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
30997
31028
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
30998
31029
  var iso9 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -31138,7 +31169,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
31138
31169
  };
31139
31170
  }, "proposedActionsStoreOver");
31140
31171
 
31141
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
31172
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
31142
31173
  var stale = /* @__PURE__ */ __name(() => {
31143
31174
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
31144
31175
  reason: "evidence-findings.stale"
@@ -31304,7 +31335,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
31304
31335
  };
31305
31336
  }, "evidenceFindingsStoreOver");
31306
31337
 
31307
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
31338
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
31308
31339
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
31309
31340
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
31310
31341
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -31357,7 +31388,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
31357
31388
  }, "forPerson")
31358
31389
  }), "involvementStoreOver");
31359
31390
 
31360
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
31391
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
31361
31392
  import { createHash as createHash12 } from "node:crypto";
31362
31393
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
31363
31394
  var id = /* @__PURE__ */ __name((value) => {
@@ -31443,16 +31474,16 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
31443
31474
  };
31444
31475
  }, "meetingProjectsStoreOver");
31445
31476
 
31446
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31477
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31447
31478
  import { createHash as createHash15 } from "node:crypto";
31448
31479
 
31449
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31480
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31450
31481
  import { createHash as createHash14 } from "node:crypto";
31451
31482
 
31452
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31483
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31453
31484
  import { createHash as createHash13 } from "node:crypto";
31454
31485
 
31455
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
31486
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
31456
31487
  var consolidationId = /* @__PURE__ */ __name((value, field3) => {
31457
31488
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
31458
31489
  throw new CliError("validation_error", `${field3} must be a positive canonical tag id`);
@@ -31503,7 +31534,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
31503
31534
  return input;
31504
31535
  }, "consolidationApplyInput");
31505
31536
 
31506
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31537
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
31507
31538
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
31508
31539
  id: String(row2.id),
31509
31540
  sourceId: String(row2.source_id),
@@ -31578,7 +31609,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
31578
31609
  }, { beforeCommit: check3 });
31579
31610
  }, "applyTagConsolidation");
31580
31611
 
31581
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31612
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
31582
31613
  var selections = [
31583
31614
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
31584
31615
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -31722,7 +31753,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
31722
31753
  };
31723
31754
  }, "previewRows");
31724
31755
 
31725
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31756
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
31726
31757
  var kinds = ["project", "tag", "topic"];
31727
31758
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
31728
31759
  if (signal?.aborted)
@@ -31986,7 +32017,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
31986
32017
  };
31987
32018
  }, "vocabularyStoreOver");
31988
32019
 
31989
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
32020
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
31990
32021
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
31991
32022
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
31992
32023
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -32508,7 +32539,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
32508
32539
  return key2.padEnd(3, "X");
32509
32540
  }, "projectKey");
32510
32541
 
32511
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
32542
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
32512
32543
  var DAY5 = 864e5;
32513
32544
  var SETTING4 = "logs_pruned_at";
32514
32545
  var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
@@ -32535,7 +32566,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
32535
32566
  };
32536
32567
  }, "logPruner");
32537
32568
 
32538
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
32569
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
32539
32570
  var stale2 = /* @__PURE__ */ __name(() => {
32540
32571
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
32541
32572
  reason: "meeting-findings.stale"
@@ -32704,7 +32735,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
32704
32735
  };
32705
32736
  }, "meetingFindingsStoreOver");
32706
32737
 
32707
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
32738
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
32708
32739
  var RANK_BATCH = 512;
32709
32740
  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";
32710
32741
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -32975,7 +33006,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
32975
33006
  }
32976
33007
  }), "meetingVectorsOver");
32977
33008
 
32978
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
33009
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
32979
33010
  var OTHER_SOURCES = ["document", "note", "email"];
32980
33011
  var TEXTS = {
32981
33012
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -33076,11 +33107,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
33076
33107
  };
33077
33108
  }, "sourceMentionStoreOver");
33078
33109
 
33079
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33110
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
33080
33111
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
33081
33112
  import { dirname } from "node:path";
33082
33113
 
33083
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
33114
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
33084
33115
  import { readFileSync as readFileSync3 } from "node:fs";
33085
33116
  var CLIENTS_SETTING = "clients";
33086
33117
  var coreVersion = (() => {
@@ -33138,7 +33169,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
33138
33169
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
33139
33170
  }, "refusalAdvice");
33140
33171
 
33141
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
33172
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
33142
33173
  var GENERATED = [
33143
33174
  {
33144
33175
  "name": "20261010184427_initial",
@@ -34004,7 +34035,7 @@ WHERE json_type(params, '$.selection') = 'object';`
34004
34035
  }
34005
34036
  ];
34006
34037
 
34007
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
34038
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
34008
34039
  var MANIFEST = [
34009
34040
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
34010
34041
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -34082,7 +34113,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
34082
34113
  return migrations;
34083
34114
  }, "generatedMigrations");
34084
34115
 
34085
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/migrations.js
34116
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/migrations.js
34086
34117
  var MIGRATIONS = generatedMigrations();
34087
34118
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
34088
34119
  version INTEGER PRIMARY KEY,
@@ -34135,7 +34166,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
34135
34166
  }
34136
34167
  }, "migrate");
34137
34168
 
34138
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
34169
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
34139
34170
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
34140
34171
  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 ?");
34141
34172
  if (pending.get(0, 1) === void 0)
@@ -34157,7 +34188,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
34157
34188
  }
34158
34189
  }, "fillJoinKeys");
34159
34190
 
34160
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
34191
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
34161
34192
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
34162
34193
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
34163
34194
  try {
@@ -34170,8 +34201,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
34170
34201
  }, "openSqlite");
34171
34202
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
34172
34203
  quietSqliteWarning();
34173
- const { drizzle } = await import("./node-A3B2YRQI.js");
34174
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-XRP5FUDY.js");
34204
+ const { drizzle } = await import("./node-GFOH6FKP.js");
34205
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-QXKSPHTP.js");
34175
34206
  const client = await nodeClient(path, { readOnly });
34176
34207
  try {
34177
34208
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -34181,8 +34212,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
34181
34212
  }
34182
34213
  }, "openUnderNode");
34183
34214
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
34184
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-VVYKOY7S.js");
34185
- const { drizzle } = await import("./bun-UEFRULAT.js");
34215
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-FWNCLOAR.js");
34216
+ const { drizzle } = await import("./bun-XRO6XJHQ.js");
34186
34217
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
34187
34218
  try {
34188
34219
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -34192,7 +34223,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
34192
34223
  }
34193
34224
  }, "openUnderBun");
34194
34225
 
34195
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
34226
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
34196
34227
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
34197
34228
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
34198
34229
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -34207,7 +34238,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
34207
34238
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
34208
34239
  }, "assertReadCompatible");
34209
34240
 
34210
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
34241
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
34211
34242
  var BACKFILL_ON_OPEN = 5e3;
34212
34243
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
34213
34244
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -34263,13 +34294,13 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
34263
34294
  }
34264
34295
  }, "openStoreContext");
34265
34296
 
34266
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34297
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34267
34298
  import { createHash as createHash17 } from "node:crypto";
34268
34299
 
34269
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34300
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34270
34301
  import { createHash as createHash16 } from "node:crypto";
34271
34302
 
34272
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
34303
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
34273
34304
  var text3 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
34274
34305
  var ref = text3(2048);
34275
34306
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -34335,7 +34366,7 @@ var projectAnnotationsSchema = strictObject({
34335
34366
  }))
34336
34367
  });
34337
34368
 
34338
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34369
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
34339
34370
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
34340
34371
  var invalid5 = /* @__PURE__ */ __name((field3) => {
34341
34372
  throw new CliError("validation_error", `invalid project annotations.${field3}`);
@@ -34468,7 +34499,7 @@ var projectAnnotationsFingerprint = /* @__PURE__ */ __name((json3) => {
34468
34499
  return createHash16("sha256").update(JSON.stringify(normalized)).digest("hex");
34469
34500
  }, "projectAnnotationsFingerprint");
34470
34501
 
34471
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34502
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
34472
34503
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
34473
34504
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
34474
34505
  var targetSchema = strictObject({
@@ -34575,7 +34606,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
34575
34606
  }, "planBoundProjectAnnotations");
34576
34607
  var planProjectAnnotations = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotations(json3), projectAnnotationsFingerprint(json3), target, bindings), "planProjectAnnotations");
34577
34608
 
34578
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
34609
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
34579
34610
  import { createHash as createHash18 } from "node:crypto";
34580
34611
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
34581
34612
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -34669,7 +34700,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
34669
34700
  })).digest("hex");
34670
34701
  }, "projectAnnotationSnapshotFingerprint");
34671
34702
 
34672
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
34703
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
34673
34704
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
34674
34705
  if (!request || typeof request !== "object" || Array.isArray(request))
34675
34706
  throw new CliError("validation_error", "project annotation request is required");
@@ -34686,7 +34717,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
34686
34717
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
34687
34718
  }, "projectAnnotationRequest");
34688
34719
 
34689
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
34720
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
34690
34721
  var SnapshotBudget = class {
34691
34722
  static {
34692
34723
  __name(this, "SnapshotBudget");
@@ -34712,13 +34743,13 @@ var SnapshotBudget = class {
34712
34743
  }
34713
34744
  };
34714
34745
 
34715
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34746
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
34716
34747
  import { createHash as createHash20 } from "node:crypto";
34717
34748
 
34718
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
34749
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
34719
34750
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
34720
34751
 
34721
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
34752
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
34722
34753
  import { createHash as createHash19 } from "node:crypto";
34723
34754
  var invalid7 = /* @__PURE__ */ __name(() => {
34724
34755
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -34861,7 +34892,7 @@ var ProjectSnapshotSources = class {
34861
34892
  }
34862
34893
  };
34863
34894
 
34864
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
34895
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
34865
34896
  var unsupported = /* @__PURE__ */ __name(() => {
34866
34897
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
34867
34898
  }, "unsupported");
@@ -35032,7 +35063,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, bud
35032
35063
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
35033
35064
  }), "projectAnnotationSnapshot");
35034
35065
 
35035
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35066
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
35036
35067
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, manifest, bindings, budget) => read(database, () => {
35037
35068
  const current = projectAnnotationSnapshot(database, projectId, budget).snapshot;
35038
35069
  const sources = new ProjectSnapshotSources(database, budget);
@@ -35094,7 +35125,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId, man
35094
35125
  };
35095
35126
  }), "previewAnnotationSnapshot");
35096
35127
 
35097
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
35128
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
35098
35129
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snapshot2, bindings) => {
35099
35130
  const mappings = { ...bindings };
35100
35131
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -35113,7 +35144,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
35113
35144
  const author = resolve(fact.author), confirmed = resolve(fact.confirmed_by);
35114
35145
  if (!author)
35115
35146
  throw new CliError("validation_error", "project annotation author is required");
35116
- const row2 = database.prepare("INSERT INTO facts(type,statement,status,project_id,subject_type,subject_id,occurred_at,supersedes_id,author_type,author_id,model,confirmed_by_type,confirmed_by_id,scope,source,created_at,updated_at) VALUES(?,?,?,?,NULL,NULL,?,NULL,?,?,?,?,?,?,?,?,?) RETURNING id").get(fact.type, fact.statement, fact.status, projectId, fact.occurred_at, author.type, author.id, fact.model, confirmed?.type ?? null, confirmed?.id ?? null, fact.scope, fact.source, fact.created_at, fact.updated_at);
35147
+ const row2 = database.prepare("INSERT INTO facts(id,type,statement,status,project_id,subject_type,subject_id,occurred_at,supersedes_id,author_type,author_id,model,confirmed_by_type,confirmed_by_id,scope,source,created_at,updated_at) VALUES(?,?,?,?,?,NULL,NULL,?,NULL,?,?,?,?,?,?,?,?,?) RETURNING id").get(nextId(database, "facts"), fact.type, fact.statement, fact.status, projectId, fact.occurred_at, author.type, author.id, fact.model, confirmed?.type ?? null, confirmed?.id ?? null, fact.scope, fact.source, fact.created_at, fact.updated_at);
35117
35148
  if (!row2)
35118
35149
  throw new CliError("configuration_error", "project annotation fact insertion failed");
35119
35150
  mappings[fact.ref] = `fact:${row2.id}`;
@@ -35136,7 +35167,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId, snap
35136
35167
  return mappings;
35137
35168
  }, "restoreAnnotationRecords");
35138
35169
 
35139
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
35170
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
35140
35171
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
35141
35172
  async preview(request) {
35142
35173
  const { snapshot: snapshot2, projectId } = projectAnnotationRequest(request);
@@ -35166,7 +35197,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
35166
35197
  }
35167
35198
  }), "projectAnnotationStoreOver");
35168
35199
 
35169
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
35200
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
35170
35201
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
35171
35202
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
35172
35203
  let merged = { from: from2, to };
@@ -35179,7 +35210,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
35179
35210
  }, "markRange");
35180
35211
  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");
35181
35212
 
35182
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
35213
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
35183
35214
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
35184
35215
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
35185
35216
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -35189,7 +35220,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
35189
35220
  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);
35190
35221
  }, "setTaskRulesStop");
35191
35222
 
35192
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sync.js
35223
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sync.js
35193
35224
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
35194
35225
  const { database } = context;
35195
35226
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -35245,7 +35276,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
35245
35276
  };
35246
35277
  }, "syncStoreOver");
35247
35278
 
35248
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/tags.js
35279
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/tags.js
35249
35280
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
35250
35281
  const { database } = context;
35251
35282
  return {
@@ -35267,7 +35298,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
35267
35298
  };
35268
35299
  }, "tagsStoreOver");
35269
35300
 
35270
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
35301
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
35271
35302
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
35272
35303
  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
35273
35304
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -35394,7 +35425,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
35394
35425
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
35395
35426
  }, "savePictureChunks");
35396
35427
 
35397
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
35428
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
35398
35429
  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,
35399
35430
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
35400
35431
  FROM messages m
@@ -35441,6 +35472,12 @@ var messageRows = /* @__PURE__ */ __name(({ orm }, accountPk2, { chatKey, model,
35441
35472
  ${since === void 0 ? sql`` : sql`AND m.sent_at >= ${since}`}
35442
35473
  ${before2 === void 0 ? sql`` : sql`AND m.sent_at < ${before2}`}
35443
35474
  ${"ids" in rows ? sql`AND k.id IN (SELECT value FROM json_each(${JSON.stringify(rows.ids)})) ORDER BY k.id` : sql`AND k.id > ${rows.after} ORDER BY k.id LIMIT ${SCAN_PAGE6}`}`), "messageRows");
35475
+ var scoreMessages = /* @__PURE__ */ __name(({ orm }, accountPk2, { model, query, pks }) => orm.all(sql`SELECT ch.external_id AS chatId, m.external_id AS messageId, v.vector
35476
+ FROM chunks k CROSS JOIN messages m ON m.id = k.chunkable_id AND m.deleted_at IS NULL
35477
+ JOIN chats ch ON ch.id = m.chat_id AND ch.searchable = 1
35478
+ JOIN embeddings v ON v.model = ${model} AND v.content_hash = k.content_hash
35479
+ WHERE k.chunkable_type = 'message' AND k.position = 0 AND k.account_id = ${accountPk2}
35480
+ AND k.chunkable_id IN (SELECT value FROM json_each(${JSON.stringify(pks)}))`).map(({ chatId, messageId, vector }) => ({ chatId, messageId, score: dot(query, vector) })).sort((a, b) => b.score - a.score), "scoreMessages");
35444
35481
  var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, query, ...filter }) => {
35445
35482
  const score = /* @__PURE__ */ __name((row2) => ({
35446
35483
  id: row2.id,
@@ -35477,7 +35514,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
35477
35514
  return plain2(best(found2));
35478
35515
  }, "nearestMessages");
35479
35516
 
35480
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/vectors.js
35517
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/vectors.js
35481
35518
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
35482
35519
  const { database } = context;
35483
35520
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -35618,6 +35655,10 @@ var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
35618
35655
  query
35619
35656
  });
35620
35657
  }, "nearestMessages"),
35658
+ scoreMessages: /* @__PURE__ */ __name(async (key2, options) => {
35659
+ const accountPk2 = findAccountPk2(key2);
35660
+ return accountPk2 === void 0 ? [] : scoreMessages(context, accountPk2, options);
35661
+ }, "scoreMessages"),
35621
35662
  vectorStatus: /* @__PURE__ */ __name(async (key2, chatId, model) => {
35622
35663
  const chatKey = chatKeyOf(key2, chatId);
35623
35664
  return chatKey === void 0 ? { chunks: 0, embedded: 0 } : vectorStatus(context, chatKey, model);
@@ -35731,7 +35772,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
35731
35772
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
35732
35773
  }), "vectorsStoreOver");
35733
35774
 
35734
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
35775
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
35735
35776
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
35736
35777
  import { dirname as dirname2, join as join2 } from "node:path";
35737
35778
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -35819,10 +35860,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
35819
35860
  }
35820
35861
  }, "lastBackup");
35821
35862
 
35822
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/providers.js
35863
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/providers.js
35823
35864
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
35824
35865
 
35825
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
35866
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
35826
35867
  var COUNTED_TABLES = [
35827
35868
  "accounts",
35828
35869
  "chats",
@@ -35907,7 +35948,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
35907
35948
  };
35908
35949
  }, "storeContents");
35909
35950
 
35910
- // node_modules/.pnpm/@wirecat+cli-core@0.503.0_@wirecat+cli-base@0.67.0_commander@15.0.0_esbuild@0.28.2_type_e5d4ab9592406842b4a214ba16b749bd/node_modules/@wirecat/cli-core/dist/store/store.js
35951
+ // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/store.js
35911
35952
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
35912
35953
  const context = await openStoreContext(options);
35913
35954
  try {