@wirecat/cli-memo 0.131.30 → 0.131.32

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 (133) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{all-profiles-4XCG2A54.js → all-profiles-PFCNICOF.js} +5 -5
  3. package/dist/bundle/{anthropic-MAVIW4DJ.js → anthropic-QLGMYWVZ.js} +3 -3
  4. package/dist/bundle/{app-server-LGSYLIB3.js → app-server-QD67I7V2.js} +35 -35
  5. package/dist/bundle/auto-PZKJQ3FL.js +86 -0
  6. package/dist/bundle/{bun-XWUEHWDW.js → bun-JRTUGKIJ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-OSAC45TI.js → bun-sqlite-HCZP2CNO.js} +2 -2
  8. package/dist/bundle/{chunk-3V5JXPGK.js → chunk-2N74ZVI6.js} +1 -1
  9. package/dist/bundle/{chunk-Q3XFJOAY.js → chunk-2XBDA3XF.js} +1 -1
  10. package/dist/bundle/{chunk-SIY75R4D.js → chunk-3G44GDIZ.js} +5 -5
  11. package/dist/bundle/{chunk-TIU2N2SP.js → chunk-42I4XE3O.js} +20 -20
  12. package/dist/bundle/{chunk-RCPP2Q5O.js → chunk-4D6BG353.js} +6 -6
  13. package/dist/bundle/{chunk-IIXZMACE.js → chunk-54DA525P.js} +9 -9
  14. package/dist/bundle/{chunk-2NEXX3EI.js → chunk-5BVGJBZX.js} +1 -1
  15. package/dist/bundle/{chunk-5CKE7LAP.js → chunk-5JTW3LNF.js} +1 -1
  16. package/dist/bundle/{chunk-XDQIJSJE.js → chunk-5OYZNBE7.js} +1 -1
  17. package/dist/bundle/{chunk-RUWY43XR.js → chunk-63JF4E76.js} +480 -256
  18. package/dist/bundle/{chunk-UGV57SZH.js → chunk-7AMJFTJM.js} +1 -1
  19. package/dist/bundle/{chunk-MLDBSKW6.js → chunk-7JWW4YEK.js} +8 -8
  20. package/dist/bundle/{chunk-UVO7UNYH.js → chunk-7MKROF5R.js} +1 -1
  21. package/dist/bundle/{chunk-YJSCSLAT.js → chunk-A56GDMFH.js} +3 -3
  22. package/dist/bundle/{chunk-CYUP7HQG.js → chunk-ARVXP2UJ.js} +258 -258
  23. package/dist/bundle/{chunk-TIQUMRSO.js → chunk-AZGQ7ABE.js} +150 -150
  24. package/dist/bundle/{chunk-DYNSZDXG.js → chunk-CGI5EIIA.js} +20 -20
  25. package/dist/bundle/{chunk-UXGQXP5U.js → chunk-CUT72KGN.js} +3 -3
  26. package/dist/bundle/{chunk-XV7YW65Y.js → chunk-CV5EXF7J.js} +4 -4
  27. package/dist/bundle/{chunk-76MMXZ3W.js → chunk-CWHGN6HC.js} +4 -4
  28. package/dist/bundle/{chunk-EJZKYJKO.js → chunk-FE2SLKUO.js} +2 -2
  29. package/dist/bundle/{chunk-HWJHWNBW.js → chunk-FGJKBQCP.js} +3 -3
  30. package/dist/bundle/{chunk-KJE2KFYH.js → chunk-GKZ65EOY.js} +54 -54
  31. package/dist/bundle/{chunk-PJM4QQBT.js → chunk-GNY5YLNY.js} +2 -2
  32. package/dist/bundle/{chunk-GW2KCP4G.js → chunk-H24AL555.js} +27 -27
  33. package/dist/bundle/{program-4UU6HJQM.js → chunk-HGXTDMKN.js} +1498 -10061
  34. package/dist/bundle/{chunk-6ZVN4S36.js → chunk-HLJ6IUVF.js} +2 -2
  35. package/dist/bundle/{chunk-VDGKBAS2.js → chunk-JTSYAO5V.js} +274 -274
  36. package/dist/bundle/{chunk-MHHLYRRD.js → chunk-K3CJHSLS.js} +1 -1
  37. package/dist/bundle/{chunk-QQBRNKHQ.js → chunk-K3TUIQZ4.js} +43 -43
  38. package/dist/bundle/{chunk-5R3OXHIN.js → chunk-K6ZWFP2X.js} +1 -1
  39. package/dist/bundle/{chunk-7VJZKUN3.js → chunk-L34KLQIU.js} +9 -9
  40. package/dist/bundle/{chunk-N4AWIP4D.js → chunk-MG2JNBUV.js} +5 -5
  41. package/dist/bundle/{chunk-CNAOMV43.js → chunk-NDJUEFV2.js} +1 -1
  42. package/dist/bundle/{chunk-6SE6ZDBF.js → chunk-NG26I3JV.js} +1 -1
  43. package/dist/bundle/{chunk-M3REIIOH.js → chunk-PG4KORTB.js} +1 -1
  44. package/dist/bundle/{chunk-H52RNBPU.js → chunk-Q2ZIIXA2.js} +2 -2
  45. package/dist/bundle/{chunk-JHLGFPMK.js → chunk-Q3ZB4JGL.js} +2 -2
  46. package/dist/bundle/{chunk-GN3U74DV.js → chunk-QUQOKNAX.js} +12 -12
  47. package/dist/bundle/{chunk-GSCFCNGO.js → chunk-QWA3MTHH.js} +7 -7
  48. package/dist/bundle/{chunk-S34FLB7K.js → chunk-REUXOW2O.js} +2 -2
  49. package/dist/bundle/{chunk-EEKOBGQ7.js → chunk-RO4YPDGF.js} +1 -1
  50. package/dist/bundle/{chunk-DIQAOLWH.js → chunk-RRDXT63A.js} +1 -1
  51. package/dist/bundle/{chunk-U5PEYBQT.js → chunk-RTFU72GD.js} +4 -4
  52. package/dist/bundle/{chunk-WUV5O5HN.js → chunk-S3FQQRUM.js} +4 -4
  53. package/dist/bundle/{chunk-DIT5NA73.js → chunk-TFEXCHMC.js} +5 -5
  54. package/dist/bundle/{chunk-UBYCWQSV.js → chunk-URPBRYVA.js} +4 -4
  55. package/dist/bundle/{chunk-B6S42B6J.js → chunk-USMKR34T.js} +11 -11
  56. package/dist/bundle/{chunk-D6BK3H4D.js → chunk-UXA37BVT.js} +4 -4
  57. package/dist/bundle/{chunk-SQHIXN2N.js → chunk-W4GV42D5.js} +2 -2
  58. package/dist/bundle/{chunk-USLIHXWA.js → chunk-WGX6AEUP.js} +3 -3
  59. package/dist/bundle/{chunk-K6Z6B2CW.js → chunk-WP3J2FNH.js} +10 -10
  60. package/dist/bundle/{chunk-U6NL7SAX.js → chunk-X3GQJTTF.js} +5 -5
  61. package/dist/bundle/{chunk-3DXTHN5C.js → chunk-X6HXGL5E.js} +7 -7
  62. package/dist/bundle/{chunk-NUEIRBKY.js → chunk-XUMYVRBZ.js} +1 -1
  63. package/dist/bundle/{chunk-Z7J7SVZJ.js → chunk-XWIRWBB5.js} +1 -1
  64. package/dist/bundle/{chunk-YUEAM6ZP.js → chunk-ZHDOELM7.js} +7 -7
  65. package/dist/bundle/{command-contract-ZLDRM6DG.js → command-contract-DFXPO5Q7.js} +11 -11
  66. package/dist/bundle/{decode-Y2DWOSOW.js → decode-7NGILAKQ.js} +2 -2
  67. package/dist/bundle/{echarts-2ZHQHZ4R.js → echarts-JERQI2HW.js} +2 -2
  68. package/dist/bundle/{embed-JEER47U6.js → embed-3AO7KZXC.js} +3 -3
  69. package/dist/bundle/{embedder-BJQEGCE5.js → embedder-WRQ7TDDB.js} +6 -6
  70. package/dist/bundle/{entry-YKH7GAX7.js → entry-IBRPU7NO.js} +4 -4
  71. package/dist/bundle/failure-46JTICYP.js +66 -0
  72. package/dist/bundle/{first-run-ESH5B55J.js → first-run-IJOREEQM.js} +5 -5
  73. package/dist/bundle/{first-screen-RTATNK4S.js → first-screen-KYNY6ELY.js} +12 -12
  74. package/dist/bundle/{instructions-NJYYRMYK.js → instructions-BET2PLGV.js} +1 -1
  75. package/dist/bundle/{mcp-ZRKYZLNM.js → mcp-NUBFFPGF.js} +35 -35
  76. package/dist/bundle/memo.js +6 -6
  77. package/dist/bundle/{node-DBNZMTJO.js → node-NCSG7QX5.js} +2 -2
  78. package/dist/bundle/{node-sqlite-CCNVCZSG.js → node-sqlite-QL4M5RIK.js} +3 -3
  79. package/dist/bundle/{oauth-UV7KBQFP.js → oauth-BGMMED35.js} +4 -4
  80. package/dist/bundle/{open-VTOLLLS4.js → open-YN3KJMMQ.js} +2 -2
  81. package/dist/bundle/{openai-RTJNHBCG.js → openai-CTZUSKUS.js} +7 -7
  82. package/dist/bundle/{process-TAFRBB53.js → process-DW237TK4.js} +1 -1
  83. package/dist/bundle/program-RAUHPTRG.js +9173 -0
  84. package/dist/bundle/{prompt-ESMCTEJI.js → prompt-EZCCUYCS.js} +2 -2
  85. package/dist/bundle/{recognize-V53GEY6R.js → recognize-XP3LHQD6.js} +1 -1
  86. package/dist/bundle/{remote-KGKRAGA6.js → remote-RLR5ZKKT.js} +4 -4
  87. package/dist/bundle/{rerank-DTD24I7Y.js → rerank-P7LE52AC.js} +4 -4
  88. package/dist/bundle/{serve-2DVSIKM7.js → serve-UA7RQDNK.js} +6 -6
  89. package/dist/bundle/server-N6L3LGQO.js +48 -0
  90. package/dist/bundle/{server-UBMV5OI7.js → server-XM4LNODP.js} +50 -50
  91. package/dist/bundle/server-XU362INX.js +61 -0
  92. package/dist/bundle/{state-ONT6T6PY.js → state-72Y55LBR.js} +3 -3
  93. package/dist/bundle/{store-TOYBDMML.js → store-PED4JCBB.js} +9 -9
  94. package/dist/bundle/store-maintenance-command-B364Q2O4.js +48 -0
  95. package/dist/bundle/update-IWJYYYRI.js +69 -0
  96. package/dist/config.d.ts +11 -0
  97. package/dist/config.d.ts.map +1 -1
  98. package/dist/config.js +19 -0
  99. package/dist/config.js.map +1 -1
  100. package/dist/examples.js +1 -1
  101. package/dist/examples.js.map +1 -1
  102. package/dist/findings/command.d.ts.map +1 -1
  103. package/dist/findings/command.js +4 -4
  104. package/dist/findings/command.js.map +1 -1
  105. package/dist/findings-input.d.ts +7 -0
  106. package/dist/findings-input.d.ts.map +1 -0
  107. package/dist/findings-input.js +13 -0
  108. package/dist/findings-input.js.map +1 -0
  109. package/dist/knowledge/project-actions-command.d.ts.map +1 -1
  110. package/dist/knowledge/project-actions-command.js +4 -4
  111. package/dist/knowledge/project-actions-command.js.map +1 -1
  112. package/dist/mail/findings-command.d.ts +1 -1
  113. package/dist/mail/findings-command.d.ts.map +1 -1
  114. package/dist/mail/findings-command.js +5 -6
  115. package/dist/mail/findings-command.js.map +1 -1
  116. package/dist/mail/review-command.d.ts.map +1 -1
  117. package/dist/mail/review-command.js +2 -0
  118. package/dist/mail/review-command.js.map +1 -1
  119. package/dist/schedule/command.d.ts.map +1 -1
  120. package/dist/schedule/command.js +4 -3
  121. package/dist/schedule/command.js.map +1 -1
  122. package/dist/version.d.ts +1 -1
  123. package/dist/version.js +1 -1
  124. package/package.json +2 -2
  125. package/skills/mail-triage/SKILL.md +15 -10
  126. package/dist/bundle/auto-72Y6UJWK.js +0 -86
  127. package/dist/bundle/chunk-GACW4GZZ.js +0 -452
  128. package/dist/bundle/failure-JE2JCLGO.js +0 -66
  129. package/dist/bundle/server-ODWZJIRX.js +0 -48
  130. package/dist/bundle/server-V5YRZZID.js +0 -61
  131. package/dist/bundle/store-maintenance-command-HIMIMWFU.js +0 -48
  132. package/dist/bundle/update-AO5UWEBY.js +0 -69
  133. /package/dist/bundle/{chunk-G6I5A2N3.js → chunk-QPPNLE7G.js} +0 -0
@@ -93,11 +93,11 @@ import {
93
93
  validateQuery,
94
94
  walkQuery,
95
95
  zonedMoment
96
- } from "./chunk-KJE2KFYH.js";
96
+ } from "./chunk-GKZ65EOY.js";
97
97
  import {
98
98
  holdsCredential,
99
99
  secretNamed
100
- } from "./chunk-Q3XFJOAY.js";
100
+ } from "./chunk-2XBDA3XF.js";
101
101
  import {
102
102
  DEFAULT_STEMMERS,
103
103
  DEFAULT_STEMMERS_VERSION,
@@ -110,26 +110,26 @@ import {
110
110
  fold,
111
111
  normalize,
112
112
  parseStemmers
113
- } from "./chunk-YUEAM6ZP.js";
113
+ } from "./chunk-ZHDOELM7.js";
114
114
  import {
115
115
  DEFAULT_TASK_CATEGORIES,
116
116
  sharedConfigPath,
117
117
  storedTaskCategories,
118
118
  taskCategoriesReader
119
- } from "./chunk-UBYCWQSV.js";
119
+ } from "./chunk-URPBRYVA.js";
120
120
  import {
121
121
  refuseOwnerStoreInTests,
122
122
  storePath
123
- } from "./chunk-DIQAOLWH.js";
123
+ } from "./chunk-RRDXT63A.js";
124
124
  import {
125
125
  quietSqliteWarning,
126
126
  storeCapable
127
- } from "./chunk-SIY75R4D.js";
127
+ } from "./chunk-3G44GDIZ.js";
128
128
  import {
129
129
  PRAGMAS,
130
130
  TIME_LIMIT_FUNCTION,
131
131
  TimeLimitReached
132
- } from "./chunk-6SE6ZDBF.js";
132
+ } from "./chunk-NG26I3JV.js";
133
133
  import {
134
134
  array,
135
135
  boolean,
@@ -179,12 +179,12 @@ import {
179
179
  sql,
180
180
  sqliteTable,
181
181
  text
182
- } from "./chunk-5R3OXHIN.js";
182
+ } from "./chunk-K6ZWFP2X.js";
183
183
  import {
184
184
  __name
185
185
  } from "./chunk-ZVVMGPBJ.js";
186
186
 
187
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/account-store.js
187
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/account-store.js
188
188
  var bindArea = /* @__PURE__ */ __name(({ keyed, whole }, account) => {
189
189
  const methods = whole;
190
190
  return Object.fromEntries(Object.keys(keyed).map((name) => [
@@ -312,7 +312,7 @@ var bindAccount = /* @__PURE__ */ __name((store, account, areas, owners) => {
312
312
  };
313
313
  }, "bindAccount");
314
314
 
315
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/locator.js
315
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/locator.js
316
316
  var SCHEME = "msg:";
317
317
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat: chat2, message: message2 }) => SCHEME + [provider, account, chat2, message2].map(encodeURIComponent).join("/"), "formatLocator");
318
318
  var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
@@ -326,7 +326,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
326
326
  return { provider, account, chat: chat2, message: message2 };
327
327
  }, "parseLocator");
328
328
 
329
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/references.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/references.js
330
330
  var SIMPLE_REFERENCES = [
331
331
  "note",
332
332
  "document",
@@ -474,7 +474,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text6) => {
474
474
  return match !== null && byPrefix.has(match[1]);
475
475
  }, "looksLikeReference");
476
476
 
477
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/providers.js
477
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/providers.js
478
478
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
479
479
  var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
480
480
  var PROVIDERS = [
@@ -590,7 +590,7 @@ var providerNamed = /* @__PURE__ */ __name((word2) => {
590
590
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
591
591
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
592
592
 
593
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/query.js
593
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/query.js
594
594
  var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
595
595
  var inSource = /* @__PURE__ */ __name((source2, provider) => source2 === "all" || source2 === "bots" && isBotProvider(provider) || source2 === "personal" && !isBotProvider(provider) || source2 === provider || providerNamed(source2)?.name === provider || isKind(source2) && kindOf(provider) === source2, "inSource");
596
596
  var fail = /* @__PURE__ */ __name((message2) => {
@@ -613,7 +613,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
613
613
  return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
614
614
  }, "sourceOf");
615
615
 
616
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/account-list.js
616
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/account-list.js
617
617
  var ACCOUNT_GROUPS = "accountGroups";
618
618
  var ACCOUNT_GROUPS_SETTING = "account_groups";
619
619
  var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
@@ -800,7 +800,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds2, what, reasonOf2 = (kind4)
800
800
  return { accounts: [...chosen.values()], skipped };
801
801
  }, "fitting");
802
802
 
803
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
803
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/core.js
804
804
  var IndexBuilderOn = class {
805
805
  static {
806
806
  __name(this, "IndexBuilderOn");
@@ -995,7 +995,7 @@ function alias(table, alias2) {
995
995
  }
996
996
  __name(alias, "alias");
997
997
 
998
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
998
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/entity-types.js
999
999
  var ENTITY_TABLES = {
1000
1000
  account: "accounts",
1001
1001
  attachment: "attachments",
@@ -1038,7 +1038,7 @@ var orphanPointers = /* @__PURE__ */ __name((database) => pointerPairs(database)
1038
1038
  return { table, pointer, type, count, known: known2 };
1039
1039
  }).filter(({ count }) => count > 0)), "orphanPointers");
1040
1040
 
1041
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1041
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/canonical-tags.js
1042
1042
  var canonicalTags = sqliteTable("canonical_tags", {
1043
1043
  id: integer("id").primaryKey(),
1044
1044
  name: text("name").notNull().unique(),
@@ -1047,7 +1047,7 @@ var canonicalTags = sqliteTable("canonical_tags", {
1047
1047
  updatedAt: integer("updated_at").notNull()
1048
1048
  });
1049
1049
 
1050
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1050
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-transfers.js
1051
1051
  var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1052
1052
  sourceKey: text("source_key").notNull(),
1053
1053
  collection: text("collection").notNull(),
@@ -1057,13 +1057,13 @@ var documentAnnotationTransfers = sqliteTable("document_annotation_transfers", {
1057
1057
  createdAt: integer("created_at").notNull()
1058
1058
  }, (table) => [primaryKey({ columns: [table.sourceKey, table.collection] })]);
1059
1059
 
1060
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1060
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/document-index-pending.js
1061
1061
  var documentIndexPending = sqliteTable("document_index_pending", {
1062
1062
  id: integer("id").notNull(),
1063
1063
  indexableType: text("indexable_type").notNull()
1064
1064
  }, (table) => [primaryKey({ columns: [table.indexableType, table.id] })]);
1065
1065
 
1066
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1066
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema/tag-consolidations.js
1067
1067
  var tagRedirects = sqliteTable("tag_redirects", {
1068
1068
  sourceId: integer("source_id").primaryKey().references(() => canonicalTags.id),
1069
1069
  survivorId: integer("survivor_id").notNull().references(() => canonicalTags.id),
@@ -1089,7 +1089,7 @@ var tagConsolidations = sqliteTable("tag_consolidations", {
1089
1089
  index("tag_consolidations_by_actor_type_actor_id").on(table.actorType, table.actorId)
1090
1090
  ]);
1091
1091
 
1092
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1092
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/schema.js
1093
1093
  var accounts = sqliteTable("accounts", {
1094
1094
  id: integer("id").primaryKey(),
1095
1095
  provider: text("provider").notNull(),
@@ -2751,7 +2751,7 @@ var storeSettings = sqliteTable("store_settings", {
2751
2751
  at: integer("at").notNull()
2752
2752
  });
2753
2753
 
2754
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2754
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvement-queue.js
2755
2755
  var ARMS = [
2756
2756
  [
2757
2757
  "message",
@@ -2878,7 +2878,7 @@ var drainInvolvementQueue = /* @__PURE__ */ __name((database, cap = QUEUE_CAP) =
2878
2878
  return recomputed;
2879
2879
  }, "drainInvolvementQueue");
2880
2880
 
2881
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2881
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
2882
2882
  import { domainToUnicode } from "node:url";
2883
2883
 
2884
2884
  // node_modules/.pnpm/psl@1.15.0/node_modules/psl/dist/psl.mjs
@@ -12900,7 +12900,7 @@ var oa = /* @__PURE__ */ __name((e) => {
12900
12900
  }, "oa");
12901
12901
  var na = { parse: O, get: aa, isValid: oa };
12902
12902
 
12903
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12903
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/google-documents.js
12904
12904
  var LINK = /https?:\/\/(?:(?:docs|drive|sheets|slides)\.google\.com|forms\.gle)(?:[/?#][^\s<>"'`]*)?/gi;
12905
12905
  var ID = /^[\w-]{10,}$/;
12906
12906
  var trimUrl = /* @__PURE__ */ __name((url) => {
@@ -12941,7 +12941,7 @@ var googleDocumentLinks = /* @__PURE__ */ __name((text6) => [...text6.matchAll(L
12941
12941
  return { url, documentId: googleDocumentId(url) };
12942
12942
  }), "googleDocumentLinks");
12943
12943
 
12944
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12944
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/phone-plans.generated.js
12945
12945
  var PHONE_PLANS = [
12946
12946
  {
12947
12947
  country: "us",
@@ -13321,7 +13321,7 @@ var PHONE_PLANS = [
13321
13321
  }
13322
13322
  ];
13323
13323
 
13324
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/phones.js
13324
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/phones.js
13325
13325
  var PHONE_COUNTRIES = PHONE_PLANS.map((plan) => plan.country);
13326
13326
  var DEFAULT_PHONE_COUNTRIES = ["ru"];
13327
13327
  var parsePhoneCountries = /* @__PURE__ */ __name((value) => {
@@ -13362,7 +13362,7 @@ var nationalPhone = /* @__PURE__ */ __name((digits, countries, { anyType }) => {
13362
13362
  return void 0;
13363
13363
  }, "nationalPhone");
13364
13364
 
13365
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/places.js
13365
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/places.js
13366
13366
  var BEFORE = [
13367
13367
  [/^(?:ул\.?|улиц[аеыу]|улицей)$/iu, "\u0443\u043B\u0438\u0446\u0430"],
13368
13368
  [/^(?:пр-т|просп\.?|проспект[аеу]?)$/iu, "\u043F\u0440\u043E\u0441\u043F\u0435\u043A\u0442"],
@@ -13622,7 +13622,7 @@ var findPlaces = /* @__PURE__ */ __name((text6) => {
13622
13622
  return found2.sort((a, b) => a.start - b.start);
13623
13623
  }, "findPlaces");
13624
13624
 
13625
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13625
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/mentions.js
13626
13626
  var MENTION_KINDS = ["phone", "email", "url", "document", "person-name", "place"];
13627
13627
  var MENTION_VERSIONS = {
13628
13628
  phone: 1,
@@ -13812,7 +13812,7 @@ var typedPhone = /* @__PURE__ */ __name((typed, { phoneCountries = DEFAULT_PHONE
13812
13812
  };
13813
13813
  }, "typedPhone");
13814
13814
 
13815
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13815
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/first-names.js
13816
13816
  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";
13817
13817
  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";
13818
13818
  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";
@@ -13820,7 +13820,7 @@ var NOT_NAMES = ["\u0436\u0435\u043D\u0430", "\u0436\u0435\u043D\u044B", "\u0436
13820
13820
  var FIRST_NAMES = [...new Set(`${RUSSIAN} ${EUROPEAN}`.split(" "))];
13821
13821
  var NAME_WORDS = WORDS.split(" ");
13822
13822
 
13823
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13823
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/person-names.js
13824
13824
  var LATIN_TO_CYRILLIC = {
13825
13825
  shch: "\u0449",
13826
13826
  sch: "\u0449",
@@ -14028,7 +14028,7 @@ var findUnknownNames = /* @__PURE__ */ __name((text6, stem, taken) => {
14028
14028
  return found2;
14029
14029
  }, "findUnknownNames");
14030
14030
 
14031
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14031
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/attachments.js
14032
14032
  var NOT_FILES = /* @__PURE__ */ new Set([
14033
14033
  "webpage",
14034
14034
  "share",
@@ -14068,7 +14068,7 @@ var matchDownloads = /* @__PURE__ */ __name((stored3, files2) => {
14068
14068
  });
14069
14069
  }, "matchDownloads");
14070
14070
 
14071
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14071
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
14072
14072
  var QUERY_VERSION = 1;
14073
14073
  var QUERY_LIMITS2 = {
14074
14074
  ...QUERY_LIMITS,
@@ -14104,7 +14104,7 @@ function exhausted(budget) {
14104
14104
  }
14105
14105
  __name(exhausted, "exhausted");
14106
14106
 
14107
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14107
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/automaton.js
14108
14108
  var any = { kind: "char", ranges: [[0, 1114111]], negate: false };
14109
14109
  var literal2 = /* @__PURE__ */ __name((c) => ({
14110
14110
  kind: "char",
@@ -14504,7 +14504,7 @@ var foldRegex = /* @__PURE__ */ __name((pattern, span) => {
14504
14504
  return out;
14505
14505
  }, "foldRegex");
14506
14506
 
14507
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14507
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/presets.js
14508
14508
  var PRESET_VERSION = 1;
14509
14509
  var PRESETS = {
14510
14510
  password: {
@@ -14558,7 +14558,7 @@ var PRESETS = {
14558
14558
  }
14559
14559
  };
14560
14560
 
14561
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14561
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
14562
14562
  var FIELD_VERSION = 2;
14563
14563
  var UNITS = {
14564
14564
  "": 1,
@@ -15019,12 +15019,12 @@ var validateAst = /* @__PURE__ */ __name((input) => {
15019
15019
  return validateFields(parsed3.output);
15020
15020
  }, "validateAst");
15021
15021
 
15022
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15022
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/lucene/resolved.js
15023
15023
  var hasText = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "text" || node.field === "exact" : node.clauses.some(({ node: node2 }) => hasText(node2)), "hasText");
15024
15024
  var isStemmed = /* @__PURE__ */ __name((node) => node.field === "text" && (node.operator === "term" || node.operator === "phrase") && node.value !== "", "isStemmed");
15025
15025
  var hasStems = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? isStemmed(node) : node.clauses.some(({ node: node2 }) => hasStems(node2)), "hasStems");
15026
15026
 
15027
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15027
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-links.js
15028
15028
  var LIVE = "mn.kind = 'url' AND mn.status <> 'dismissed'";
15029
15029
  var MAIL_ROWS = `SELECT mn.source_id FROM mentions mn WHERE mn.source_type = 'email' AND ${LIVE}`;
15030
15030
  var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
@@ -15048,7 +15048,7 @@ var linkMatch = /* @__PURE__ */ __name((field4, typed, mail, mentioned2) => {
15048
15048
  };
15049
15049
  }, "linkMatch");
15050
15050
 
15051
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15051
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/phone-countries.js
15052
15052
  var SETTING = "phoneCountries";
15053
15053
  var savedPhoneCountries = /* @__PURE__ */ __name((database) => {
15054
15054
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING);
@@ -15079,7 +15079,7 @@ var valueMatch = /* @__PURE__ */ __name((database, typed) => {
15079
15079
  return { sql: "mn.value = ?", params: [phone?.value ?? normalizedValue(typed, { phoneCountries })] };
15080
15080
  }, "valueMatch");
15081
15081
 
15082
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15082
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/vocabulary.js
15083
15083
  var normalizeVocabularyName = /* @__PURE__ */ __name((input) => {
15084
15084
  if (typeof input !== "string" || input.length > 200 || /[\p{Cc}\p{Cf}]/u.test(input))
15085
15085
  throw new CliError("validation_error", "a vocabulary name takes 1\u2013200 characters without control characters");
@@ -15107,7 +15107,7 @@ var vocabularySimilarity = /* @__PURE__ */ __name((left, right) => {
15107
15107
  return 2 * intersection2 / (aa2.size + bb.size);
15108
15108
  }, "vocabularySimilarity");
15109
15109
 
15110
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15110
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-creation.js
15111
15111
  import { createHash } from "node:crypto";
15112
15112
  var folded2 = /* @__PURE__ */ __name((name) => {
15113
15113
  try {
@@ -15173,7 +15173,7 @@ var guardTagCreation = /* @__PURE__ */ __name((context, name, kind4, by, options
15173
15173
  });
15174
15174
  }, "guardTagCreation");
15175
15175
 
15176
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15176
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/tag-redirects.js
15177
15177
  var invalid2 = /* @__PURE__ */ __name((message2) => {
15178
15178
  throw new CliError("validation_error", message2);
15179
15179
  }, "invalid");
@@ -15250,7 +15250,7 @@ var createTagRedirectIndex = /* @__PURE__ */ __name((snapshot2) => {
15250
15250
  };
15251
15251
  }, "createTagRedirectIndex");
15252
15252
 
15253
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15253
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-resolution.js
15254
15254
  var tagCanonicalId = /* @__PURE__ */ __name((database, id2) => {
15255
15255
  const row2 = database.prepare("SELECT canonical_id FROM resolved_tags WHERE id=?").get(id2);
15256
15256
  if (!row2)
@@ -15278,7 +15278,7 @@ var tagRedirectSnapshot = /* @__PURE__ */ __name((database) => {
15278
15278
  return snapshot2;
15279
15279
  }, "tagRedirectSnapshot");
15280
15280
 
15281
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15281
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-keys.js
15282
15282
  import { createHash as createHash2 } from "node:crypto";
15283
15283
  var TASK_KEY_PREFIXES = {
15284
15284
  question: "Q",
@@ -15306,7 +15306,7 @@ var taskAccountOf = /* @__PURE__ */ __name((database, rowId) => {
15306
15306
  return row2 && String(row2.key) === inboxKey(String(row2.name)) ? String(row2.name) : void 0;
15307
15307
  }, "taskAccountOf");
15308
15308
 
15309
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15309
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/things.js
15310
15310
  var storedThing = /* @__PURE__ */ __name((type, id2) => ({ type: String(type), id: Number(id2) }), "storedThing");
15311
15311
  var REFERABLE = {
15312
15312
  note: { tombstone: true },
@@ -15471,7 +15471,7 @@ var taskIdOf = /* @__PURE__ */ __name((database, rowId) => {
15471
15471
  return row2 ? String(row2.id ?? row2.key) : void 0;
15472
15472
  }, "taskIdOf");
15473
15473
 
15474
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15474
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/values.js
15475
15475
  var toMs = /* @__PURE__ */ __name((iso13) => {
15476
15476
  if (iso13 === null || iso13 === void 0)
15477
15477
  return null;
@@ -15485,7 +15485,7 @@ var present = /* @__PURE__ */ __name((entries) => Object.fromEntries(Object.entr
15485
15485
  var DELIVERY = { delivered: 1, read: 2 };
15486
15486
  var deliveryOf = /* @__PURE__ */ __name((stored3) => stored3 === DELIVERY.read ? "read" : stored3 === DELIVERY.delivered ? "delivered" : void 0, "deliveryOf");
15487
15487
 
15488
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15488
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tags.js
15489
15489
  var TAG_KINDS = ["tag", "topic"];
15490
15490
  var TAGGABLE = { chat: "chat", contact: "identity", message: "message", task: "task" };
15491
15491
  var TAG_TYPE = {
@@ -15688,7 +15688,7 @@ var tagsOf = /* @__PURE__ */ __name(({ database }, key2, filter) => {
15688
15688
  return result;
15689
15689
  }, "tagsOf");
15690
15690
 
15691
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15691
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-fields.js
15692
15692
  var speech = /* @__PURE__ */ __name((alias2) => `(coalesce(${alias2}.extractor,'') LIKE 'speech:%' OR ${alias2}.kind IN ('voice','video_note') OR coalesce(${alias2}.mime,'')='audio/ogg')`, "speech");
15693
15693
  var SPEECH = speech("att");
15694
15694
  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");
@@ -16052,7 +16052,7 @@ var FIELD_COMPILERS = {
16052
16052
  subject
16053
16053
  };
16054
16054
 
16055
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16055
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/place-key.js
16056
16056
  var placeOf = /* @__PURE__ */ __name((database) => {
16057
16057
  const exact = database.prepare("SELECT id FROM places WHERE folded = ?");
16058
16058
  const onStreet = database.prepare("SELECT id FROM places WHERE substr(folded, 1, ?) = ? LIMIT 2");
@@ -16068,7 +16068,7 @@ var placeOf = /* @__PURE__ */ __name((database) => {
16068
16068
  };
16069
16069
  }, "placeOf");
16070
16070
 
16071
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16071
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-drain.js
16072
16072
  var DRAIN_ON_WRITE = 500;
16073
16073
  var METHOD = "rules";
16074
16074
  var telegramLink = /* @__PURE__ */ __name((database) => {
@@ -16231,7 +16231,7 @@ var drainMentions = /* @__PURE__ */ __name((database, now2, limit = DRAIN_ON_WRI
16231
16231
  return queued.length;
16232
16232
  }, "drainMentions");
16233
16233
 
16234
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16234
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/index-state.js
16235
16235
  var indexRow = /* @__PURE__ */ __name((database, name) => {
16236
16236
  const exists2 = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'search_index_state'").get();
16237
16237
  if (!exists2)
@@ -16239,7 +16239,7 @@ var indexRow = /* @__PURE__ */ __name((database, name) => {
16239
16239
  return database.prepare("SELECT * FROM search_index_state WHERE name = ?").get(name);
16240
16240
  }, "indexRow");
16241
16241
 
16242
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16242
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems.js
16243
16243
  var INDEX = "message_stems";
16244
16244
  var SETTING2 = "searchStemmers";
16245
16245
  var DRAIN_ON_WRITE2 = 500;
@@ -16361,7 +16361,7 @@ var stemmerCache = /* @__PURE__ */ __name(() => {
16361
16361
  };
16362
16362
  }, "stemmerCache");
16363
16363
 
16364
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16364
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transaction.js
16365
16365
  var SQLITE_BUSY = 5;
16366
16366
  var pause = new Int32Array(new SharedArrayBuffer(4));
16367
16367
  var isBusy = /* @__PURE__ */ __name((error) => {
@@ -16456,7 +16456,7 @@ var read = /* @__PURE__ */ __name((database, body2) => {
16456
16456
  }
16457
16457
  }, "read");
16458
16458
 
16459
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16459
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vector-index.js
16460
16460
  var source = /* @__PURE__ */ __name((model, dims) => `SELECT k.id, k.chunkable_type,
16461
16461
  coalesce(CASE k.chunkable_type
16462
16462
  WHEN 'image' THEN (SELECT ch.account_id FROM attachments a JOIN messages m ON m.id = a.attachable_id
@@ -16598,7 +16598,7 @@ var dropUnusedVectors = /* @__PURE__ */ __name((database, hashes) => {
16598
16598
  }, "dropUnusedVectors");
16599
16599
  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");
16600
16600
 
16601
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16601
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/accounts.js
16602
16602
  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({
16603
16603
  target: [accounts.provider, accounts.externalId],
16604
16604
  set: {
@@ -16707,7 +16707,7 @@ var dropOrphanPeople = /* @__PURE__ */ __name((database, unseenBefore) => {
16707
16707
  AND id NOT IN (SELECT id FROM (${referencesTo(database, "persons", /* @__PURE__ */ new Set(["identity_links"]))}) WHERE id IS NOT NULL)`).run(JSON.stringify(persons2));
16708
16708
  }, "dropOrphanPeople");
16709
16709
 
16710
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16710
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/folded.js
16711
16711
  var FOLDED = [
16712
16712
  { table: "tasks", column: "title" },
16713
16713
  { table: "tasks", column: "close_reason" },
@@ -16744,7 +16744,7 @@ var fillFolded = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
16744
16744
  return filled2;
16745
16745
  }, "fillFolded");
16746
16746
 
16747
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16747
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/history-skips.js
16748
16748
  var HISTORY_KEY = "$history";
16749
16749
  var objectOf = /* @__PURE__ */ __name((text6) => {
16750
16750
  if (typeof text6 !== "string")
@@ -16820,7 +16820,7 @@ var withoutHistory = /* @__PURE__ */ __name((metadata3) => {
16820
16820
  return rest;
16821
16821
  }, "withoutHistory");
16822
16822
 
16823
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16823
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/conversations/chunks.js
16824
16824
  import { createHash as createHash3 } from "node:crypto";
16825
16825
  var CHUNK_CHARS = 1200;
16826
16826
  var CHUNK_OVERLAP = 150;
@@ -16925,7 +16925,7 @@ var cutChunks = /* @__PURE__ */ __name((members2, limit = CHUNK_CHARS, check3, c
16925
16925
  return chunks2;
16926
16926
  }, "cutChunks");
16927
16927
 
16928
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16928
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/task-signature.js
16929
16929
  var DAY = 864e5;
16930
16930
  var CURRENCY = [
16931
16931
  [/^(₽|руб.*|р\.?|rub)$/u, "RUB"],
@@ -17051,7 +17051,7 @@ var dueDayOf = /* @__PURE__ */ __name((text6, createdMs) => {
17051
17051
  return best?.day ?? null;
17052
17052
  }, "dueDayOf");
17053
17053
 
17054
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17054
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/task-similarity.js
17055
17055
  var DAY2 = 864e5;
17056
17056
  var STOP_WORDS = new Set([
17057
17057
  // Russian and English as the test set ran them, already folded (пожалуйста → пожалуиста).
@@ -17206,7 +17206,7 @@ var rankCandidates = /* @__PURE__ */ __name((views, candidates) => candidates.ma
17206
17206
  ...compareViews(subjectViews ?? views, candidate, replyChain === void 0 ? {} : { replyChain })
17207
17207
  })).sort((a, b) => b.score - a.score), "rankCandidates");
17208
17208
 
17209
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17209
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vectors.js
17210
17210
  var currentChunks = /* @__PURE__ */ __name((chatKey) => sql`SELECT k.content_hash, k.chunkable_id AS conversation_id, r.first_message_id,
17211
17211
  r.last_message_id, r.text_start, r.text_end FROM chunks k JOIN chunk_messages r ON r.chunk_id = k.id
17212
17212
  JOIN conversations c ON k.chunkable_type = 'conversation' AND c.id = k.chunkable_id
@@ -17477,7 +17477,7 @@ var readiness = /* @__PURE__ */ __name(({ orm }, chatKey, model) => {
17477
17477
  };
17478
17478
  }, "readiness");
17479
17479
 
17480
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17480
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-pictures.js
17481
17481
  var DOCUMENT_PICTURE = "document_picture";
17482
17482
  var SCAN_PAGE2 = 5e3;
17483
17483
  var idOf = /* @__PURE__ */ __name((ref3) => {
@@ -17540,7 +17540,7 @@ var documentPicturesOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
17540
17540
  }, "nearestPictures")
17541
17541
  }), "documentPicturesOver");
17542
17542
 
17543
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17543
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/query-filter.js
17544
17544
  var glob = /* @__PURE__ */ __name((value) => [...fold(value).matchAll(/\\(.)|([*?])|(.)/gsu)].map(([, escaped2, wildcard, plain2]) => {
17545
17545
  const literal4 = escaped2 ?? plain2 ?? "";
17546
17546
  return wildcard ?? (/[*?[]/u.test(literal4) ? `[${literal4}]` : literal4);
@@ -17605,7 +17605,7 @@ var compile = /* @__PURE__ */ __name((node, columns, options) => {
17605
17605
  var queryFilter = /* @__PURE__ */ __name((ast, columns, options = {}) => compile(ast.root, columns, options), "queryFilter");
17606
17606
  var bound2 = /* @__PURE__ */ __name(({ sql: text6, params }) => sql.join(text6.split("?").map((part, at) => at < params.length ? sql`${sql.raw(part)}${params[at]}` : sql.raw(part)), sql``), "bound");
17607
17607
 
17608
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17608
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/events.js
17609
17609
  var toJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.stringify(value), "toJson");
17610
17610
  var fromJson = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : JSON.parse(String(value)), "fromJson");
17611
17611
  var int = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "int");
@@ -17695,7 +17695,7 @@ var linkMeeting = /* @__PURE__ */ __name((database, id2, eventId, now2, mode = "
17695
17695
  });
17696
17696
  }, "linkMeeting");
17697
17697
 
17698
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17698
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-index.js
17699
17699
  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), ''))";
17700
17700
  var UNSEARCHED_EVENT_TYPES = [
17701
17701
  "working-location",
@@ -17925,7 +17925,7 @@ var resetNoteIndex = /* @__PURE__ */ __name((database) => {
17925
17925
  return true;
17926
17926
  }, "resetNoteIndex");
17927
17927
 
17928
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17928
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-resolution.js
17929
17929
  var keyOf3 = /* @__PURE__ */ __name((name) => fold(name).trim().replace(/^@/, ""), "keyOf");
17930
17930
  var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17931
17931
  for (const key2 of new Set(names.filter((name) => !!name?.trim()).map(keyOf3))) {
@@ -17944,7 +17944,7 @@ var resolvePersonLinks = /* @__PURE__ */ __name((database, names) => {
17944
17944
  }
17945
17945
  }, "resolvePersonLinks");
17946
17946
 
17947
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17947
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/identities.js
17948
17948
  var flag2 = /* @__PURE__ */ __name((value) => value === void 0 || value === null ? null : Number(value), "flag");
17949
17949
  var prepare = /* @__PURE__ */ __name((orm) => ({
17950
17950
  find: orm.select({
@@ -18169,7 +18169,7 @@ var meetingIdentityPk = /* @__PURE__ */ __name((context, accountId, identity) =>
18169
18169
  }, "meetingIdentityPk");
18170
18170
  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");
18171
18171
 
18172
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18172
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chats.js
18173
18173
  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");
18174
18174
  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");
18175
18175
  var chatPkFor = /* @__PURE__ */ __name((context, accountKey, chatId) => findChatPk(context, accountKey, chatId) ?? Number(context.orm.insert(chats).values({
@@ -18449,7 +18449,7 @@ var replaceAutoTags = /* @__PURE__ */ __name((context, key2, chatId, algorithm,
18449
18449
  }
18450
18450
  }, "replaceAutoTags");
18451
18451
 
18452
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/counters.js
18452
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/counters.js
18453
18453
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
18454
18454
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
18455
18455
  var counterObservationTime = /* @__PURE__ */ __name((observation, now2) => {
@@ -18468,7 +18468,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
18468
18468
  return states.some((one2) => one2.freshness === "stale") ? "stale" : "fresh";
18469
18469
  }, "counterFreshness");
18470
18470
 
18471
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/context/evidence.js
18471
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/context/evidence.js
18472
18472
  import { createHash as createHash4 } from "node:crypto";
18473
18473
  var CONTEXT_MAX_READ_BYTES = 262144;
18474
18474
  var CONTEXT_SOURCE_KINDS = ["message", "mail", "document", "meeting"];
@@ -18566,7 +18566,7 @@ var contextEvidenceRequest = /* @__PURE__ */ __name((input) => {
18566
18566
  return { source: source2, query, chat: chat2, senders, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal: input.signal };
18567
18567
  }, "contextEvidenceRequest");
18568
18568
 
18569
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18569
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-activity.js
18570
18570
  var MAIL_AGENDA_COLUMNS = { chat_kind: { type: "enum", sql: "'dialog'" } };
18571
18571
  var ACTIVITY = `
18572
18572
  SELECT t.external_id AS thread, t.subject, t.last_email_at, t.emails_count,
@@ -18682,7 +18682,7 @@ var mailActivity = /* @__PURE__ */ __name((database) => ({
18682
18682
  threadActivity: /* @__PURE__ */ __name(async (accountId, since, where) => threadActivity(database, accountId, since, where), "threadActivity")
18683
18683
  }), "mailActivity");
18684
18684
 
18685
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18685
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/conversations/mail-text.js
18686
18686
  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");
18687
18687
  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;
18688
18688
  var ATTRIBUTION = /(wrote|написал[аи]?|escribió|a écrit|schrieb)\s*:\s*$/iu;
@@ -18823,7 +18823,7 @@ var mailOwnText = /* @__PURE__ */ __name((body2) => {
18823
18823
  return text6 || body2.trim();
18824
18824
  }, "mailOwnText");
18825
18825
 
18826
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18826
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-index.js
18827
18827
  var titleOf = /* @__PURE__ */ __name((subject2) => subject2?.replace(/^\s*((re|fwd?|aw|wg)\s*:\s*)+/i, "").trim() || null, "titleOf");
18828
18828
  var MAIL_PIECES = `(SELECT k.id, k.content_hash, k.chunkable_type AS type, k.chunkable_id AS owner, k.position,
18829
18829
  k.start_offset, k.end_offset, k.account_id, k.occurred_at, a.attachable_id AS email_id,
@@ -18933,7 +18933,7 @@ var drainEmailIndex = /* @__PURE__ */ __name((database, stemmerFor2) => {
18933
18933
  return emails3 + threads;
18934
18934
  }, "drainEmailIndex");
18935
18935
 
18936
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18936
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-locations.js
18937
18937
  var locate = /* @__PURE__ */ __name((database, accountId, emailId, where) => database.prepare(`INSERT OR REPLACE INTO email_locations (mailbox_id, uidvalidity, uid, email_id)
18938
18938
  SELECT id, ?, ?, ? FROM mailboxes WHERE account_id = ? AND external_id = ?`).run(where.uidvalidity, where.uid, emailId, accountId, where.folder), "locate");
18939
18939
  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,
@@ -19031,7 +19031,7 @@ var forgetLocations = /* @__PURE__ */ __name((database, accountId, folder, uidva
19031
19031
  var backfillSentAt = /* @__PURE__ */ __name((database, accountId, limit) => Number(database.prepare(`UPDATE emails SET sent_at = received_at WHERE id IN (
19032
19032
  SELECT id FROM emails WHERE account_id = ? AND sent_at IS NULL AND received_at IS NOT NULL LIMIT ?)`).run(accountId, limit).changes), "backfillSentAt");
19033
19033
 
19034
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19034
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/email-state.js
19035
19035
  var recountEmailThread = /* @__PURE__ */ __name((database, threadId, now2) => database.prepare(`UPDATE email_threads SET
19036
19036
  emails_count = (SELECT count(*) FROM emails WHERE email_thread_id = ? AND deleted_at IS NULL),
19037
19037
  last_email_at = (SELECT max(coalesce(sent_at, received_at)) FROM emails
@@ -19081,7 +19081,7 @@ var markEmailsRestored = /* @__PURE__ */ __name((database, accountId, externalId
19081
19081
  return threads.length;
19082
19082
  }, "markEmailsRestored");
19083
19083
 
19084
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19084
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-rules.js
19085
19085
  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");
19086
19086
  var conditionsKey = /* @__PURE__ */ __name((conditions) => JSON.stringify(sorted(conditions)), "conditionsKey");
19087
19087
  var ruleOf = /* @__PURE__ */ __name((row2) => ({
@@ -19148,7 +19148,7 @@ var mailRulesOver = /* @__PURE__ */ __name((database) => ({
19148
19148
  }
19149
19149
  }), "mailRulesOver");
19150
19150
 
19151
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19151
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-reviews.js
19152
19152
  var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates, reason, now2) => {
19153
19153
  database.prepare(`INSERT INTO link_reviews (linkable_type, linkable_id, entity_type, candidates, reason, status, created_at, updated_at)
19154
19154
  VALUES (?, ?, ?, ?, ?, 'open', ?, ?)
@@ -19156,7 +19156,7 @@ var reviewLink = /* @__PURE__ */ __name((database, linkable, entity, candidates,
19156
19156
  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);
19157
19157
  }, "reviewLink");
19158
19158
 
19159
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19159
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-operation.js
19160
19160
  function checkMeetingCancelled(signal) {
19161
19161
  if (!signal?.aborted)
19162
19162
  return;
@@ -19167,7 +19167,7 @@ function checkMeetingCancelled(signal) {
19167
19167
  }
19168
19168
  __name(checkMeetingCancelled, "checkMeetingCancelled");
19169
19169
 
19170
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19170
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-values.js
19171
19171
  var meetingOf = /* @__PURE__ */ __name((row2) => ({
19172
19172
  id: Number(row2.id),
19173
19173
  accountId: Number(row2.account_id),
@@ -19217,7 +19217,7 @@ var transcriptRowOf = /* @__PURE__ */ __name((row2) => ({
19217
19217
  createdAt: Number(row2.created_at)
19218
19218
  }), "transcriptRowOf");
19219
19219
 
19220
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19220
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-reads.js
19221
19221
  var MEETING_TEXT = ["external_id", "title", "description", "location", "join_url", "timezone", "metadata"];
19222
19222
  var TRANSCRIPT_TEXT = ["source", "format", "language", "content_hash", "metadata"];
19223
19223
  var ROW_TEXT = ["speaker_name", "text", "normalized_text", "metadata"];
@@ -19384,7 +19384,7 @@ var meetingReadsOver = /* @__PURE__ */ __name(({ database }) => ({
19384
19384
  }
19385
19385
  }), "meetingReadsOver");
19386
19386
 
19387
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19387
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-selection.js
19388
19388
  var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19389
19389
  const clauses = ["m.account_id=?", "m.deleted_at IS NULL"];
19390
19390
  const params = [input.accountId];
@@ -19427,7 +19427,7 @@ var meetingSelectionSql = /* @__PURE__ */ __name((input) => {
19427
19427
  return { clauses, params };
19428
19428
  }, "meetingSelectionSql");
19429
19429
 
19430
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19430
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-chat-lines.js
19431
19431
  var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19432
19432
  async meetingChatLines(input) {
19433
19433
  checkMeetingCancelled(input.signal);
@@ -19455,7 +19455,7 @@ var meetingChatLinesOver = /* @__PURE__ */ __name(({ database }) => ({
19455
19455
  }
19456
19456
  }), "meetingChatLinesOver");
19457
19457
 
19458
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19458
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/reads.js
19459
19459
  var MESSAGE_FIELDS = {
19460
19460
  pk: messages.id,
19461
19461
  nativeId: messages.externalId,
@@ -19626,7 +19626,7 @@ var chatActivity = /* @__PURE__ */ __name(({ database }, accountKey, since, wher
19626
19626
  storedAt: toIso(Number(database.prepare("SELECT max(created_at) AS at FROM messages WHERE account_id = ?").get(accountKey)?.at) || null)
19627
19627
  }), "chatActivity");
19628
19628
 
19629
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19629
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/search.js
19630
19630
  var HIT_FIELDS = {
19631
19631
  ...MESSAGE_FIELDS,
19632
19632
  chatTitle: sql`${chats.title}`.as("chat_title"),
@@ -19725,7 +19725,7 @@ var directReplies = /* @__PURE__ */ __name((context, parents, limit) => {
19725
19725
  };
19726
19726
  }, "directReplies");
19727
19727
 
19728
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19728
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-links.js
19729
19729
  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");
19730
19730
  var required = /* @__PURE__ */ __name((context, ref3) => {
19731
19731
  const found2 = identityRow(context, ref3);
@@ -19856,7 +19856,7 @@ var mentioning = /* @__PURE__ */ __name((context, accountKey, { id: id2, usernam
19856
19856
  }, "mentioning");
19857
19857
  var escaped = /* @__PURE__ */ __name((text6) => text6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
19858
19858
 
19859
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19859
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-context-links.js
19860
19860
  var missing2 = /* @__PURE__ */ __name(() => {
19861
19861
  throw new CliError("not_found", "Meeting, participant or selected target not found");
19862
19862
  }, "missing");
@@ -19978,7 +19978,7 @@ function meetingContextLinksOver(context) {
19978
19978
  }
19979
19979
  __name(meetingContextLinksOver, "meetingContextLinksOver");
19980
19980
 
19981
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19981
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-index-values.js
19982
19982
  var INDEX_CODES = { meeting_transcript_row: 1, meeting_chat_message: 2, meeting_summary: 3 };
19983
19983
  var meetingRowid = /* @__PURE__ */ __name((type, id2) => id2 * 4 + INDEX_CODES[type], "meetingRowid");
19984
19984
  var summaryOf = /* @__PURE__ */ __name((row2) => ({
@@ -20007,7 +20007,7 @@ var indexedText = /* @__PURE__ */ __name((database, type, id2) => {
20007
20007
  return row2 ? summaryText(summaryOf(row2)) : null;
20008
20008
  }, "indexedText");
20009
20009
 
20010
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20010
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stem-state.js
20011
20011
  var summaryBytes = ["title", "overview", "sections", "next_steps", "content"].map((key2) => `coalesce(length(CAST(s.${key2} AS BLOB)),0)`).join("+");
20012
20012
  var meetingCurrentIndexRows = `
20013
20013
  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
@@ -20038,7 +20038,7 @@ var invalidateMeetingStems = /* @__PURE__ */ __name((database, type, id2) => {
20038
20038
  }, "invalidateMeetingStems");
20039
20039
  var meetingStemmableText = /* @__PURE__ */ __name((text6) => text6.replace(/[\p{L}\p{N}\p{M}\p{Co}]+/gu, (token) => token.length <= 1024 ? token : ""), "meetingStemmableText");
20040
20040
 
20041
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20041
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-index.js
20042
20042
  function meetingHitIndexOver({ database, now: now2 }) {
20043
20043
  return {
20044
20044
  async indexSearch(original) {
@@ -20106,10 +20106,10 @@ function meetingHitIndexOver({ database, now: now2 }) {
20106
20106
  }
20107
20107
  __name(meetingHitIndexOver, "meetingHitIndexOver");
20108
20108
 
20109
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20109
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20110
20110
  import { createHash as createHash5 } from "node:crypto";
20111
20111
 
20112
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20112
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/trigrams.js
20113
20113
  var trigrams = /* @__PURE__ */ __name((term) => {
20114
20114
  const padded = ` ${term} `;
20115
20115
  const pieces = /* @__PURE__ */ new Set();
@@ -20118,7 +20118,7 @@ var trigrams = /* @__PURE__ */ __name((term) => {
20118
20118
  return [...pieces];
20119
20119
  }, "trigrams");
20120
20120
 
20121
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/correct.js
20121
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/correct.js
20122
20122
  var SHORTEST_CORRECTION = 3;
20123
20123
  var maxEdits = /* @__PURE__ */ __name((word2) => word2.length <= 4 ? 1 : 2, "maxEdits");
20124
20124
  var editDistance = /* @__PURE__ */ __name((a, b, max) => {
@@ -20165,7 +20165,7 @@ var correctWords = /* @__PURE__ */ __name(async (vocabulary, words3) => {
20165
20165
  return corrections;
20166
20166
  }, "correctWords");
20167
20167
 
20168
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/garbled.js
20168
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/garbled.js
20169
20169
  var SHORTEST_GARBLED = 4;
20170
20170
  var MOST_WIDENED = 64;
20171
20171
  var plain = /* @__PURE__ */ __name((word2) => word2.replaceAll("\u044D", "\u0435"), "plain");
@@ -20257,7 +20257,7 @@ var widenWords = /* @__PURE__ */ __name((probes, vocabulary, stem, known2) => {
20257
20257
  return found2.map((words3) => words3.sort((a, b) => a.distance - b.distance || b.docs - a.docs || a.term.localeCompare(b.term)).slice(0, MOST_WIDENED).map((word2) => word2.term));
20258
20258
  }, "widenWords");
20259
20259
 
20260
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20260
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/russian-dictionary.js
20261
20261
  import { readFileSync } from "node:fs";
20262
20262
  var loaded;
20263
20263
  var dictionary = /* @__PURE__ */ __name(() => {
@@ -20316,7 +20316,7 @@ var knownRussianWord = /* @__PURE__ */ __name((word2) => {
20316
20316
  return false;
20317
20317
  }, "knownRussianWord");
20318
20318
 
20319
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20319
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-query.js
20320
20320
  var WORD3 = /[\p{L}\p{N}\p{M}]+/gu;
20321
20321
  var MOST_WORDS = 128;
20322
20322
  var quote = /* @__PURE__ */ __name((word2) => `"${word2.replaceAll('"', '""')}"`, "quote");
@@ -20543,7 +20543,7 @@ var matchMeetingText = /* @__PURE__ */ __name((tree, text6, stemmer) => {
20543
20543
  return check3(tree);
20544
20544
  }, "matchMeetingText");
20545
20545
 
20546
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20546
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-hit-search.js
20547
20547
  var fail3 = /* @__PURE__ */ __name((message2) => {
20548
20548
  throw new CliError("validation_error", message2);
20549
20549
  }, "fail");
@@ -20725,7 +20725,7 @@ function meetingHitSearchOver({ database }) {
20725
20725
  }
20726
20726
  __name(meetingHitSearchOver, "meetingHitSearchOver");
20727
20727
 
20728
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20728
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-languages.js
20729
20729
  var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20730
20730
  async fillTranscriptLanguages({ accountId, apply, now: now2 }) {
20731
20731
  positiveReadInteger(accountId, "accountId");
@@ -20757,7 +20757,7 @@ var meetingLanguagesOver = /* @__PURE__ */ __name(({ database }) => ({
20757
20757
  }
20758
20758
  }), "meetingLanguagesOver");
20759
20759
 
20760
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20760
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-participant-search.js
20761
20761
  import { createHash as createHash6 } from "node:crypto";
20762
20762
  var cursorOf2 = /* @__PURE__ */ __name((value, key2) => {
20763
20763
  if (value === void 0)
@@ -20847,7 +20847,7 @@ var meetingParticipantSearchOver = /* @__PURE__ */ __name((context) => ({
20847
20847
  }
20848
20848
  }), "meetingParticipantSearchOver");
20849
20849
 
20850
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20850
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-context-queries.js
20851
20851
  var preparationQueries = {
20852
20852
  participants: {
20853
20853
  fields: "p.id, p.identity_id, p.display_name, l.person_id",
@@ -20897,7 +20897,7 @@ var preparationQueries = {
20897
20897
  }
20898
20898
  };
20899
20899
 
20900
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20900
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-context.js
20901
20901
  var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20902
20902
  async preparationContext(original) {
20903
20903
  const input = validateMeetingPreparationContext(original);
@@ -20938,7 +20938,7 @@ var meetingPreparationContextOver = /* @__PURE__ */ __name(({ database }) => ({
20938
20938
  }
20939
20939
  }), "meetingPreparationContextOver");
20940
20940
 
20941
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20941
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/preparation-subjects.js
20942
20942
  var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20943
20943
  SELECT m.id FROM meetings m JOIN meeting_series s ON s.id=m.meeting_series_id
20944
20944
  WHERE m.id IN (${Array.from({ length: anchors }, () => "?").join(",")}) AND m.account_id=? AND s.account_id=?
@@ -20952,7 +20952,7 @@ var preparationSubjects = /* @__PURE__ */ __name((anchors) => `WITH anchors AS (
20952
20952
  JOIN main.projects p ON p.id=l.to_id WHERE p.account_id IS NULL AND p.deleted_at IS NULL
20953
20953
  )`, "preparationSubjects");
20954
20954
 
20955
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20955
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-knowledge.js
20956
20956
  var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => ({
20957
20957
  async preparationKnowledge(original) {
20958
20958
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -20997,7 +20997,7 @@ var meetingPreparationKnowledgeOver = /* @__PURE__ */ __name(({ database }) => (
20997
20997
  }
20998
20998
  }), "meetingPreparationKnowledgeOver");
20999
20999
 
21000
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21000
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-preparation-notes.js
21001
21001
  var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21002
21002
  async preparationNotes(original) {
21003
21003
  const { accountId, seriesId, anchorIds, after: after2, before: before2, limit, maxReadBytes, signal } = validateMeetingRelatedHistory(original);
@@ -21050,7 +21050,7 @@ var meetingPreparationNotesOver = /* @__PURE__ */ __name(({ database }) => ({
21050
21050
  }
21051
21051
  }), "meetingPreparationNotesOver");
21052
21052
 
21053
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21053
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-related-history.js
21054
21054
  var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21055
21055
  async relatedHistory(original) {
21056
21056
  const input = validateMeetingRelatedHistory(original);
@@ -21121,7 +21121,7 @@ var meetingRelatedHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21121
21121
  }
21122
21122
  }), "meetingRelatedHistoryOver");
21123
21123
 
21124
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21124
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-review.js
21125
21125
  var number2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : Number(value), "number");
21126
21126
  var text2 = /* @__PURE__ */ __name((value) => value === null || value === void 0 ? null : String(value), "text");
21127
21127
  var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
@@ -21202,7 +21202,7 @@ var meetingReviewOver = /* @__PURE__ */ __name(({ database }) => ({
21202
21202
  }
21203
21203
  }), "meetingReviewOver");
21204
21204
 
21205
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21205
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-series-history.js
21206
21206
  var bytes2 = "length(CAST(external_id AS BLOB)) + coalesce(length(CAST(title AS BLOB)), 0)";
21207
21207
  var ensureBytes2 = /* @__PURE__ */ __name((size2, budget) => {
21208
21208
  if (!Number.isSafeInteger(size2) || size2 < 0 || size2 > budget)
@@ -21256,7 +21256,7 @@ var meetingSeriesHistoryOver = /* @__PURE__ */ __name(({ database }) => ({
21256
21256
  }
21257
21257
  }), "meetingSeriesHistoryOver");
21258
21258
 
21259
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21259
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-stats.js
21260
21260
  var MOST_ROWS = 5e5;
21261
21261
  var meetingCountsSql = /* @__PURE__ */ __name((where) => `SELECT m.started_at, coalesce(m.duration_ms, m.ended_at - m.started_at) AS duration_ms,
21262
21262
  EXISTS (SELECT 1 FROM meeting_transcripts t WHERE t.meeting_id = m.id AND t.deleted_at IS NULL
@@ -21325,7 +21325,7 @@ var meetingStatsOver = /* @__PURE__ */ __name(({ database }) => ({
21325
21325
  }
21326
21326
  }), "meetingStatsOver");
21327
21327
 
21328
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21328
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meetings.js
21329
21329
  var CURSOR_KEY = "meetings";
21330
21330
  var seriesOf2 = /* @__PURE__ */ __name((row2) => ({
21331
21331
  id: Number(row2.id),
@@ -21894,7 +21894,7 @@ var meetingStoreOver = /* @__PURE__ */ __name((context) => {
21894
21894
  };
21895
21895
  }, "meetingStoreOver");
21896
21896
 
21897
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21897
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/sync.js
21898
21898
  var syncStateOf = /* @__PURE__ */ __name(({ orm }, accountKey, name) => {
21899
21899
  const row2 = orm.select({ value: syncCursors.value, at: syncCursors.updatedAt }).from(syncCursors).where(and(eq(syncCursors.accountId, accountKey), eq(syncCursors.key, name))).get();
21900
21900
  return row2 ? { value: row2.value, at: toIso(row2.at) } : void 0;
@@ -21920,7 +21920,7 @@ var release = /* @__PURE__ */ __name(({ orm }, chatKey, anchor, holder) => {
21920
21920
  orm.delete(fetchLeases).where(and(eq(fetchLeases.chatId, chatKey), eq(fetchLeases.anchor, anchor), eq(fetchLeases.holder, holder))).run();
21921
21921
  }, "release");
21922
21922
 
21923
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21923
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/thread-columns.js
21924
21924
  var THREAD_COLUMNS = {
21925
21925
  subject: {
21926
21926
  where: /* @__PURE__ */ __name(({ value }) => ({
@@ -21937,7 +21937,7 @@ var threadRows = /* @__PURE__ */ __name((database, filter) => {
21937
21937
  AND (${filter.where?.sql ?? "1"}) ORDER BY coalesce(last_email_at, 0) DESC, id DESC LIMIT ? OFFSET ?`).all(filter.accountId ?? null, filter.accountId ?? null, filter.includeDeleted ? 1 : 0, ...filter.where?.params ?? [], limit, offset);
21938
21938
  }, "threadRows");
21939
21939
 
21940
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21940
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/emails.js
21941
21941
  var threadConversation = /* @__PURE__ */ __name((place, builtAt) => ({
21942
21942
  id: `email:${place.emailId}`,
21943
21943
  chatId: place.threadExternalId,
@@ -22493,7 +22493,7 @@ var mailStoreOver = /* @__PURE__ */ __name(({ database, orm, now: now2 }, stemme
22493
22493
  }
22494
22494
  }), "mailStoreOver");
22495
22495
 
22496
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22496
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/search/dictionary.js
22497
22497
  import { readFileSync as readFileSync2 } from "node:fs";
22498
22498
  var DICTIONARIES = Object.fromEntries(LANGUAGES.map(({ name, dictionary: dictionary3 }) => [name, dictionary3]));
22499
22499
  var folded4 = /* @__PURE__ */ __name((word2) => /^[а-яё'-]*$/.test(word2) ? word2.replaceAll("\u0451", "\u0435").replaceAll("\u0439", "\u0438") : fold(word2), "folded");
@@ -22583,7 +22583,7 @@ var knownWord = /* @__PURE__ */ __name((languages) => {
22583
22583
  }, "knownWord");
22584
22584
  var dictionaryLanguages = /* @__PURE__ */ __name((stemmers) => [stemmers.cyrillic, ...stemmers.latin.split(",")].filter((name) => Object.hasOwn(DICTIONARIES, name)), "dictionaryLanguages");
22585
22585
 
22586
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22586
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcript-query.js
22587
22587
  var predicates = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? [node] : node.clauses.flatMap(({ node: node2 }) => predicates(node2)), "predicates");
22588
22588
  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");
22589
22589
  var LATIN_NUMBERS = new Set(`zero one two three four five six seven eight nine ten eleven twelve twenty thirty forty fifty sixty seventy
@@ -22669,7 +22669,7 @@ var spokenTranscripts = /* @__PURE__ */ __name((database, item, speaking, keys)
22669
22669
  return found2;
22670
22670
  }, "spokenTranscripts");
22671
22671
 
22672
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22672
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/hit-places.js
22673
22673
  var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, found2, pks) => {
22674
22674
  const placeLeaves = leaves.filter(({ node }) => (node.operator === "term" || node.operator === "phrase") && (node.implicit || node.field === "content" || node.field === "transcript"));
22675
22675
  if (!placeLeaves.length || !pks.length || found2.length !== pks.length)
@@ -22716,7 +22716,7 @@ var placeHits = /* @__PURE__ */ __name((database, corpus, leaves, transcripts, f
22716
22716
  });
22717
22717
  }, "placeHits");
22718
22718
 
22719
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22719
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene-groups.js
22720
22720
  var GROUPS = {
22721
22721
  chat: {
22722
22722
  key: "m.chat_id",
@@ -22738,7 +22738,7 @@ var GROUPS = {
22738
22738
  }
22739
22739
  };
22740
22740
 
22741
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22741
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/lucene.js
22742
22742
  var MESSAGES2 = {
22743
22743
  rows: "messages",
22744
22744
  threads: "chats",
@@ -23221,7 +23221,7 @@ var runCompiled = /* @__PURE__ */ __name(async (context, execution, by) => {
23221
23221
  };
23222
23222
  }, "runCompiled");
23223
23223
 
23224
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23224
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/counters.js
23225
23225
  function invalidMetadata() {
23226
23226
  throw new CliError("validation_error", "stored counter metadata is malformed \u2014 check the store before refreshing");
23227
23227
  }
@@ -23323,7 +23323,7 @@ var counterTargets = /* @__PURE__ */ __name((context, execution, options) => wit
23323
23323
  };
23324
23324
  }), "counterTargets");
23325
23325
 
23326
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23326
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachment-texts.js
23327
23327
  var NOT_FILE_LIST = [...NOT_FILES].map((kind4) => `'${kind4}'`).join(",");
23328
23328
  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,
23329
23329
  att.size, att.local_path, att.extraction AS origin, att.size AS read_bytes, att.extraction_error AS error, att.content_sha256, att.extractor
@@ -23442,7 +23442,7 @@ var attachmentViews = /* @__PURE__ */ __name(({ database }, accountKey, { chatKe
23442
23442
  }));
23443
23443
  }, "attachmentViews");
23444
23444
 
23445
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23445
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/transcripts.js
23446
23446
  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");
23447
23447
  var keepTranscript = /* @__PURE__ */ __name((context, chatKey, messageId, text6, source2) => {
23448
23448
  const { orm, database, now: now2 } = context;
@@ -23480,7 +23480,7 @@ var intoVoiceAttachment = /* @__PURE__ */ __name((context, messagePk) => {
23480
23480
  keepText(context, Number(row2.id), { text: String(row2.text), origin: "extracted", extractor: `speech:${row2.source}` });
23481
23481
  }, "intoVoiceAttachment");
23482
23482
 
23483
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23483
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/messages.js
23484
23484
  var FIELDS = [
23485
23485
  "threadExternalId",
23486
23486
  "senderIdentityId",
@@ -23797,7 +23797,7 @@ var writeDerivedReactions = /* @__PURE__ */ __name((context, chatKey, messageId)
23797
23797
  reactionStatementsOf(context.database).total.run(JSON.stringify(derived), chatKey, messageId);
23798
23798
  }, "writeDerivedReactions");
23799
23799
 
23800
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/keys.js
23800
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/keys.js
23801
23801
  var keysOver = /* @__PURE__ */ __name((context) => {
23802
23802
  const findAccountPk2 = /* @__PURE__ */ __name((key2) => findAccountPk(context, key2), "findAccountPk");
23803
23803
  const findChatPk2 = /* @__PURE__ */ __name((accountKey, chatId) => findChatPk(context, accountKey, chatId), "findChatPk");
@@ -23818,7 +23818,7 @@ var keysOver = /* @__PURE__ */ __name((context) => {
23818
23818
  };
23819
23819
  }, "keysOver");
23820
23820
 
23821
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23821
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/account-groups.js
23822
23822
  var accountGroupsOf = /* @__PURE__ */ __name((database) => {
23823
23823
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(ACCOUNT_GROUPS);
23824
23824
  if (!row2)
@@ -23853,7 +23853,7 @@ var saveProfile = /* @__PURE__ */ __name((database, app, profile, key2, now2) =>
23853
23853
  database.prepare("INSERT OR REPLACE INTO store_settings (key, value, at) VALUES (?, ?, ?)").run(PROFILES, JSON.stringify(profiles), now2);
23854
23854
  }, "saveProfile");
23855
23855
 
23856
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23856
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/actors.js
23857
23857
  var BOT_KINDS = ["agent", "rule", "script", "integration"];
23858
23858
  var ownerPerson = /* @__PURE__ */ __name((database) => {
23859
23859
  const found2 = database.prepare("SELECT id FROM persons WHERE owner = 1 ORDER BY id LIMIT 1").get();
@@ -23910,7 +23910,7 @@ var proposedBySql = /* @__PURE__ */ __name((type, id2, by) => {
23910
23910
  return { sql: bot("pb.name = ?"), params: [by.bot] };
23911
23911
  }, "proposedBySql");
23912
23912
 
23913
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23913
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/own-identities.js
23914
23914
  var linkOwnIdentities = /* @__PURE__ */ __name((context) => {
23915
23915
  const owner = ownerPerson(context.database).id;
23916
23916
  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);
@@ -23931,7 +23931,7 @@ var linkToOwner = /* @__PURE__ */ __name((context, ref3) => {
23931
23931
  return personOf(context, ref3);
23932
23932
  }, "linkToOwner");
23933
23933
 
23934
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23934
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/providers.js
23935
23935
  var PROVIDERS_SETTING = "providers";
23936
23936
  var storedProvidersOf = /* @__PURE__ */ __name((database) => {
23937
23937
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(PROVIDERS_SETTING);
@@ -23966,7 +23966,7 @@ var registerProvider = /* @__PURE__ */ __name((database, value, now2) => {
23966
23966
  });
23967
23967
  }, "registerProvider");
23968
23968
 
23969
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23969
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-candidates.js
23970
23970
  var DAY3 = 864e5;
23971
23971
  var RECENTLY_CLOSED_MS = 14 * DAY3;
23972
23972
  var TEXT_LIMIT = 20;
@@ -24165,7 +24165,7 @@ var taskSimilarityOver = /* @__PURE__ */ __name((context) => {
24165
24165
  };
24166
24166
  }, "taskSimilarityOver");
24167
24167
 
24168
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24168
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-category-settings.js
24169
24169
  var SETTING3 = "taskCategories";
24170
24170
  var savedTaskCategories = /* @__PURE__ */ __name((database) => {
24171
24171
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(SETTING3);
@@ -24184,7 +24184,7 @@ var saveTaskCategories = /* @__PURE__ */ __name((database, categories, now2) =>
24184
24184
  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);
24185
24185
  }, "saveTaskCategories");
24186
24186
 
24187
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24187
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close.js
24188
24188
  var DEFAULT_AGENT_CLOSE = { allowed: true, min: 0.8 };
24189
24189
  var ALLOWED = "taskAgentClose";
24190
24190
  var MIN = "taskAgentCloseMin";
@@ -24240,10 +24240,10 @@ var SUGGESTION_COLUMNS = [
24240
24240
  ];
24241
24241
  var CLEAR_SUGGESTION = SUGGESTION_COLUMNS.map((column2) => `${column2} = NULL`).join(", ");
24242
24242
 
24243
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24243
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/mail-findings.js
24244
24244
  var MAIL_FINDINGS_KIND = "mail_findings";
24245
24245
 
24246
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/decisions.js
24246
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/decisions.js
24247
24247
  var TASK_CLOSE_KIND = "task_close";
24248
24248
  var DEFAULT_DECISION_POLICY = { agentDecisions: false, ruleProposalsOwnerOnly: true };
24249
24249
  var isOwnerOnlyKind = /* @__PURE__ */ __name((kind4) => kind4 === MAIL_FINDINGS_KIND || kind4 === MEETING_FINDINGS_KIND || kind4 === TASK_CLOSE_KIND, "isOwnerOnlyKind");
@@ -24291,7 +24291,7 @@ var assertMayDecide = /* @__PURE__ */ __name((row2, by, policy = DEFAULT_DECISIO
24291
24291
  }, "assertMayDecide");
24292
24292
  var deciderAuthor = /* @__PURE__ */ __name((by) => by === "owner" ? "owner" : { bot: by.bot, ...by.model === void 0 ? {} : { model: by.model } }, "deciderAuthor");
24293
24293
 
24294
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24294
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/ref-summaries.js
24295
24295
  var PROFILE_PLACEHOLDER = "<profile>";
24296
24296
  var oneLine = /* @__PURE__ */ __name((text6) => singleLine(text6.replace(/\s+/g, " ").trim()), "oneLine");
24297
24297
  var openKind = /* @__PURE__ */ __name((kind4) => kind4 === "email" ? "message" : kind4 === "email_thread" ? "chat" : kind4 === "unknown" ? void 0 : kind4, "openKind");
@@ -24344,7 +24344,7 @@ var refLabel = /* @__PURE__ */ __name((summary) => {
24344
24344
  return `${WORDS2[summary.kind]} ${named2}${notes2 === "" ? "" : ` (${notes2})`}`;
24345
24345
  }, "refLabel");
24346
24346
 
24347
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24347
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ref-summaries.js
24348
24348
  var EXCERPT_CHARS = 280;
24349
24349
  var TITLE_CHARS = 120;
24350
24350
  var MEMORY_TITLE_CHARS = 80;
@@ -24705,7 +24705,7 @@ var refReadsOf = /* @__PURE__ */ __name((database, texts2, { excerpt = false } =
24705
24705
  var summaryOf2 = /* @__PURE__ */ __name(({ sender, excerpt, ...summary }, withExcerpt) => withExcerpt ? { ...summary, excerpt } : summary, "summaryOf");
24706
24706
  var refSummariesOf = /* @__PURE__ */ __name((database, texts2, options = {}) => new Map([...refReadsOf(database, texts2, options)].map(([text6, read2]) => [text6, summaryOf2(read2, options.excerpt === true)])), "refSummariesOf");
24707
24707
 
24708
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24708
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-sources.js
24709
24709
  var sourceOf3 = /* @__PURE__ */ __name((read2, ref3) => ({
24710
24710
  ref: ref3,
24711
24711
  kind: read2.kind,
@@ -24741,7 +24741,7 @@ var evidenceSourcesOf = /* @__PURE__ */ __name((database, from2) => {
24741
24741
  });
24742
24742
  }, "evidenceSourcesOf");
24743
24743
 
24744
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24744
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/attachments/limits.js
24745
24745
  var MAX_FILE_BYTES = 50 * 1024 * 1024;
24746
24746
  var MAX_TEXT_CHARS = 2e6;
24747
24747
  var ATTACHMENT_LIMIT_ENV = [
@@ -24767,7 +24767,7 @@ var pdfPreviewLimits = /* @__PURE__ */ __name((env = process.env) => {
24767
24767
  return { pixels, bytes: positive(env, "MESSAGING_PDF_PREVIEW_MAX_MIB", 8 * 1024 * 1024, 1024 * 1024) };
24768
24768
  }, "pdfPreviewLimits");
24769
24769
 
24770
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/ulid.js
24770
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/ulid.js
24771
24771
  import { randomBytes } from "node:crypto";
24772
24772
  var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
24773
24773
  var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
@@ -24780,7 +24780,7 @@ var ulid = /* @__PURE__ */ __name((now2 = Date.now()) => {
24780
24780
  return time3 + random;
24781
24781
  }, "ulid");
24782
24782
 
24783
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24783
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-metadata.js
24784
24784
  var FOLDED_FIELDS = ["title", "site", "language", "author"];
24785
24785
  var encodeDocumentMetadata = /* @__PURE__ */ __name((meta, sections) => {
24786
24786
  if (!meta && !sections?.length)
@@ -24801,7 +24801,7 @@ var languageOf = /* @__PURE__ */ __name((meta) => {
24801
24801
  return typeof language === "string" && language !== "" ? language : null;
24802
24802
  }, "languageOf");
24803
24803
 
24804
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24804
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/files.js
24805
24805
  var isObject = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isObject");
24806
24806
  var objectOf2 = /* @__PURE__ */ __name((value) => {
24807
24807
  if (isObject(value))
@@ -25044,7 +25044,7 @@ var filesStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
25044
25044
  };
25045
25045
  }, "filesStoreOver");
25046
25046
 
25047
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25047
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/imported-documents.js
25048
25048
  var IMPORTED_DOCUMENT_QUERY = defineQuery({
25049
25049
  entity: "document",
25050
25050
  backend: "sql",
@@ -25090,7 +25090,7 @@ var importedDocumentWhere = /* @__PURE__ */ __name((database, query) => {
25090
25090
  return queryFilter(validateQuery(query, IMPORTED_DOCUMENT_QUERY), columns);
25091
25091
  }, "importedDocumentWhere");
25092
25092
 
25093
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25093
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/notes.js
25094
25094
  var NOTE_FORMATS = ["obsidian", "markdown"];
25095
25095
  var iso2 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25096
25096
  var optionalIso = /* @__PURE__ */ __name((value) => value == null ? null : iso2(value), "optionalIso");
@@ -25616,7 +25616,7 @@ var notesStoreOver = /* @__PURE__ */ __name((context) => {
25616
25616
  };
25617
25617
  }, "notesStoreOver");
25618
25618
 
25619
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25619
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/memories.js
25620
25620
  var NAMED = "SELECT m.*, b.name AS author_name, b.kind AS author_kind FROM memories m LEFT JOIN bots b ON m.author_type = 'bot' AND b.id = m.author_id";
25621
25621
  var iso3 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
25622
25622
  var oneOf2 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -25838,7 +25838,7 @@ var memoriesStoreOver = /* @__PURE__ */ __name((context) => {
25838
25838
  };
25839
25839
  }, "memoriesStoreOver");
25840
25840
 
25841
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25841
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-first-pass.js
25842
25842
  var DEFAULT_FIRST_PASS_PER_CHAT = 0;
25843
25843
  var KEY = "taskFirstPassPerChat";
25844
25844
  var firstPassPerChatOf = /* @__PURE__ */ __name((value, setting = "task_first_pass_per_chat") => {
@@ -25858,7 +25858,7 @@ var saveFirstPassPerChat = /* @__PURE__ */ __name((database, value, now2) => {
25858
25858
  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);
25859
25859
  }, "saveFirstPassPerChat");
25860
25860
 
25861
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25861
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-board.js
25862
25862
  var TASK_SORTS = ["priority", "due", "created", "updated", "key", "state"];
25863
25863
  var field = /* @__PURE__ */ __name((name, type, example, more = {}) => ({
25864
25864
  name,
@@ -26081,7 +26081,7 @@ var withoutField = /* @__PURE__ */ __name((query, name) => {
26081
26081
  return root === void 0 ? void 0 : { ...query, root };
26082
26082
  }, "withoutField");
26083
26083
 
26084
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26084
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-comments.js
26085
26085
  var authorNamed = /* @__PURE__ */ __name((database, row2) => {
26086
26086
  if (row2.author_type == null)
26087
26087
  return null;
@@ -26109,7 +26109,7 @@ var addComment = /* @__PURE__ */ __name((context, task, body2, by) => {
26109
26109
  return commentsOf(database, task).find((one2) => one2.ref === `note:${made}`);
26110
26110
  }, "addComment");
26111
26111
 
26112
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26112
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-relations.js
26113
26113
  var TASK_RELATION_KINDS = [
26114
26114
  "blocked-by",
26115
26115
  "follow-up-of",
@@ -26239,7 +26239,7 @@ var taskRelationsStoreOver = /* @__PURE__ */ __name((context, record4) => {
26239
26239
  };
26240
26240
  }, "taskRelationsStoreOver");
26241
26241
 
26242
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26242
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/work-tasks.js
26243
26243
  var TASK_ROLES = ["assignee", "reviewer", "watcher"];
26244
26244
  var iso4 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
26245
26245
  var recordTaskEvent = /* @__PURE__ */ __name((database, task, actor, kind4, changes, at) => {
@@ -26759,7 +26759,7 @@ var workTasksOver = /* @__PURE__ */ __name((context) => {
26759
26759
  };
26760
26760
  }, "workTasksOver");
26761
26761
 
26762
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26762
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-close-store.js
26763
26763
  var taskCloseOver = /* @__PURE__ */ __name((context) => {
26764
26764
  const { database, now: now2 } = context;
26765
26765
  const liveRow = /* @__PURE__ */ __name((id2) => {
@@ -26808,7 +26808,7 @@ var taskCloseOver = /* @__PURE__ */ __name((context) => {
26808
26808
  };
26809
26809
  }, "taskCloseOver");
26810
26810
 
26811
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26811
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-pairs.js
26812
26812
  var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
26813
26813
  const { database, now: now2 } = context;
26814
26814
  const required3 = /* @__PURE__ */ __name((id2) => {
@@ -27026,7 +27026,7 @@ var taskPairsOver = /* @__PURE__ */ __name((context, similarity) => {
27026
27026
  };
27027
27027
  }, "taskPairsOver");
27028
27028
 
27029
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27029
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-stats.js
27030
27030
  var ACCOUNT_SCOPE = "t.package_id IS NOT NULL AND t.deleted_at IS NULL AND t.project_id = ?";
27031
27031
  var TASK_STATS_SQL = {
27032
27032
  rows: /* @__PURE__ */ __name((board, filter) => `SELECT t.source_group, t.source_kind, t.project_id, t.status, t.created_at, t.closed_at FROM tasks t WHERE ${board ? BOARD_SCOPE : ACCOUNT_SCOPE}${filter} ORDER BY t.created_at, t.id`, "rows"),
@@ -27065,7 +27065,7 @@ var taskStatsOver = /* @__PURE__ */ __name(({ database }, inbox) => ({
27065
27065
  }, "statNames")
27066
27066
  }), "taskStatsOver");
27067
27067
 
27068
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27068
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tasks.js
27069
27069
  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";
27070
27070
  var inboxProject = /* @__PURE__ */ __name(({ database, now: now2 }, account, create) => {
27071
27071
  const key2 = inboxKey(account);
@@ -27272,7 +27272,7 @@ var oneOf3 = /* @__PURE__ */ __name((values, value, column2) => {
27272
27272
  throw new CliError("configuration_error", `the store holds a task with an unknown ${column2} "${String(value)}"`);
27273
27273
  }, "oneOf");
27274
27274
 
27275
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/accounts.js
27275
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/accounts.js
27276
27276
  var accountAccountsOver = /* @__PURE__ */ __name((context) => {
27277
27277
  const { database } = context;
27278
27278
  const { accountPk: accountPk2, findAccountPk: findAccountPk2 } = keysOver(context);
@@ -27317,7 +27317,7 @@ var accountsStoreOver = /* @__PURE__ */ __name((context, keyed) => {
27317
27317
  };
27318
27318
  }, "accountsStoreOver");
27319
27319
 
27320
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27320
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/attachments.js
27321
27321
  var refColumn = /* @__PURE__ */ __name((ref3) => ref3 && Object.keys(ref3).length > 0 ? { providerRef: JSON.stringify(ref3) } : {}, "refColumn");
27322
27322
  var updatePlaced = /* @__PURE__ */ __name(({ orm }, chatKey, messageId, files2, change) => {
27323
27323
  const message2 = orm.select({ pk: messages.id }).from(messages).where(and(eq(messages.chatId, chatKey), eq(messages.externalId, messageId))).get();
@@ -27341,7 +27341,7 @@ var keepDownloads = /* @__PURE__ */ __name((context, chatKey, messageId, files2)
27341
27341
  })), "keepDownloads");
27342
27342
  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");
27343
27343
 
27344
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/attachments.js
27344
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/attachments.js
27345
27345
  var accountAttachmentsOver = /* @__PURE__ */ __name((context) => {
27346
27346
  const { database } = context;
27347
27347
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -27398,7 +27398,7 @@ var attachmentsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
27398
27398
  }, "keepAttachmentText")
27399
27399
  }), "attachmentsStoreOver");
27400
27400
 
27401
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27401
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-rekey.js
27402
27402
  var chatRow = /* @__PURE__ */ __name((context, accountKey, chatId) => context.database.prepare("SELECT * FROM chats WHERE account_id = ? AND external_id = ?").get(accountKey, chatId), "chatRow");
27403
27403
  var pointerMover = /* @__PURE__ */ __name((context, type) => {
27404
27404
  const statements = pointerPairs(context.database).filter(({ table }) => table !== "involvements").map(({ table, pointer }) => {
@@ -27578,7 +27578,7 @@ var rekeyChats = /* @__PURE__ */ __name((context, key2, accountKey, pairs, lockM
27578
27578
  return done;
27579
27579
  }, "rekeyChats");
27580
27580
 
27581
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27581
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/completeness.js
27582
27582
  var historyStartKey = /* @__PURE__ */ __name((chatId) => `history_start:${chatId}`, "historyStartKey");
27583
27583
  var fetchedKey = /* @__PURE__ */ __name((chatId) => `fetched:${chatId}`, "fetchedKey");
27584
27584
  var CHAT_LIST_KEY = "chat_list_complete";
@@ -27636,7 +27636,7 @@ var chatCoverage = /* @__PURE__ */ __name(({ database }, accountKey) => {
27636
27636
  return { ...coverage, oldestMessageAt: toIso(oldest) };
27637
27637
  }, "chatCoverage");
27638
27638
 
27639
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/chats.js
27639
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/chats.js
27640
27640
  var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27641
27641
  const { database } = context;
27642
27642
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, writeState: writeState2 } = keysOver(context);
@@ -27771,7 +27771,7 @@ var chatsStoreOver = /* @__PURE__ */ __name((context) => {
27771
27771
  };
27772
27772
  }, "chatsStoreOver");
27773
27773
 
27774
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27774
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/batches.js
27775
27775
  import { createHash as createHash7 } from "node:crypto";
27776
27776
  var BATCH_CONTEXT = 50;
27777
27777
  var replied = /* @__PURE__ */ __name((m) => sql`EXISTS (SELECT 1 FROM messages p WHERE p.chat_id = ${m}.chat_id
@@ -27909,7 +27909,7 @@ var saveAnswers = /* @__PURE__ */ __name((context, id2, answer) => {
27909
27909
  var clearAnswers = /* @__PURE__ */ __name(({ orm }, chatKey, model) => Number(orm.all(sql`DELETE FROM message_links WHERE chat_id = ${chatKey} AND source = 'agent'
27910
27910
  ${model === void 0 ? sql`` : sql`AND method = ${model}`} RETURNING 1 AS n`).length), "clearAnswers");
27911
27911
 
27912
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27912
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversations.js
27913
27913
  import { setTimeout } from "node:timers/promises";
27914
27914
  var position = /* @__PURE__ */ __name((sentAt, pk) => `${sentAt}:${pk}`, "position");
27915
27915
  var linkInputs = /* @__PURE__ */ __name(({ orm }, chatKey, { after: after2, limit }) => {
@@ -28221,7 +28221,7 @@ var agentAnswers = /* @__PURE__ */ __name(({ orm }, chatKey) => new Map(orm.all(
28221
28221
  AND NOT EXISTS (SELECT 1 FROM messages d
28222
28222
  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");
28223
28223
 
28224
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/conversations.js
28224
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/conversations.js
28225
28225
  var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28226
28226
  const { database } = context;
28227
28227
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -28328,7 +28328,7 @@ var conversationsStoreOver = /* @__PURE__ */ __name((context) => {
28328
28328
  };
28329
28329
  }, "conversationsStoreOver");
28330
28330
 
28331
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/counters.js
28331
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/counters.js
28332
28332
  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";
28333
28333
  var accountCountersOver = /* @__PURE__ */ __name((context) => {
28334
28334
  const { database } = context;
@@ -28353,7 +28353,7 @@ var countersStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28353
28353
  counterTargets: /* @__PURE__ */ __name(async (execution, options) => counterTargets(context, execution, options), "counterTargets")
28354
28354
  }), "countersStoreOver");
28355
28355
 
28356
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28356
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mentions.js
28357
28357
  var MENTION_STATUSES = ["found", "linked", "dismissed"];
28358
28358
  var MENTION_QUERY = defineQuery({
28359
28359
  entity: "mention",
@@ -28569,7 +28569,7 @@ var listPlaces = /* @__PURE__ */ __name((database, { limit, offset }) => {
28569
28569
  return { items: hasMore ? rows.slice(0, limit) : rows, hasMore };
28570
28570
  }, "listPlaces");
28571
28571
 
28572
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/mentions.js
28572
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/mentions.js
28573
28573
  var accountMentionsOver = /* @__PURE__ */ __name((context) => {
28574
28574
  const { database } = context;
28575
28575
  const { findAccountPk: findAccountPk2 } = keysOver(context);
@@ -28604,7 +28604,7 @@ var mentionsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28604
28604
  places: /* @__PURE__ */ __name(async (window) => listPlaces(context.database, window), "places")
28605
28605
  }), "mentionsStoreOver");
28606
28606
 
28607
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28607
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/document-links.js
28608
28608
  var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messageId) => {
28609
28609
  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");
28610
28610
  const rows = messageId === void 0 ? read2.all(chatKey) : read2.all(chatKey, messageId);
@@ -28619,7 +28619,7 @@ var documentLinkMessages = /* @__PURE__ */ __name(({ database }, chatKey, messag
28619
28619
  }));
28620
28620
  }, "documentLinkMessages");
28621
28621
 
28622
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28622
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/follow-ups.js
28623
28623
  var stemmerFor = stemmerCache();
28624
28624
  var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit }) => {
28625
28625
  if (wanted.length > 50 || !Number.isInteger(limit) || limit < 1 || limit > 100)
@@ -28663,7 +28663,7 @@ var laterSharingRare = /* @__PURE__ */ __name((context, wanted, { rareAt, limit
28663
28663
  });
28664
28664
  }, "laterSharingRare");
28665
28665
 
28666
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/messages.js
28666
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/messages.js
28667
28667
  var accountMessagesOver = /* @__PURE__ */ __name((context) => {
28668
28668
  const { database } = context;
28669
28669
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf, chatPkFor: chatPkFor2, answeredChatPk: answeredChatPk2, upsertMessage: upsertMessage2 } = keysOver(context);
@@ -28798,7 +28798,7 @@ var messagesStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
28798
28798
  laterSharingRare: /* @__PURE__ */ __name(async (wanted, options) => laterSharingRare(context, wanted, options), "laterSharingRare")
28799
28799
  }), "messagesStoreOver");
28800
28800
 
28801
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28801
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-preparation.js
28802
28802
  var GLOBAL_PROJECT = "SELECT id FROM main.projects WHERE account_id IS NULL AND deleted_at IS NULL";
28803
28803
  var iso5 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
28804
28804
  var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: accounts2, limit }) => {
@@ -28855,7 +28855,7 @@ var personPreparation = /* @__PURE__ */ __name(({ database }, uid, { accounts: a
28855
28855
  });
28856
28856
  }, "personPreparation");
28857
28857
 
28858
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28858
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/person-scope.js
28859
28859
  var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds) => {
28860
28860
  const id2 = Number(uid);
28861
28861
  if (!/^[1-9]\d*$/.test(uid) || !Number.isSafeInteger(id2) || !accountIds.length || accountIds.length > 1e3 || accountIds.some((account) => !Number.isSafeInteger(account) || account <= 0))
@@ -28863,7 +28863,7 @@ var personSeenInAccounts = /* @__PURE__ */ __name(({ database }, uid, accountIds
28863
28863
  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)));
28864
28864
  }, "personSeenInAccounts");
28865
28865
 
28866
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28866
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/private-people.js
28867
28867
  var required2 = /* @__PURE__ */ __name(({ database }, key2, personId) => {
28868
28868
  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);
28869
28869
  if (!row2)
@@ -28929,7 +28929,7 @@ var removeNote = /* @__PURE__ */ __name((context, key2, personId, id2) => {
28929
28929
  return { id: id2, personId, removed: true };
28930
28930
  }, "removeNote");
28931
28931
 
28932
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/people.js
28932
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/people.js
28933
28933
  var accountPeopleOver = /* @__PURE__ */ __name((context) => {
28934
28934
  const { database } = context;
28935
28935
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, identityPk: identityPk2 } = keysOver(context);
@@ -29014,13 +29014,13 @@ var peopleStoreOver = /* @__PURE__ */ __name((context, keyed) => {
29014
29014
  };
29015
29015
  }, "peopleStoreOver");
29016
29016
 
29017
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29017
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29018
29018
  import { createHash as createHash9 } from "node:crypto";
29019
29019
 
29020
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29020
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29021
29021
  import { createHash as createHash8 } from "node:crypto";
29022
29022
 
29023
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29023
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
29024
29024
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
29025
29025
  var AUTHOR_MEASURES = [
29026
29026
  "messages",
@@ -29160,7 +29160,7 @@ var withoutUrls = /* @__PURE__ */ __name((text6) => text6.replace(/\S+/gu, (toke
29160
29160
  var rankingWords = /* @__PURE__ */ __name((text6) => withoutUrls(text6).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
29161
29161
  var rankingQuestion = /* @__PURE__ */ __name((text6) => withoutUrls(text6).includes("?"), "rankingQuestion");
29162
29162
 
29163
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29163
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-graph.js
29164
29164
  var RANKING_GRAPH_LIMITS = { nodes: 5e4, depth: 256, work: 1e7, bytes: 8388608 };
29165
29165
  var exhausted2 = /* @__PURE__ */ __name((budget) => {
29166
29166
  throw new CliError("validation_error", `ranking exceeded ${budget} \u2014 narrow its chat or date scope`, {
@@ -29382,7 +29382,7 @@ var rankReplyGraph = /* @__PURE__ */ __name((nodes, check3 = () => {
29382
29382
  };
29383
29383
  }, "rankReplyGraph");
29384
29384
 
29385
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29385
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/admin-statistics.js
29386
29386
  var adminEntityKey = /* @__PURE__ */ __name((row2) => JSON.stringify([row2.account.provider, row2.account.account, row2.id]), "adminEntityKey");
29387
29387
  var personKey = /* @__PURE__ */ __name((node) => JSON.stringify([node.account.provider, node.account.account, node.sender]), "personKey");
29388
29388
  var locator = /* @__PURE__ */ __name((node) => formatLocator({ ...node.account, chat: node.chatId, message: node.id }), "locator");
@@ -29556,7 +29556,7 @@ var calculateAdminStatistics = /* @__PURE__ */ __name((nodes, stays, options, in
29556
29556
  return { items, evidence, summary, graph: graph.quality };
29557
29557
  }, "calculateAdminStatistics");
29558
29558
 
29559
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29559
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/rankings-range.js
29560
29560
  var rankingContextRange = /* @__PURE__ */ __name((root) => {
29561
29561
  const dates = [];
29562
29562
  const visit = /* @__PURE__ */ __name((node, required3) => {
@@ -29578,7 +29578,7 @@ var rankingContextRange = /* @__PURE__ */ __name((root) => {
29578
29578
  return dates[0].node.resolution.date;
29579
29579
  }, "rankingContextRange");
29580
29580
 
29581
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29581
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/rankings.js
29582
29582
  var reactionCounts = /* @__PURE__ */ __name((stored3) => {
29583
29583
  let counts;
29584
29584
  try {
@@ -29873,7 +29873,7 @@ var rankQuery = /* @__PURE__ */ __name((context, execution, request, inspect) =>
29873
29873
  });
29874
29874
  }, "rankQuery");
29875
29875
 
29876
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29876
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/admin-statistics.js
29877
29877
  function fail4(message2, reason = "query.too-large") {
29878
29878
  throw new CliError("validation_error", message2, { reason, complete: false });
29879
29879
  }
@@ -30050,7 +30050,7 @@ var adminStatisticsQuery = /* @__PURE__ */ __name((context, execution, request)
30050
30050
  return result;
30051
30051
  }), "adminStatisticsQuery");
30052
30052
 
30053
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30053
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/conversation-eligibility.js
30054
30054
  var conversationEligibility = /* @__PURE__ */ __name(async (context, execution) => {
30055
30055
  if (!execution.accounts.length)
30056
30056
  return { conversations: [], chats: [] };
@@ -30068,7 +30068,7 @@ var conversationEligibility = /* @__PURE__ */ __name(async (context, execution)
30068
30068
  return { conversations: conversations2, chats: chats2 };
30069
30069
  }, "conversationEligibility");
30070
30070
 
30071
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30071
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranking-evidence.js
30072
30072
  import { createHash as createHash10 } from "node:crypto";
30073
30073
  var EVIDENCE_BYTES = 64 * 1024;
30074
30074
  var FINGERPRINT_BYTES = 8 * 1024 * 1024;
@@ -30218,7 +30218,7 @@ var rankingEvidence = /* @__PURE__ */ __name((context, execution, request) => {
30218
30218
  return result;
30219
30219
  }, "rankingEvidence");
30220
30220
 
30221
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30221
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/reply-times.js
30222
30222
  var FAR = Number.MAX_SAFE_INTEGER;
30223
30223
  var chatsIn = /* @__PURE__ */ __name((scope3, kinds2) => {
30224
30224
  const params = [...scope3.accounts.flatMap(({ provider, account }) => [provider, account]), ...kinds2];
@@ -30312,7 +30312,7 @@ var waitingChats = /* @__PURE__ */ __name((context, scope3, waits, cap) => {
30312
30312
  });
30313
30313
  }, "waitingChats");
30314
30314
 
30315
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/queries.js
30315
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/queries.js
30316
30316
  var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30317
30317
  const mailIndexed = /* @__PURE__ */ __name((execution) => {
30318
30318
  if (execution.corpus === "mail")
@@ -30333,7 +30333,7 @@ var queriesStoreOver = /* @__PURE__ */ __name((context, stemmerFor2) => {
30333
30333
  };
30334
30334
  }, "queriesStoreOver");
30335
30335
 
30336
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30336
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/chat-events.js
30337
30337
  var saveChatEvents = /* @__PURE__ */ __name((context, accountKey, provider, chatKey, events3) => {
30338
30338
  const { database, now: now2 } = context;
30339
30339
  const insert = database.prepare(`INSERT INTO chat_events (chat_id, source_id, action, actor_identity_id, title, happened_at, created_at, updated_at)
@@ -30372,10 +30372,10 @@ var chatEventsOf = /* @__PURE__ */ __name(({ database }, chatKey, { since = 0, l
30372
30372
  }));
30373
30373
  }, "chatEventsOf");
30374
30374
 
30375
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30375
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30376
30376
  import { createHash as createHash11 } from "node:crypto";
30377
30377
 
30378
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30378
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/calendar.js
30379
30379
  var calendarKey = /* @__PURE__ */ __name((zone, by) => {
30380
30380
  const format = new Intl.DateTimeFormat("en-CA", {
30381
30381
  timeZone: zone,
@@ -30395,7 +30395,7 @@ var weekKey = /* @__PURE__ */ __name((day) => {
30395
30395
  return date3.toISOString().slice(0, 10);
30396
30396
  }, "weekKey");
30397
30397
 
30398
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/retention.js
30398
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/retention.js
30399
30399
  var RETENTION_TOLERANCE = 864e5;
30400
30400
  var validateRetentionOptions = /* @__PURE__ */ __name((options) => {
30401
30401
  const { since, until, cutoff, checkpoints, within, limit, by } = options;
@@ -30449,7 +30449,7 @@ var retentionCohorts = /* @__PURE__ */ __name((stays, options) => {
30449
30449
  return [...groups.values()].sort((a, b) => a.cohort.localeCompare(b.cohort));
30450
30450
  }, "retentionCohorts");
30451
30451
 
30452
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30452
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/retention.js
30453
30453
  var iso6 = /* @__PURE__ */ __name((at) => new Date(at).toISOString(), "iso");
30454
30454
  var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId, options, evidence) => {
30455
30455
  validateRetentionOptions(options);
@@ -30580,7 +30580,7 @@ var retentionQuery = /* @__PURE__ */ __name((context, accountPk2, chatPk, chatId
30580
30580
  };
30581
30581
  }, "retentionQuery");
30582
30582
 
30583
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30583
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/roster.js
30584
30584
  var iso7 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
30585
30585
  var marksOf = /* @__PURE__ */ __name(({ isBot, flagged, deleted, hasPhoto }) => ({
30586
30586
  ...isBot === void 0 ? {} : { bot: isBot },
@@ -30711,7 +30711,7 @@ var trackedChats = /* @__PURE__ */ __name((context, accountKey, where) => contex
30711
30711
  lastCount: memberCountsOf(context, pk).at(-1) ?? null
30712
30712
  })), "trackedChats");
30713
30713
 
30714
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/roster.js
30714
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/roster.js
30715
30715
  var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30716
30716
  const { database } = context;
30717
30717
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, writeMembers: writeMembers2 } = keysOver(context);
@@ -30767,7 +30767,7 @@ var rosterStoreOver = /* @__PURE__ */ __name((context) => {
30767
30767
  };
30768
30768
  }, "rosterStoreOver");
30769
30769
 
30770
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30770
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/backfill.js
30771
30771
  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");
30772
30772
  var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatch, until = /* @__PURE__ */ __name(() => false, "until") } = {}) => {
30773
30773
  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 ?`);
@@ -30791,7 +30791,7 @@ var backfillNormalized = /* @__PURE__ */ __name((database, { batch = 5e3, onBatc
30791
30791
  }
30792
30792
  }, "backfillNormalized");
30793
30793
 
30794
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30794
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/search-index.js
30795
30795
  var INDEX2 = "message_words";
30796
30796
  var searchIndexState2 = /* @__PURE__ */ __name((database) => {
30797
30797
  const row2 = indexRow(database, INDEX2);
@@ -30918,7 +30918,7 @@ var resetSearchIndex = /* @__PURE__ */ __name((database) => {
30918
30918
  });
30919
30919
  }, "resetSearchIndex");
30920
30920
 
30921
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30921
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/stems-fill.js
30922
30922
  var fillStems = /* @__PURE__ */ __name((database, { batch = 5e3, until = /* @__PURE__ */ __name(() => false, "until"), onBatch, now: now2 = Date.now } = {}) => {
30923
30923
  const filled2 = { stemmed: 0, drained: 0 };
30924
30924
  const before2 = stemsState(database);
@@ -31013,7 +31013,7 @@ var followDefaultStemmers = /* @__PURE__ */ __name((database, now2 = Date.now) =
31013
31013
  return resetStems(database, { now: now2 });
31014
31014
  }, "followDefaultStemmers");
31015
31015
 
31016
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31016
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/words.js
31017
31017
  var VOCABULARY = "SELECT term, doc FROM message_words_vocab WHERE col = 'normalized_text'";
31018
31018
  var knownTerms = /* @__PURE__ */ __name(({ database }, terms2) => {
31019
31019
  const lookup = database.prepare(`${VOCABULARY} AND term >= ? AND term <= ? LIMIT 1`);
@@ -31035,7 +31035,7 @@ var termCandidates = /* @__PURE__ */ __name(({ database }, pieces, { shortest, l
31035
31035
  });
31036
31036
  }, "termCandidates");
31037
31037
 
31038
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/search-index.js
31038
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/search-index.js
31039
31039
  var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31040
31040
  const { database } = context;
31041
31041
  const stemmerFor2 = stemmerCache();
@@ -31057,7 +31057,7 @@ var searchIndexStoreOver = /* @__PURE__ */ __name((context) => {
31057
31057
  };
31058
31058
  }, "searchIndexStoreOver");
31059
31059
 
31060
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31060
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/searches.js
31061
31061
  var HISTORY_KEPT = 1e3;
31062
31062
  var commandFilter = /* @__PURE__ */ __name((commands) => commands ? { sql: ` AND command IN (${commands.map(() => "?").join(", ")})`, values: [...commands] } : { sql: "", values: [] }, "commandFilter");
31063
31063
  var COLUMNS5 = "id, name, command, params, language, version, fields_version, created_at, updated_at, last_run_at, runs";
@@ -31126,7 +31126,7 @@ var clearHistory = /* @__PURE__ */ __name(({ database }, commands) => {
31126
31126
  return database.prepare(`DELETE FROM searches WHERE name IS NULL${only.sql}`).run(...only.values).changes;
31127
31127
  }, "clearHistory");
31128
31128
 
31129
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/searches.js
31129
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/searches.js
31130
31130
  var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31131
31131
  const { database } = context;
31132
31132
  return {
@@ -31150,7 +31150,7 @@ var searchesStoreOver = /* @__PURE__ */ __name((context) => {
31150
31150
  };
31151
31151
  }, "searchesStoreOver");
31152
31152
 
31153
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31153
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/agent-actions.js
31154
31154
  var ACTION_TIERS = ["read", "draft", "write-private", "write-public", "destructive", "admin"];
31155
31155
  var ACTION_OUTCOMES = ["ok", "refused", "failed"];
31156
31156
  var CODE = /^[a-z][a-z0-9_]{0,63}$/;
@@ -31193,7 +31193,7 @@ var agentActionsStoreOver = /* @__PURE__ */ __name((context, afterRecord = () =>
31193
31193
  };
31194
31194
  }, "agentActionsStoreOver");
31195
31195
 
31196
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31196
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/bot-updates.js
31197
31197
  var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31198
31198
  }) => {
31199
31199
  const { database, now: now2 } = context;
@@ -31252,7 +31252,7 @@ var botUpdateStoreOver = /* @__PURE__ */ __name((context, afterSave = () => {
31252
31252
  };
31253
31253
  }, "botUpdateStoreOver");
31254
31254
 
31255
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31255
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-events.js
31256
31256
  var DAY4 = 864e5;
31257
31257
  var accountsOf = /* @__PURE__ */ __name((filter) => {
31258
31258
  if (filter.accountIds !== void 0 && filter.accountId !== void 0)
@@ -31361,7 +31361,7 @@ var listEvents = /* @__PURE__ */ __name((database, filter) => {
31361
31361
  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);
31362
31362
  }, "listEvents");
31363
31363
 
31364
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31364
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar-forget.js
31365
31365
  var distinctIds = /* @__PURE__ */ __name((rows) => [...new Set(rows.map((row2) => Number(row2.id)))], "distinctIds");
31366
31366
  var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, accountId, cursorKey: cursorKey2, now: now2 }, refresh) => {
31367
31367
  const unseenBefore = unreferenced(database, "identities");
@@ -31416,7 +31416,7 @@ var forgetCalendarRows = /* @__PURE__ */ __name((database, { calendarId, account
31416
31416
  return { entries: entryIds.length, events: goneEvents.length };
31417
31417
  }, "forgetCalendarRows");
31418
31418
 
31419
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31419
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/calendar.js
31420
31420
  var calendarOf = /* @__PURE__ */ __name((row2) => ({
31421
31421
  id: Number(row2.id),
31422
31422
  accountId: Number(row2.account_id),
@@ -32003,7 +32003,7 @@ var eventStoreOver = /* @__PURE__ */ __name((context) => {
32003
32003
  };
32004
32004
  }, "eventStoreOver");
32005
32005
 
32006
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32006
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/catalog.js
32007
32007
  var CATALOG_QUERY = defineQuery({
32008
32008
  entity: "document",
32009
32009
  backend: "sql",
@@ -32245,7 +32245,7 @@ var catalogStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => {
32245
32245
  };
32246
32246
  }, "catalogStoreOver");
32247
32247
 
32248
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32248
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-document-source.js
32249
32249
  var drive = "CASE WHEN json_valid(n.front_matter) THEN json_extract(n.front_matter,'$.source')='google-drive' ELSE 0 END";
32250
32250
  var field3 = /* @__PURE__ */ __name((name) => `CASE WHEN (${drive}) THEN
32251
32251
  CASE WHEN json_type(n.front_matter,'$.${name}')='text' THEN json_extract(n.front_matter,'$.${name}') END END`, "field");
@@ -32258,7 +32258,7 @@ var contextDocumentTimeKind = `CASE WHEN (${remoteTime}) IS NOT NULL
32258
32258
  THEN 'source-modified' ELSE 'stored-update' END`;
32259
32259
  var contextDocumentUrl = `coalesce(${preferred("url")},n.url,${field3("sourceUrl")})`;
32260
32260
 
32261
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32261
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-meeting-source.js
32262
32262
  var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32263
32263
  const { source: source2, words: words3, after: after2, before: before2, limit, maxReadBytes, cursor, signal } = request;
32264
32264
  signal?.throwIfAborted();
@@ -32357,7 +32357,7 @@ var readMeetingContextEvidence = /* @__PURE__ */ __name((database, request) => {
32357
32357
  });
32358
32358
  }, "readMeetingContextEvidence");
32359
32359
 
32360
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32360
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/context-evidence.js
32361
32361
  var corpora = {
32362
32362
  message: {
32363
32363
  table: "messages",
@@ -32596,7 +32596,7 @@ var contextRecordsOver = /* @__PURE__ */ __name(({ database }) => ({
32596
32596
  }
32597
32597
  }), "contextRecordsOver");
32598
32598
 
32599
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32599
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/note-search.js
32600
32600
  var NOTE_FIELDS = [
32601
32601
  "text",
32602
32602
  "exact",
@@ -33026,7 +33026,7 @@ var noteSearchOver = /* @__PURE__ */ __name((context) => {
33026
33026
  };
33027
33027
  }, "noteSearchOver");
33028
33028
 
33029
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33029
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/event-search.js
33030
33030
  var EVENT_FIELDS = ["text", "exact", "body", "title", "date", "in"];
33031
33031
  var inEventAccounts = /* @__PURE__ */ __name((event) => searchableCopy(event, "c.account_id IN (SELECT CAST(value AS INTEGER) FROM json_each(?))"), "inEventAccounts");
33032
33032
  var EVENT_CORPUS = {
@@ -33158,7 +33158,7 @@ var eventSearchOver = /* @__PURE__ */ __name((context) => {
33158
33158
  };
33159
33159
  }, "eventSearchOver");
33160
33160
 
33161
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33161
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/finance.js
33162
33162
  var refuse = /* @__PURE__ */ __name((message2, reason, code = "validation_error") => {
33163
33163
  throw new CliError(code, message2, { reason });
33164
33164
  }, "refuse");
@@ -33619,7 +33619,7 @@ var financeStoreOver = /* @__PURE__ */ __name((context) => {
33619
33619
  };
33620
33620
  }, "financeStoreOver");
33621
33621
 
33622
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33622
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-entries.js
33623
33623
  var refuse2 = /* @__PURE__ */ __name((message2, reason) => {
33624
33624
  throw new CliError("validation_error", message2, { reason });
33625
33625
  }, "refuse");
@@ -33697,7 +33697,7 @@ var paymentEntriesOver = /* @__PURE__ */ __name((context) => {
33697
33697
  };
33698
33698
  }, "paymentEntriesOver");
33699
33699
 
33700
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33700
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/evidence-findings.js
33701
33701
  var EVIDENCE_FINDINGS_KIND = "evidence_findings";
33702
33702
  var reference = /* @__PURE__ */ __name((raw) => {
33703
33703
  if (/^(document|note):[1-9]\d*$/.test(raw))
@@ -33723,7 +33723,7 @@ var validateEvidenceFindings = /* @__PURE__ */ __name((input) => {
33723
33723
  return valid;
33724
33724
  }, "validateEvidenceFindings");
33725
33725
 
33726
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/moment.js
33726
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/moment.js
33727
33727
  var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false } = {}) => {
33728
33728
  try {
33729
33729
  return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
@@ -33735,7 +33735,7 @@ var calendarMoment = /* @__PURE__ */ __name((wanted, flag6, { zone, end = false
33735
33735
  }
33736
33736
  }, "calendarMoment");
33737
33737
 
33738
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33738
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/facts.js
33739
33739
  var NAMED3 = "SELECT f.*, b.name AS author_name, b.kind AS author_kind FROM facts f LEFT JOIN bots b ON f.author_type = 'bot' AND b.id = f.author_id";
33740
33740
  var iso9 = /* @__PURE__ */ __name((value) => new Date(Number(value)).toISOString(), "iso");
33741
33741
  var oneOf5 = /* @__PURE__ */ __name((value, allowed, what) => {
@@ -33944,7 +33944,7 @@ var factsStoreOver = /* @__PURE__ */ __name((context) => {
33944
33944
  };
33945
33945
  }, "factsStoreOver");
33946
33946
 
33947
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33947
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/findings-core.js
33948
33948
  var invalid4 = /* @__PURE__ */ __name((message2) => {
33949
33949
  throw new CliError("validation_error", message2);
33950
33950
  }, "invalid");
@@ -34046,7 +34046,7 @@ var findingsCoreOver = /* @__PURE__ */ __name((context, kind4) => {
34046
34046
  return { snapshot: snapshot2, snapshotParts, previous, outcomes, create };
34047
34047
  }, "findingsCoreOver");
34048
34048
 
34049
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34049
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/proposed-actions.js
34050
34050
  var PROPOSAL_STATUSES = ["proposed", "approved", "rejected", "executed", "failed"];
34051
34051
  var PROPOSAL_VERDICTS = ["useful", "not_useful"];
34052
34052
  var iso10 = /* @__PURE__ */ __name((value) => value == null ? null : new Date(Number(value)).toISOString(), "iso");
@@ -34211,7 +34211,7 @@ var proposedActionsStoreOver = /* @__PURE__ */ __name((context) => {
34211
34211
  };
34212
34212
  }, "proposedActionsStoreOver");
34213
34213
 
34214
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34214
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/evidence-findings.js
34215
34215
  var stale = /* @__PURE__ */ __name(() => {
34216
34216
  throw new CliError("validation_error", "evidence findings changed since they were read; stage a new batch", {
34217
34217
  reason: "evidence-findings.stale"
@@ -34392,7 +34392,7 @@ var evidenceFindingsStoreOver = /* @__PURE__ */ __name((context) => {
34392
34392
  };
34393
34393
  }, "evidenceFindingsStoreOver");
34394
34394
 
34395
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34395
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/involvements.js
34396
34396
  var pendingInvolvements = /* @__PURE__ */ __name((database) => Number(database.prepare("SELECT count(*) AS n FROM involvement_pending").get()?.n ?? 0), "pendingInvolvements");
34397
34397
  var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => ({
34398
34398
  rebuild: /* @__PURE__ */ __name((personId) => write(database, () => {
@@ -34445,7 +34445,7 @@ var involvementStoreOver = /* @__PURE__ */ __name(({ database, now: now2 }) => (
34445
34445
  }, "forPerson")
34446
34446
  }), "involvementStoreOver");
34447
34447
 
34448
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34448
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-projects.js
34449
34449
  import { createHash as createHash12 } from "node:crypto";
34450
34450
  var fields3 = "id,from_id,to_id,source,confirmed,updated_at,length(evidence) AS evidenceLength,substr(evidence,1,2000) AS evidence";
34451
34451
  var id = /* @__PURE__ */ __name((value) => {
@@ -34531,7 +34531,7 @@ var meetingProjectsStoreOver = /* @__PURE__ */ __name(({ database, now: now2 })
34531
34531
  };
34532
34532
  }, "meetingProjectsStoreOver");
34533
34533
 
34534
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34534
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/relation-proposals.js
34535
34535
  var relationOf = /* @__PURE__ */ __name((link3) => ({
34536
34536
  id: link3.id,
34537
34537
  from: link3.from,
@@ -34757,16 +34757,16 @@ var decidedOrigin = /* @__PURE__ */ __name((by) => by === "owner" ? { origin: "o
34757
34757
  provenance: `agent:${by.bot} for the owner: ${by.reason.trim()}`
34758
34758
  }, "decidedOrigin");
34759
34759
 
34760
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34760
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
34761
34761
  import { createHash as createHash15 } from "node:crypto";
34762
34762
 
34763
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34763
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34764
34764
  import { createHash as createHash14 } from "node:crypto";
34765
34765
 
34766
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34766
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34767
34767
  import { createHash as createHash13 } from "node:crypto";
34768
34768
 
34769
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34769
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-input.js
34770
34770
  var consolidationId = /* @__PURE__ */ __name((value, field4) => {
34771
34771
  if (typeof value !== "string" || !/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
34772
34772
  throw new CliError("validation_error", `${field4} must be a positive canonical tag id`);
@@ -34817,7 +34817,7 @@ var consolidationApplyInput = /* @__PURE__ */ __name((options) => {
34817
34817
  return input;
34818
34818
  }, "consolidationApplyInput");
34819
34819
 
34820
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34820
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation-apply.js
34821
34821
  var receiptOf = /* @__PURE__ */ __name((row2) => ({
34822
34822
  id: String(row2.id),
34823
34823
  sourceId: String(row2.source_id),
@@ -34892,7 +34892,7 @@ var applyTagConsolidation = /* @__PURE__ */ __name((context, preview, options) =
34892
34892
  }, { beforeCommit: check3 });
34893
34893
  }, "applyTagConsolidation");
34894
34894
 
34895
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34895
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/tag-consolidation.js
34896
34896
  var selections = [
34897
34897
  ["taggings", "tag_id IN (SELECT value FROM json_each(?))"],
34898
34898
  ["aliases", "aliasable_type='tag' AND aliasable_id IN (SELECT value FROM json_each(?))"],
@@ -35036,7 +35036,7 @@ var previewRows = /* @__PURE__ */ __name((context, options, source2, survivor, m
35036
35036
  };
35037
35037
  }, "previewRows");
35038
35038
 
35039
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35039
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/vocabulary.js
35040
35040
  var kinds = ["project", "tag", "topic"];
35041
35041
  var cancelled2 = /* @__PURE__ */ __name((signal) => {
35042
35042
  if (signal?.aborted)
@@ -35300,7 +35300,7 @@ var vocabularyStoreOver = /* @__PURE__ */ __name((context) => {
35300
35300
  };
35301
35301
  }, "vocabularyStoreOver");
35302
35302
 
35303
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35303
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/knowledge.js
35304
35304
  var TYPED_KEY_PREFIXES = new Set(Object.values(TASK_KEY_PREFIXES));
35305
35305
  var ORGANIZATION_KINDS = ["company", "team", "family", "community"];
35306
35306
  var PROJECT_TYPES = ["work", "client", "personal", "oss", "other"];
@@ -35857,7 +35857,7 @@ var projectKey = /* @__PURE__ */ __name((name) => {
35857
35857
  return key2.padEnd(3, "X");
35858
35858
  }, "projectKey");
35859
35859
 
35860
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35860
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/log-pruning.js
35861
35861
  var DAY5 = 864e5;
35862
35862
  var SETTING4 = "logs_pruned_at";
35863
35863
  var LOG_RETENTION = { agentActionsMs: 90 * DAY5, botUpdatePayloadsMs: 30 * DAY5 };
@@ -35884,7 +35884,7 @@ var logPruner = /* @__PURE__ */ __name((database, now2) => {
35884
35884
  };
35885
35885
  }, "logPruner");
35886
35886
 
35887
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/mail/findings.js
35887
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/mail/findings.js
35888
35888
  var MAIL_FINDINGS_PER_RUN = 30;
35889
35889
  var MAIL_FINDINGS_PER_SENDER = 5;
35890
35890
  var invalid6 = /* @__PURE__ */ __name((message2) => {
@@ -36170,7 +36170,7 @@ var validateMailFindings = /* @__PURE__ */ __name((input) => {
36170
36170
  }, "validateMailFindings");
36171
36171
  var mailFindingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "mailFindingFingerprint");
36172
36172
 
36173
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36173
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/orders.js
36174
36174
  var ORDERS = "SELECT o.*, b.name AS author_name, b.kind AS author_kind FROM orders o LEFT JOIN bots b ON o.author_type = 'bot' AND b.id = o.author_id";
36175
36175
  var orderOperationsOver = /* @__PURE__ */ __name((context) => {
36176
36176
  const { database, now: now2 } = context;
@@ -36320,7 +36320,7 @@ var ordersStoreOver = /* @__PURE__ */ __name((context) => {
36320
36320
  };
36321
36321
  }, "ordersStoreOver");
36322
36322
 
36323
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36323
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mail-findings.js
36324
36324
  var stale2 = /* @__PURE__ */ __name(() => {
36325
36325
  throw new CliError("validation_error", "mail findings cite mail that changed since it was read; stage a new batch", {
36326
36326
  reason: "mail-findings.stale"
@@ -36689,7 +36689,7 @@ ${evidence.join("\n")}`, agent);
36689
36689
  };
36690
36690
  }, "mailFindingsStoreOver");
36691
36691
 
36692
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36692
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-findings.js
36693
36693
  var stale3 = /* @__PURE__ */ __name(() => {
36694
36694
  throw new CliError("validation_error", "meeting findings changed since they were read; stage a new batch", {
36695
36695
  reason: "meeting-findings.stale"
@@ -36857,7 +36857,7 @@ var meetingFindingsStoreOver = /* @__PURE__ */ __name((context) => {
36857
36857
  };
36858
36858
  }, "meetingFindingsStoreOver");
36859
36859
 
36860
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36860
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/meeting-vectors.js
36861
36861
  var RANK_BATCH = 512;
36862
36862
  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";
36863
36863
  var limitOf = /* @__PURE__ */ __name((value, name, max = 1e3) => {
@@ -37128,7 +37128,7 @@ var meetingVectorsOver = /* @__PURE__ */ __name((context) => ({
37128
37128
  }
37129
37129
  }), "meetingVectorsOver");
37130
37130
 
37131
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37131
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/mention-sources.js
37132
37132
  var OTHER_SOURCES = ["document", "note", "email"];
37133
37133
  var TEXTS = {
37134
37134
  document: "JOIN documents s ON mn.source_type = 'document' AND s.id = mn.source_id AND s.deleted_at IS NULL WHERE 1 ",
@@ -37229,11 +37229,11 @@ var sourceMentionStoreOver = /* @__PURE__ */ __name((context) => {
37229
37229
  };
37230
37230
  }, "sourceMentionStoreOver");
37231
37231
 
37232
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37232
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
37233
37233
  import { mkdirSync, statSync, writeFileSync } from "node:fs";
37234
37234
  import { dirname } from "node:path";
37235
37235
 
37236
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37236
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/clients.js
37237
37237
  import { readFileSync as readFileSync3 } from "node:fs";
37238
37238
  var CLIENTS_SETTING = "clients";
37239
37239
  var coreVersion = (() => {
@@ -37291,7 +37291,7 @@ var refusalAdvice = /* @__PURE__ */ __name((clients, command, schema) => {
37291
37291
  return mover ? `${own} (${mover.command} ${mover.version} moved the store to schema ${schema})` : own;
37292
37292
  }, "refusalAdvice");
37293
37293
 
37294
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37294
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/migrations.generated.js
37295
37295
  var GENERATED = [
37296
37296
  {
37297
37297
  "name": "20261010184427_initial",
@@ -38284,7 +38284,7 @@ WHERE json_type(params, '$.selection') = 'object';`
38284
38284
  }
38285
38285
  ];
38286
38286
 
38287
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38287
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/manifest.js
38288
38288
  var MANIFEST = [
38289
38289
  { name: "20261010184427_initial", version: 1, minCompatible: 1 },
38290
38290
  { name: "20261011035353_version-2-facts", version: 2, minCompatible: 1 },
@@ -38375,7 +38375,7 @@ var generatedMigrations = /* @__PURE__ */ __name((manifest = MANIFEST, generated
38375
38375
  return migrations;
38376
38376
  }, "generatedMigrations");
38377
38377
 
38378
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/migrations.js
38378
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/migrations.js
38379
38379
  var MIGRATIONS = generatedMigrations();
38380
38380
  var HISTORY = `CREATE TABLE IF NOT EXISTS schema_migrations (
38381
38381
  version INTEGER PRIMARY KEY,
@@ -38428,7 +38428,7 @@ var migrate = /* @__PURE__ */ __name((database, { migrations = MIGRATIONS, now:
38428
38428
  }
38429
38429
  }, "migrate");
38430
38430
 
38431
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38431
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/join-keys.js
38432
38432
  var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38433
38433
  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 ?");
38434
38434
  if (pending.get(0, 1) === void 0)
@@ -38450,7 +38450,7 @@ var fillJoinKeys = /* @__PURE__ */ __name((database, { batch = 2e3 } = {}) => {
38450
38450
  }
38451
38451
  }, "fillJoinKeys");
38452
38452
 
38453
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38453
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open.js
38454
38454
  var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {}) => {
38455
38455
  refuseOwnerStoreInTests(path);
38456
38456
  const opened = "Bun" in globalThis ? await openUnderBun(path, readOnly) : await openUnderNode(path, readOnly);
@@ -38464,8 +38464,8 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
38464
38464
  }, "openSqlite");
38465
38465
  var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38466
38466
  quietSqliteWarning();
38467
- const { drizzle } = await import("./node-DBNZMTJO.js");
38468
- const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-CCNVCZSG.js");
38467
+ const { drizzle } = await import("./node-NCSG7QX5.js");
38468
+ const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-QL4M5RIK.js");
38469
38469
  const client = await nodeClient(path, { readOnly });
38470
38470
  try {
38471
38471
  return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
@@ -38475,8 +38475,8 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
38475
38475
  }
38476
38476
  }, "openUnderNode");
38477
38477
  var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38478
- const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-OSAC45TI.js");
38479
- const { drizzle } = await import("./bun-XWUEHWDW.js");
38478
+ const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-HCZP2CNO.js");
38479
+ const { drizzle } = await import("./bun-JRTUGKIJ.js");
38480
38480
  const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
38481
38481
  try {
38482
38482
  return { database: cacheOverBunSqlite(client), orm: drizzle({ client }) };
@@ -38486,7 +38486,7 @@ var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
38486
38486
  }
38487
38487
  }, "openUnderBun");
38488
38488
 
38489
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38489
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/payment-facts.js
38490
38490
  var PAYMENT_FACTS_TO_MOVE = "payment_facts_to_move";
38491
38491
  var paymentOf = /* @__PURE__ */ __name((metadata3) => {
38492
38492
  try {
@@ -38554,7 +38554,7 @@ var movePaymentFacts = /* @__PURE__ */ __name((context) => {
38554
38554
  });
38555
38555
  }, "movePaymentFacts");
38556
38556
 
38557
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38557
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/read-compatibility.js
38558
38558
  var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38559
38559
  const ours = MIGRATIONS.at(-1)?.version ?? 0;
38560
38560
  if (!database.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get())
@@ -38569,7 +38569,7 @@ var assertReadCompatible = /* @__PURE__ */ __name((database, command) => {
38569
38569
  throw new CliError("configuration_error", `The store requires schema ${minCompatible}, but this tool supports ${ours}; ${refusalAdvice(storeClients(database), command, version)}`);
38570
38570
  }, "assertReadCompatible");
38571
38571
 
38572
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38572
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/suggested-links.js
38573
38573
  var SUGGESTED_LINKS_TO_MOVE = "suggested_links_to_move";
38574
38574
  var proposerOf2 = /* @__PURE__ */ __name((provenance2) => {
38575
38575
  if (provenance2?.startsWith("rule:"))
@@ -38615,7 +38615,7 @@ var moveSuggestedLinks = /* @__PURE__ */ __name((database, now2) => {
38615
38615
  });
38616
38616
  }, "moveSuggestedLinks");
38617
38617
 
38618
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38618
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/test-accounts.js
38619
38619
  var TEST_ACCOUNTS_TO_PURGE = "test_accounts_to_purge";
38620
38620
  var TEST_PROVIDER = "chat";
38621
38621
  var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
@@ -38636,7 +38636,7 @@ var purgeTestAccounts = /* @__PURE__ */ __name((context, warn) => {
38636
38636
  }
38637
38637
  }, "purgeTestAccounts");
38638
38638
 
38639
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38639
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/open-store.js
38640
38640
  var BACKFILL_ON_OPEN = 5e3;
38641
38641
  var NOT_WRITABLE = /* @__PURE__ */ new Set(["EACCES", "EPERM", "EROFS"]);
38642
38642
  var createWritable = /* @__PURE__ */ __name((file) => {
@@ -38701,10 +38701,10 @@ var openStoreContext = /* @__PURE__ */ __name(async ({ path, env, now: now2 = Da
38701
38701
  }
38702
38702
  }, "openStoreContext");
38703
38703
 
38704
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38704
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38705
38705
  import { createHash as createHash16 } from "node:crypto";
38706
38706
 
38707
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38707
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/schema.js
38708
38708
  var text4 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
38709
38709
  var ref = text4(2048);
38710
38710
  var timestamp2 = pipe(number(), safeInteger(), minValue(0));
@@ -38770,7 +38770,7 @@ var projectAnnotationsSchema = strictObject({
38770
38770
  }))
38771
38771
  });
38772
38772
 
38773
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38773
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/manifest.js
38774
38774
  var PROJECT_ANNOTATIONS_MAX_BYTES = 4 * 1024 * 1024;
38775
38775
  var invalid9 = /* @__PURE__ */ __name((field4) => {
38776
38776
  throw new CliError("validation_error", `invalid project annotations.${field4}`);
@@ -38874,7 +38874,7 @@ var validateProjectAnnotationsGraph = /* @__PURE__ */ __name((manifest, addition
38874
38874
  invalid9("external.unused");
38875
38875
  }, "validateProjectAnnotationsGraph");
38876
38876
 
38877
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38877
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/plan.js
38878
38878
  var hash = pipe(string(), regex(/^[a-f0-9]{64}$/));
38879
38879
  var ref2 = pipe(string(), minLength(1), maxLength(2048));
38880
38880
  var targetSchema = strictObject({
@@ -38980,7 +38980,7 @@ var planBoundProjectAnnotations = /* @__PURE__ */ __name((manifest, manifest_fin
38980
38980
  };
38981
38981
  }, "planBoundProjectAnnotations");
38982
38982
 
38983
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
38983
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-model.js
38984
38984
  import { createHash as createHash17 } from "node:crypto";
38985
38985
  var text5 = /* @__PURE__ */ __name((max) => pipe(string(), minLength(1), maxLength(max)), "text");
38986
38986
  var timestamp3 = pipe(number(), safeInteger(), minValue(0));
@@ -39074,7 +39074,7 @@ var projectAnnotationSnapshotFingerprint = /* @__PURE__ */ __name((json3) => {
39074
39074
  })).digest("hex");
39075
39075
  }, "projectAnnotationSnapshotFingerprint");
39076
39076
 
39077
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39077
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/request.js
39078
39078
  var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false) => {
39079
39079
  if (!request || typeof request !== "object" || Array.isArray(request))
39080
39080
  throw new CliError("validation_error", "project annotation request is required");
@@ -39091,7 +39091,7 @@ var projectAnnotationRequest = /* @__PURE__ */ __name((request, restore = false)
39091
39091
  return { snapshot: snapshot2, projectId: Number(request.project.slice(8)) };
39092
39092
  }, "projectAnnotationRequest");
39093
39093
 
39094
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39094
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/budget.js
39095
39095
  var SnapshotBudget = class {
39096
39096
  static {
39097
39097
  __name(this, "SnapshotBudget");
@@ -39117,13 +39117,13 @@ var SnapshotBudget = class {
39117
39117
  }
39118
39118
  };
39119
39119
 
39120
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39120
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39121
39121
  import { createHash as createHash19 } from "node:crypto";
39122
39122
 
39123
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39123
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot-plan.js
39124
39124
  var planProjectAnnotationSnapshot = /* @__PURE__ */ __name((json3, target, bindings) => planBoundProjectAnnotations(decodeProjectAnnotationSnapshot(json3), projectAnnotationSnapshotFingerprint(json3), target, bindings), "planProjectAnnotationSnapshot");
39125
39125
 
39126
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39126
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/sources.js
39127
39127
  import { createHash as createHash18 } from "node:crypto";
39128
39128
  var invalid11 = /* @__PURE__ */ __name(() => {
39129
39129
  throw new CliError("configuration_error", "project snapshot has an unavailable or unsupported dependency");
@@ -39266,7 +39266,7 @@ var ProjectSnapshotSources = class {
39266
39266
  }
39267
39267
  };
39268
39268
 
39269
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39269
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/snapshot.js
39270
39270
  var unsupported = /* @__PURE__ */ __name(() => {
39271
39271
  throw new CliError("configuration_error", "project snapshot has unsupported metadata, deletion or account scope");
39272
39272
  }, "unsupported");
@@ -39437,7 +39437,7 @@ var projectAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, bu
39437
39437
  return { snapshot: snapshot2, read_bytes: budget.bytes, records: budget.records };
39438
39438
  }), "projectAnnotationSnapshot");
39439
39439
 
39440
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39440
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/preview.js
39441
39441
  var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, manifest, bindings, budget) => read(database, () => {
39442
39442
  const current = projectAnnotationSnapshot(database, projectId2, budget).snapshot;
39443
39443
  const sources = new ProjectSnapshotSources(database, budget);
@@ -39499,7 +39499,7 @@ var previewAnnotationSnapshot = /* @__PURE__ */ __name((database, projectId2, ma
39499
39499
  };
39500
39500
  }), "previewAnnotationSnapshot");
39501
39501
 
39502
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39502
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/records.js
39503
39503
  var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, snapshot2, bindings) => {
39504
39504
  const mappings = { ...bindings };
39505
39505
  const resolve = /* @__PURE__ */ __name((ref3) => {
@@ -39541,7 +39541,7 @@ var restoreAnnotationRecords = /* @__PURE__ */ __name((database, projectId2, sna
39541
39541
  return mappings;
39542
39542
  }, "restoreAnnotationRecords");
39543
39543
 
39544
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39544
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/project-transfer/store.js
39545
39545
  var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39546
39546
  async preview(request) {
39547
39547
  const { snapshot: snapshot2, projectId: projectId2 } = projectAnnotationRequest(request);
@@ -39571,7 +39571,7 @@ var projectAnnotationStoreOver = /* @__PURE__ */ __name(({ database }) => ({
39571
39571
  }
39572
39572
  }), "projectAnnotationStoreOver");
39573
39573
 
39574
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/domain/records.js
39574
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/domain/records.js
39575
39575
  import { createHash as createHash20 } from "node:crypto";
39576
39576
  var RECORDS_SCHEMA_VERSION = 1;
39577
39577
  var RECORD_OPERATIONS = ["upsert", "delete"];
@@ -39803,7 +39803,7 @@ var envelopeOfJsonl = /* @__PURE__ */ __name((text6) => {
39803
39803
  return isObject2(header) ? { ...header, records: records2 } : header;
39804
39804
  }, "envelopeOfJsonl");
39805
39805
 
39806
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39806
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/records.js
39807
39807
  var PROJECTED = {
39808
39808
  invoice: { roles: ["issuer", "counterparty", "project"], many: [] },
39809
39809
  payment: { roles: ["payer", "payee", "project", "settles"], many: ["settles"] }
@@ -40216,7 +40216,7 @@ var recordStoreOver = /* @__PURE__ */ __name((context) => {
40216
40216
  };
40217
40217
  }, "recordStoreOver");
40218
40218
 
40219
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40219
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/ranges.js
40220
40220
  var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to) => {
40221
40221
  const touching = and(eq(syncRanges.chatId, chatKey), lte(syncRanges.fromKey, to + 1), gte(syncRanges.toKey, from2 - 1));
40222
40222
  let merged = { from: from2, to };
@@ -40229,7 +40229,7 @@ var markRange = /* @__PURE__ */ __name(({ orm, now: now2 }, chatKey, from2, to)
40229
40229
  }, "markRange");
40230
40230
  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");
40231
40231
 
40232
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40232
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-analysis-marks.js
40233
40233
  var prefixOf2 = /* @__PURE__ */ __name(({ provider, account }) => `task_analysis:${provider}:${account}:`, "prefixOf");
40234
40234
  var markOf = /* @__PURE__ */ __name((prefix, row2) => ({
40235
40235
  chatId: String(row2.key).slice(prefix.length),
@@ -40250,7 +40250,7 @@ var setTaskAnalysisMark = /* @__PURE__ */ __name((database, account, { chatId, c
40250
40250
  database.prepare("INSERT INTO store_settings (key, value, at) VALUES (?, ?, ?) ON CONFLICT (key) DO UPDATE SET value = excluded.value, at = excluded.at").run(prefixOf2(account) + chatId, JSON.stringify({ ...saved, checkedAt: checkedAt ?? new Date(now2).toISOString() }), now2);
40251
40251
  }, "setTaskAnalysisMark");
40252
40252
 
40253
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40253
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/task-rule-stops.js
40254
40254
  var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `task_rules_until:${provider}:${account}`, "keyOf");
40255
40255
  var taskRulesStop = /* @__PURE__ */ __name((database, account) => {
40256
40256
  const row2 = database.prepare("SELECT value FROM store_settings WHERE key = ?").get(keyOf4(account));
@@ -40260,7 +40260,7 @@ var setTaskRulesStop = /* @__PURE__ */ __name((database, account, until, now2) =
40260
40260
  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);
40261
40261
  }, "setTaskRulesStop");
40262
40262
 
40263
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sync.js
40263
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sync.js
40264
40264
  var syncStoreOver = /* @__PURE__ */ __name((context) => {
40265
40265
  const { database } = context;
40266
40266
  const { accountPk: accountPk2, findAccountPk: findAccountPk2, chatKeyOf, chatPkFor: chatPkFor2, identityPk: identityPk2, writeMembers: writeMembers2, writeState: writeState2 } = keysOver(context);
@@ -40319,7 +40319,7 @@ var syncStoreOver = /* @__PURE__ */ __name((context) => {
40319
40319
  };
40320
40320
  }, "syncStoreOver");
40321
40321
 
40322
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/tags.js
40322
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/tags.js
40323
40323
  var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40324
40324
  const { database } = context;
40325
40325
  return {
@@ -40341,7 +40341,7 @@ var tagsStoreOver = /* @__PURE__ */ __name((context) => {
40341
40341
  };
40342
40342
  }, "tagsStoreOver");
40343
40343
 
40344
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40344
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/image-chunks.js
40345
40345
  var IS_IMAGE = sql`(a.kind = 'photo' OR a.mime LIKE 'image/%')`;
40346
40346
  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
40347
40347
  WHERE chat_id = ${chatKey} AND deleted_at IS NULL AND trim(text) <> '' AND id <> ${messagePk}
@@ -40468,7 +40468,7 @@ var savePictureChunks = /* @__PURE__ */ __name(({ orm, now: now2, database }, ac
40468
40468
  dropUnusedVectors(database, released.map(({ hash: hash2 }) => hash2));
40469
40469
  }, "savePictureChunks");
40470
40470
 
40471
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40471
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/message-chunks.js
40472
40472
  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,
40473
40473
  EXISTS (SELECT 1 FROM embeddings v WHERE v.model = ${model} AND v.content_hash = k.content_hash) AS embedded
40474
40474
  FROM messages m
@@ -40557,7 +40557,7 @@ var nearestMessages = /* @__PURE__ */ __name((context, accountPk2, { limit, quer
40557
40557
  return plain2(best(found2));
40558
40558
  }, "nearestMessages");
40559
40559
 
40560
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/vectors.js
40560
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/vectors.js
40561
40561
  var accountVectorsOver = /* @__PURE__ */ __name((context, mail) => {
40562
40562
  const { database } = context;
40563
40563
  const { findAccountPk: findAccountPk2, findChatPk: findChatPk2, chatKeyOf } = keysOver(context);
@@ -40815,7 +40815,7 @@ var vectorsStoreOver = /* @__PURE__ */ __name((context, keyed) => ({
40815
40815
  embeddedHashes: /* @__PURE__ */ __name(async (model, hashes) => embeddedHashes(context, model, hashes), "embeddedHashes")
40816
40816
  }), "vectorsStoreOver");
40817
40817
 
40818
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40818
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-tables.js
40819
40819
  import { existsSync, readFileSync as readFileSync4 } from "node:fs";
40820
40820
  import { dirname as dirname2, join as join2 } from "node:path";
40821
40821
  var BOOKKEEPING = ["schema_migrations", "store_settings"];
@@ -40903,10 +40903,10 @@ var lastBackup = /* @__PURE__ */ __name((path) => {
40903
40903
  }
40904
40904
  }, "lastBackup");
40905
40905
 
40906
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/providers.js
40906
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/providers.js
40907
40907
  var registerProvider2 = /* @__PURE__ */ __name((store, entry2) => store.accounts.registerProvider(entry2), "registerProvider");
40908
40908
 
40909
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40909
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/sqlite/store-contents.js
40910
40910
  var COUNTED_TABLES = [
40911
40911
  "accounts",
40912
40912
  "chats",
@@ -40991,7 +40991,7 @@ var storeContents = /* @__PURE__ */ __name((database) => {
40991
40991
  };
40992
40992
  }, "storeContents");
40993
40993
 
40994
- // node_modules/.pnpm/@wirecat+cli-core@0.575.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_aade55a841395570862eef10edb10226/node_modules/@wirecat/cli-core/dist/store/store.js
40994
+ // node_modules/.pnpm/@wirecat+cli-core@0.576.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8c38491da697a73b6a1be72960f7baeb/node_modules/@wirecat/cli-core/dist/store/store.js
40995
40995
  var openStore = /* @__PURE__ */ __name(async (options = {}) => {
40996
40996
  const context = await openStoreContext(options);
40997
40997
  try {