@wirecat/mail-cli 0.33.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +4 -1
  3. package/contracts/wirecat.json +54 -4
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bundle/agent-KWLCQCSC.js +39 -0
  6. package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-6BDSMVOO.js} +63 -21
  7. package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-C3XUXUCJ.js} +8 -8
  8. package/dist/bundle/{app-server-4SICQ5RP.js → app-server-GUHDK4OR.js} +82 -64
  9. package/dist/bundle/{bun-QVVCH4MJ.js → bun-FN7AM4AG.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-56IVBF22.js} +6 -6
  11. package/dist/bundle/{chunk-HFFHL7SV.js → chunk-2B67TUIF.js} +101 -69
  12. package/dist/bundle/{chunk-OOYIPK4F.js → chunk-2UNQTKRH.js} +1 -1
  13. package/dist/bundle/{chunk-LXUHYDNE.js → chunk-3ACF6TIV.js} +1 -1
  14. package/dist/bundle/chunk-3EV2B7KZ.js +726 -0
  15. package/dist/bundle/chunk-3KAJCOJP.js +109 -0
  16. package/dist/bundle/{chunk-2BFXHCZW.js → chunk-3WAZKCDF.js} +2 -2
  17. package/dist/bundle/{chunk-LKGJMM6W.js → chunk-46SBNO67.js} +12 -63
  18. package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-4IASS7NQ.js} +128 -10
  19. package/dist/bundle/chunk-4U5ODZO7.js +360 -0
  20. package/dist/bundle/{chunk-QN423PC6.js → chunk-5WYBI35N.js} +3 -3
  21. package/dist/bundle/{chunk-GZYICXO4.js → chunk-5XQI7WCJ.js} +1 -1
  22. package/dist/bundle/{chunk-JUYUWMTG.js → chunk-635AFLZO.js} +4 -4
  23. package/dist/bundle/{chunk-2P44S7XK.js → chunk-6B4WZVLN.js} +36 -28
  24. package/dist/bundle/{chunk-47YNANPZ.js → chunk-6Q5THDNW.js} +3 -3
  25. package/dist/bundle/chunk-6VARUB3J.js +787 -0
  26. package/dist/bundle/{chunk-BRRHYXUP.js → chunk-7FXZKQAC.js} +87 -76
  27. package/dist/bundle/{chunk-EW3JFV7J.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/{chunk-OWAJN74H.js → chunk-7KMI47AP.js} +106 -257
  29. package/dist/bundle/{chunk-BF73DBAA.js → chunk-7PXAUMK5.js} +30 -15
  30. package/dist/bundle/{chunk-UX76GMQM.js → chunk-7YMLEWTX.js} +43 -64
  31. package/dist/bundle/{chunk-2L6D54BR.js → chunk-AISQNKT7.js} +8 -8
  32. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  33. package/dist/bundle/{chunk-OFMYFFEF.js → chunk-AXKIXVQA.js} +991 -1609
  34. package/dist/bundle/{chunk-UAV74EY4.js → chunk-CDGVYQXG.js} +1 -1
  35. package/dist/bundle/{chunk-RXUVXAMM.js → chunk-CFQQTDSA.js} +1 -1
  36. package/dist/bundle/chunk-CMGZXBJW.js +259 -0
  37. package/dist/bundle/{chunk-H46MANPR.js → chunk-DD2P67NP.js} +3 -3
  38. package/dist/bundle/{chunk-IBIFX2LK.js → chunk-DFHUJTP5.js} +2 -2
  39. package/dist/bundle/{chunk-DI74RP6R.js → chunk-DREU6TN6.js} +31 -85
  40. package/dist/bundle/{chunk-XQXYAOBV.js → chunk-DZHEVVXA.js} +53 -33
  41. package/dist/bundle/{chunk-LFBD6RTX.js → chunk-E6HSSKRX.js} +4 -4
  42. package/dist/bundle/{chunk-UYZDH5LK.js → chunk-EHAXFDDP.js} +1 -1
  43. package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
  44. package/dist/bundle/{chunk-CHNNKHLL.js → chunk-EX4Z7CCO.js} +4051 -2788
  45. package/dist/bundle/chunk-G662S2M4.js +559 -0
  46. package/dist/bundle/{chunk-XN5KH24X.js → chunk-GG634DR3.js} +5 -5
  47. package/dist/bundle/{chunk-FSMCXQH2.js → chunk-GU3PYIV2.js} +2 -2
  48. package/dist/bundle/{chunk-SW7YGW3T.js → chunk-HF5QWKK2.js} +18 -8
  49. package/dist/bundle/chunk-HJDIMVFW.js +108 -0
  50. package/dist/bundle/chunk-HKWZG7CZ.js +334 -0
  51. package/dist/bundle/{chunk-BI5P7JWM.js → chunk-HM6AMYHR.js} +2 -2
  52. package/dist/bundle/{chunk-35AH33VJ.js → chunk-HVXOA4FO.js} +1 -1
  53. package/dist/bundle/{chunk-LXAX6AZU.js → chunk-I3QZCQJT.js} +6 -6
  54. package/dist/bundle/{chunk-I3UAD4EI.js → chunk-ILEKGH44.js} +68 -59
  55. package/dist/bundle/{chunk-SDWYOYGN.js → chunk-J5ULUTWE.js} +4 -4
  56. package/dist/bundle/{chunk-TK77DCE5.js → chunk-L4RCWRWS.js} +1 -1
  57. package/dist/bundle/chunk-MCJYJIH5.js +192 -0
  58. package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NEDS4ORI.js} +2 -2
  59. package/dist/bundle/{chunk-QO7BK4WD.js → chunk-ODQCRZX5.js} +35 -12
  60. package/dist/bundle/chunk-OO4OKMNB.js +80 -0
  61. package/dist/bundle/{chunk-JCQ47WR4.js → chunk-OOQFBRNR.js} +144 -10
  62. package/dist/bundle/{chunk-LACMDMDI.js → chunk-OTP2HJ67.js} +9 -9
  63. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  64. package/dist/bundle/{chunk-AEKWEYIG.js → chunk-PQDQCCGG.js} +19 -19
  65. package/dist/bundle/{chunk-BZY5W35X.js → chunk-Q5U2HIBJ.js} +7 -7
  66. package/dist/bundle/{chunk-74BYHR44.js → chunk-QFMKCU42.js} +3738 -3415
  67. package/dist/bundle/{chunk-SYUIAMVA.js → chunk-QYCMB7JY.js} +373 -533
  68. package/dist/bundle/{chunk-KLLT572M.js → chunk-RBV2AM52.js} +2 -100
  69. package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-RJNKM3CQ.js} +1 -1
  70. package/dist/bundle/{chunk-6IS4BEN4.js → chunk-RQHWSNX4.js} +4 -4
  71. package/dist/bundle/chunk-RQJGX7F7.js +170 -0
  72. package/dist/bundle/{chunk-RENCSP47.js → chunk-TARNPINT.js} +3 -3
  73. package/dist/bundle/chunk-TP2BCK2Z.js +721 -0
  74. package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-TP766H4O.js} +18 -14
  75. package/dist/bundle/{chunk-2X344EUT.js → chunk-UHGKN5US.js} +8 -8
  76. package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-UWDRU3R6.js} +2 -2
  77. package/dist/bundle/chunk-V4O47JV6.js +72 -0
  78. package/dist/bundle/{chunk-CIG4UVP6.js → chunk-W4JYGMTU.js} +14 -13
  79. package/dist/bundle/{chunk-JADBHKBP.js → chunk-W7ICCFG5.js} +1 -1
  80. package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-WDEVKKAD.js} +3 -3
  81. package/dist/bundle/{chunk-TBZLGT7R.js → chunk-WZKM5I7B.js} +23 -119
  82. package/dist/bundle/{chunk-MT7T5N2N.js → chunk-XKKYRMGG.js} +4 -4
  83. package/dist/bundle/chunk-XQNKAM26.js +338 -0
  84. package/dist/bundle/{chunk-UWF3SSRL.js → chunk-YA44BG3N.js} +58 -9
  85. package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-YCIWSKOH.js} +9 -9
  86. package/dist/bundle/{chunk-7OYZU5SP.js → chunk-YQTRKNZQ.js} +4 -4
  87. package/dist/bundle/chunk-YRAJFTFU.js +353 -0
  88. package/dist/bundle/chunk-YTI533XF.js +29 -0
  89. package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZMYRPMAJ.js} +1 -1
  90. package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-ZX7HZDD6.js} +182 -562
  91. package/dist/bundle/{chunk-IPSLQX64.js → chunk-ZYEU35MB.js} +2 -2
  92. package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
  93. package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-TPJ47FYS.js} +28 -25
  94. package/dist/bundle/decode-XHUASXQK.js +296 -0
  95. package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-MQZHGGVP.js} +8 -8
  96. package/dist/bundle/{dist-X5G2IMYG.js → dist-BAE4IQ52.js} +34 -29
  97. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  98. package/dist/bundle/{echarts-UZJ6AREV.js → echarts-U7Z2PKIG.js} +2 -2
  99. package/dist/bundle/{embed-FEXLUH3T.js → embed-W7GPB6EI.js} +6 -6
  100. package/dist/bundle/{embedder-NHQARKFJ.js → embedder-T72XLFQ5.js} +9 -9
  101. package/dist/bundle/{failure-7DIA4OET.js → failure-MP6VKL5Y.js} +2 -2
  102. package/dist/bundle/{first-run-PS5NR2QG.js → first-run-C44TJXRI.js} +12 -12
  103. package/dist/bundle/first-screen-IESI7DAU.js +39 -0
  104. package/dist/bundle/{instructions-SDDUBGH4.js → instructions-WGMWQNPP.js} +1 -1
  105. package/dist/bundle/mail.js +12 -12
  106. package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YGOAUNC3.js} +2 -2
  107. package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
  108. package/dist/bundle/meeting-model-QVHLD4WI.js +24 -0
  109. package/dist/bundle/meeting-semantic-QKQHUHXX.js +21 -0
  110. package/dist/bundle/{node-ELCNUOCE.js → node-WANDMJJQ.js} +2 -2
  111. package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-NM5XA4DR.js} +7 -7
  112. package/dist/bundle/{oauth-JGPEIY3M.js → oauth-6E63ELEE.js} +8 -8
  113. package/dist/bundle/{open-6DEMCZAB.js → open-5542RTLE.js} +5 -5
  114. package/dist/bundle/{openai-IVKDU5AH.js → openai-NOYNPFB5.js} +28 -26
  115. package/dist/bundle/{process-67DAKAAQ.js → process-7AEXXSBX.js} +1 -1
  116. package/dist/bundle/{program-ESJDQMAJ.js → program-VMA5CGNR.js} +5712 -3640
  117. package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-WYYO4AJL.js} +5 -5
  118. package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UGCCOMAS.js} +4 -4
  119. package/dist/bundle/{remote-UYTNWNOB.js → remote-VZS6BNQB.js} +9 -9
  120. package/dist/bundle/{rerank-X2633CQN.js → rerank-O46D5GJ2.js} +7 -7
  121. package/dist/bundle/{serve-CP7Q4OVW.js → serve-QAAF2LCW.js} +10 -10
  122. package/dist/bundle/server-456MYK3X.js +84 -0
  123. package/dist/bundle/{server-I7MXRSAG.js → server-Q3PUZLLX.js} +77 -58
  124. package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-EQBCDO2U.js} +6 -6
  125. package/dist/bundle/{state-LLNJQXFH.js → state-XIOHYXCR.js} +6 -6
  126. package/dist/bundle/{store-N27XI3VV.js → store-OXJZZUR7.js} +34 -17
  127. package/dist/bundle/{store-K4KU5N75.js → store-VJBL5XKR.js} +30 -20
  128. package/dist/bundle/store-maintenance-command-D7XYIX52.js +71 -0
  129. package/dist/bundle/surface-N7LK7PKN.js +70 -0
  130. package/dist/commands/read.d.ts +2 -2
  131. package/dist/commands/read.d.ts.map +1 -1
  132. package/dist/commands/read.js +5 -4
  133. package/dist/commands/read.js.map +1 -1
  134. package/dist/commands/sync.d.ts +2 -1
  135. package/dist/commands/sync.d.ts.map +1 -1
  136. package/dist/commands/sync.js +16 -9
  137. package/dist/commands/sync.js.map +1 -1
  138. package/dist/config.d.ts +6 -0
  139. package/dist/config.d.ts.map +1 -1
  140. package/dist/config.js +16 -1
  141. package/dist/config.js.map +1 -1
  142. package/dist/identity.d.ts.map +1 -1
  143. package/dist/identity.js +2 -2
  144. package/dist/identity.js.map +1 -1
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/package.json +3 -3
  148. package/dist/bundle/chunk-BDCC2J2Z.js +0 -2
  149. package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
  150. package/dist/bundle/decode-U6V6D6XH.js +0 -162
  151. package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
  152. package/dist/bundle/server-QGTMJ7SF.js +0 -67
  153. package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
@@ -2,46 +2,49 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  renderMessages
5
- } from "./chunk-2BFXHCZW.js";
5
+ } from "./chunk-3WAZKCDF.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-TBZLGT7R.js";
9
+ } from "./chunk-WZKM5I7B.js";
10
+ import {
11
+ chatEventAnswer,
12
+ memberAnswer,
13
+ pollVoteAnswer
14
+ } from "./chunk-YRAJFTFU.js";
15
+ import {
16
+ serveRelay
17
+ } from "./chunk-XQNKAM26.js";
10
18
  import {
11
19
  FETCHING,
12
20
  RULES_VERSION,
13
21
  applyTaskRulesOnArrival,
14
- capability,
15
- chatEventAnswer,
16
22
  embeddingKeys,
17
23
  endpointKeyName,
18
- memberAnswer,
19
24
  modelGateway,
20
25
  newSendId,
21
26
  onlineDeps,
22
27
  openRequestTask,
23
28
  patiently,
24
- pollVoteAnswer,
25
- queryTerms,
26
29
  refuseLockedOutput,
27
30
  senderIsMe,
28
- serveRelay,
29
31
  servicesFor,
30
32
  syncsOneChat,
31
- typedQuery,
32
- withQuery,
33
33
  withTimeLimit
34
- } from "./chunk-74BYHR44.js";
34
+ } from "./chunk-QFMKCU42.js";
35
+ import {
36
+ capability,
37
+ queryTerms,
38
+ typedQuery,
39
+ withQuery
40
+ } from "./chunk-3EV2B7KZ.js";
35
41
  import {
36
42
  holdLock,
37
43
  lockPath,
38
44
  releaseLock,
39
45
  servingProfiles,
40
46
  takeLock
41
- } from "./chunk-RENCSP47.js";
42
- import {
43
- readSecret
44
- } from "./chunk-QN423PC6.js";
47
+ } from "./chunk-TARNPINT.js";
45
48
  import {
46
49
  Command,
47
50
  LOCAL_READ,
@@ -68,13 +71,16 @@ import {
68
71
  snakeKeys,
69
72
  storeTable,
70
73
  withoutProviderRefs
71
- } from "./chunk-SYUIAMVA.js";
74
+ } from "./chunk-QYCMB7JY.js";
72
75
  import {
73
76
  levelFor
74
- } from "./chunk-SW7YGW3T.js";
77
+ } from "./chunk-HF5QWKK2.js";
75
78
  import {
76
79
  holdersOf
77
- } from "./chunk-UG2QDGAH.js";
80
+ } from "./chunk-ZMYRPMAJ.js";
81
+ import {
82
+ readSecret
83
+ } from "./chunk-5WYBI35N.js";
78
84
  import {
79
85
  QUICK_HEALTH_CHECKS,
80
86
  fts5Tables,
@@ -82,7 +88,7 @@ import {
82
88
  lossUnknown,
83
89
  storeDamageReport,
84
90
  storeHealth
85
- } from "./chunk-AEKWEYIG.js";
91
+ } from "./chunk-PQDQCCGG.js";
86
92
  import {
87
93
  CORPORA,
88
94
  MIGRATIONS,
@@ -106,9 +112,12 @@ import {
106
112
  readStoreTables,
107
113
  rebuildMentions,
108
114
  resetAttachmentWords,
115
+ resetContentPostWords,
116
+ resetCrmFileWords,
109
117
  resetNoteIndex,
110
118
  resetSearchIndex,
111
119
  resetStems,
120
+ resetTrackerItemWords,
112
121
  rollBack,
113
122
  rowCounts,
114
123
  searchIndexState,
@@ -117,44 +126,46 @@ import {
117
126
  storeClients,
118
127
  storeContents,
119
128
  vectorIndexCounts
120
- } from "./chunk-CHNNKHLL.js";
129
+ } from "./chunk-EX4Z7CCO.js";
121
130
  import {
122
131
  currentRun,
123
132
  readDamageMark,
124
133
  readHealthMark,
125
134
  readJournalMark,
126
135
  recordDeepCheck
127
- } from "./chunk-XQXYAOBV.js";
136
+ } from "./chunk-DZHEVVXA.js";
128
137
  import {
129
138
  formatLocator,
130
- parseLocator,
131
- queryFieldsOf
132
- } from "./chunk-OFMYFFEF.js";
139
+ parseLocator
140
+ } from "./chunk-6VARUB3J.js";
133
141
  import {
134
142
  failureKey,
135
143
  isStoreDamage
136
- } from "./chunk-L3MKFI3Y.js";
144
+ } from "./chunk-UWDRU3R6.js";
145
+ import {
146
+ queryFieldsOf
147
+ } from "./chunk-AXKIXVQA.js";
137
148
  import {
138
149
  modelAddressAllowed,
139
150
  onThisComputer
140
- } from "./chunk-JCQ47WR4.js";
151
+ } from "./chunk-OOQFBRNR.js";
141
152
  import {
142
153
  readSharedSection,
143
154
  sharedConfigPath,
144
155
  writeSharedSection
145
- } from "./chunk-BZY5W35X.js";
156
+ } from "./chunk-Q5U2HIBJ.js";
146
157
  import {
147
158
  storePath
148
- } from "./chunk-IPSLQX64.js";
159
+ } from "./chunk-ZYEU35MB.js";
149
160
  import {
150
161
  openCache
151
- } from "./chunk-LXAX6AZU.js";
162
+ } from "./chunk-I3QZCQJT.js";
152
163
  import {
153
164
  Credentials,
154
165
  isMovedRun,
155
166
  resolvePaths,
156
167
  writeSecurely
157
- } from "./chunk-BRRHYXUP.js";
168
+ } from "./chunk-7FXZKQAC.js";
158
169
  import {
159
170
  array,
160
171
  boolean,
@@ -176,10 +187,10 @@ import {
176
187
  string,
177
188
  transform,
178
189
  trim
179
- } from "./chunk-UWF3SSRL.js";
190
+ } from "./chunk-YA44BG3N.js";
180
191
  import {
181
192
  CliError
182
- } from "./chunk-BI5P7JWM.js";
193
+ } from "./chunk-HM6AMYHR.js";
183
194
  import {
184
195
  __commonJS,
185
196
  __name,
@@ -5519,11 +5530,11 @@ var require_liquid_node = __commonJS({
5519
5530
  }
5520
5531
  });
5521
5532
 
5522
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5533
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5523
5534
  import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
5524
5535
  import { dirname as dirname3, resolve } from "node:path";
5525
5536
 
5526
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/sealed.js
5537
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/sealed.js
5527
5538
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5528
5539
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5529
5540
  import { Transform } from "node:stream";
@@ -5630,7 +5641,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5630
5641
  renameSync(pending, to);
5631
5642
  }, "unsealFile");
5632
5643
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5644
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5634
5645
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5635
5646
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5636
5647
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5654,7 +5665,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5654
5665
  };
5655
5666
  }, "compatibilityOf");
5656
5667
 
5657
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/repair.js
5668
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/repair.js
5658
5669
  import { createHash as createHash2 } from "node:crypto";
5659
5670
  var COPY_MARK = "__repair_";
5660
5671
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5908,19 +5919,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5908
5919
  return found;
5909
5920
  }, "deleteCopy");
5910
5921
 
5911
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5922
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5912
5923
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5913
5924
 
5914
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5925
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5915
5926
  import { existsSync as existsSync3 } from "node:fs";
5916
5927
 
5917
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/recover.js
5928
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/recover.js
5918
5929
  import { execFileSync, spawn } from "node:child_process";
5919
5930
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5920
5931
  import { basename, dirname, join } from "node:path";
5921
5932
  import { Transform as Transform2 } from "node:stream";
5922
5933
 
5923
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/refill.js
5934
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/refill.js
5924
5935
  var REFILL_MARGIN_MS = 864e5;
5925
5936
  var TIME_KEYS = 1e12;
5926
5937
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6000,7 +6011,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6000
6011
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6001
6012
  }, "forgetMail");
6002
6013
 
6003
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/recover.js
6014
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/recover.js
6004
6015
  var SQLITE3_MINIMUM = [3, 43, 0];
6005
6016
  var STORE_PARTS = ["", "-wal", "-shm"];
6006
6017
  var RECOVER_LOCK = ".recover-lock";
@@ -6277,6 +6288,9 @@ var FILLERS = {
6277
6288
  fillStems(database, { now });
6278
6289
  }, "message_stems"),
6279
6290
  attachment_words: /* @__PURE__ */ __name((database) => void resetAttachmentWords(database), "attachment_words"),
6291
+ crm_file_words: /* @__PURE__ */ __name((database) => void resetCrmFileWords(database), "crm_file_words"),
6292
+ tracker_item_words: /* @__PURE__ */ __name((database) => void resetTrackerItemWords(database), "tracker_item_words"),
6293
+ content_post_words: /* @__PURE__ */ __name((database) => void resetContentPostWords(database), "content_post_words"),
6280
6294
  attachment_name_words: /* @__PURE__ */ __name((database) => (
6281
6295
  // As migration 20 filled it: й and ё fold as the triggers fold them.
6282
6296
  database.exec("INSERT INTO attachment_name_words (rowid, name) SELECT id, replace(replace(replace(replace(name, '\u0439', '\u0438'), '\u0419', '\u0418'), '\u0451', '\u0435'), '\u0401', '\u0415') FROM attachments WHERE name IS NOT NULL")
@@ -6528,7 +6542,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6528
6542
  }
6529
6543
  }, "recoverLocked");
6530
6544
 
6531
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6545
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6532
6546
  var COUNTED = [
6533
6547
  "accounts",
6534
6548
  "chats",
@@ -6684,7 +6698,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6684
6698
  return recover;
6685
6699
  }, "storeRecoverCommand");
6686
6700
 
6687
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6701
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6688
6702
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6689
6703
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6690
6704
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6730,7 +6744,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6730
6744
  renderAnswer(this, outputFor(this), itemOf(answer));
6731
6745
  }), "storeInfoCommand");
6732
6746
 
6733
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6747
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6734
6748
  var ENCRYPT_OPTION = [
6735
6749
  "--encrypt",
6736
6750
  "compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
@@ -6749,7 +6763,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6749
6763
  return password;
6750
6764
  }, "passwordOf");
6751
6765
 
6752
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/rules.js
6766
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/rules.js
6753
6767
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6754
6768
  import { join as join2 } from "node:path";
6755
6769
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6920,7 +6934,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6920
6934
  }, "problem");
6921
6935
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6922
6936
 
6923
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/state.js
6937
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/state.js
6924
6938
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6925
6939
  import { join as join3 } from "node:path";
6926
6940
  var ANSWERED_KEPT = 1e3;
@@ -6973,7 +6987,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6973
6987
  }, "recordReply");
6974
6988
  var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
6975
6989
 
6976
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/decide.js
6990
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/decide.js
6977
6991
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6978
6992
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6979
6993
  const { message, chat, owner, sender } = incoming;
@@ -7079,10 +7093,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7079
7093
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7080
7094
  }, "filled");
7081
7095
 
7082
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/template.js
7096
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/template.js
7083
7097
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7084
7098
 
7085
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/render/liquid.js
7099
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/render/liquid.js
7086
7100
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7087
7101
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7088
7102
  const engine = new import_liquidjs.Liquid({
@@ -7109,7 +7123,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7109
7123
  return engine;
7110
7124
  }, "safeLiquid");
7111
7125
 
7112
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/template.js
7126
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/template.js
7113
7127
  var TEMPLATE_LIMITS = {
7114
7128
  parse: 32768,
7115
7129
  renders: 2e3,
@@ -7248,7 +7262,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7248
7262
  }
7249
7263
  }, "renderReplyTemplate");
7250
7264
 
7251
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7265
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7252
7266
  var DRY_RUN_DAYS = 7;
7253
7267
  var PAGE = 500;
7254
7268
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7362,7 +7376,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7362
7376
  }
7363
7377
  }, "storedSince");
7364
7378
 
7365
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/ai.js
7379
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/models/ai.js
7366
7380
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7367
7381
  var DEFAULT_BASE_URL = {
7368
7382
  anthropic: "https://api.anthropic.com",
@@ -7470,6 +7484,20 @@ var sharedModel = /* @__PURE__ */ __name((deps) => {
7470
7484
  return void 0;
7471
7485
  return { target: { ...aiTarget(setting), baseUrl: aiBaseUrl(setting) }, key: keyFor(setting, deps), setting };
7472
7486
  }, "sharedModel");
7487
+ var aiTextReader = /* @__PURE__ */ __name((deps) => {
7488
+ const setting = readAiSetting(aiSettingPath(deps.env));
7489
+ if (!setting)
7490
+ return { refused: "ai.not-set" };
7491
+ const key = keyFor(setting, deps);
7492
+ if (aiNeedsKey(setting) && !key)
7493
+ return { refused: "ai.key-missing" };
7494
+ const gateway = gatewayFor(setting, deps, key);
7495
+ return {
7496
+ by: `${setting.provider}/${setting.model}`,
7497
+ leavesComputer: aiLeavesComputer(setting),
7498
+ complete: /* @__PURE__ */ __name(async (request) => (await gateway.complete(request)).text, "complete")
7499
+ };
7500
+ }, "aiTextReader");
7473
7501
  var reasonOf = /* @__PURE__ */ __name((error) => {
7474
7502
  if (!(error instanceof CliError))
7475
7503
  return "ai.failed";
@@ -7512,7 +7540,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7512
7540
  }
7513
7541
  }, "checkAi");
7514
7542
 
7515
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/models/purpose.js
7543
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/models/purpose.js
7516
7544
  var HOSTED = {
7517
7545
  openai: "https://api.openai.com/v1",
7518
7546
  anthropic: "https://api.anthropic.com"
@@ -7533,7 +7561,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7533
7561
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7534
7562
  }, "purposeModel");
7535
7563
 
7536
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/consents.js
7564
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/consents.js
7537
7565
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7538
7566
  import { join as join4 } from "node:path";
7539
7567
  var shape = strictObject({
@@ -7558,7 +7586,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7558
7586
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7559
7587
  }, "mayModelReply");
7560
7588
 
7561
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7589
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7562
7590
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7563
7591
  ai: true
7564
7592
  }) => async (rule2, message, chat, now) => {
@@ -7606,7 +7634,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7606
7634
  return result2;
7607
7635
  }, "replyRenderer");
7608
7636
 
7609
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/replies/serve.js
7637
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/replies/serve.js
7610
7638
  var NOT_ALLOWED = "replies.send is not allow";
7611
7639
  var NO_RULES = "no rules";
7612
7640
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7699,7 +7727,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7699
7727
  return { skip: why };
7700
7728
  }, "replyTo");
7701
7729
 
7702
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7730
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7703
7731
  var START_SYNC_DELAY_MS = 3e4;
7704
7732
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7705
7733
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7776,7 +7804,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7776
7804
  };
7777
7805
  }, "startSync");
7778
7806
 
7779
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7807
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7780
7808
  var FIRST_FETCH_MS = 6e4;
7781
7809
  var DAY_MS = 864e5;
7782
7810
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7830,7 +7858,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7830
7858
  };
7831
7859
  }, "memberFetches");
7832
7860
 
7833
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7861
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7834
7862
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7835
7863
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7836
7864
  if (context.format === "pretty") {
@@ -7863,7 +7891,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7863
7891
  return context;
7864
7892
  }, "recordDiagnostics");
7865
7893
 
7866
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7894
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7867
7895
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7868
7896
  import { dirname as dirname2, join as join5 } from "node:path";
7869
7897
  var OUTDATED_CHECK_MS = 6e4;
@@ -7949,7 +7977,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7949
7977
  };
7950
7978
  }, "watchOutdated");
7951
7979
 
7952
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7980
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7953
7981
  var STEMS_EVERY_MS = 3e4;
7954
7982
  var STEMS_SLICE_MS = 2e3;
7955
7983
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7989,7 +8017,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7989
8017
  };
7990
8018
  }, "stemFills");
7991
8019
 
7992
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8020
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7993
8021
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7994
8022
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7995
8023
  kind: attachment.kind,
@@ -8085,7 +8113,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8085
8113
  locale: messenger.app.locale
8086
8114
  }), "viewOf");
8087
8115
 
8088
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8116
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8089
8117
  var observed = /* @__PURE__ */ __name((value) => ({
8090
8118
  value: value.value,
8091
8119
  observed_at: value.observedAt,
@@ -8152,7 +8180,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8152
8180
  }
8153
8181
  }, "watchEventItem");
8154
8182
 
8155
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8183
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8156
8184
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8157
8185
  output: { entity: "watch_item" },
8158
8186
  effects: REMOTE_READ,
@@ -8307,7 +8335,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8307
8335
  }
8308
8336
  }, "describe");
8309
8337
 
8310
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8338
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8311
8339
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8312
8340
  const command = annotate(new Command("serve"), {
8313
8341
  output: { entity: "serve_summary" },
@@ -8593,7 +8621,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8593
8621
  };
8594
8622
  }, "tasking");
8595
8623
 
8596
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8624
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8597
8625
  import { existsSync as existsSync9 } from "node:fs";
8598
8626
  var PATH = "store tables list";
8599
8627
  var STORE_TABLES_QUERY = {
@@ -8636,7 +8664,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8636
8664
  return tables;
8637
8665
  }, "storeTablesCommand");
8638
8666
 
8639
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8667
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8640
8668
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8641
8669
  var WORD_INDEX = "message_words";
8642
8670
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -8878,7 +8906,10 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
8878
8906
  ...schema.version > 0 ? SEARCH_INDEXES.map((index) => [index, indexIntegrity(database, index)]) : [],
8879
8907
  ...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
8880
8908
  ...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
8881
- ...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : []
8909
+ ...schema.version > 0 ? [["attachment_words", indexIntegrity(database, "attachment_words", 0)]] : [],
8910
+ ...schema.version >= 68 ? [["crm_file_words", indexIntegrity(database, "crm_file_words", 0)]] : [],
8911
+ ...schema.version >= 70 ? [["tracker_item_words", indexIntegrity(database, "tracker_item_words", 0)]] : [],
8912
+ ...schema.version >= 71 ? [["content_post_words", indexIntegrity(database, "content_post_words", 0)]] : []
8882
8913
  ]);
8883
8914
  const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
8884
8915
  const { bavail, bsize } = statfsSync2(dirname3(path));
@@ -9046,7 +9077,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
9046
9077
  throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
9047
9078
  }
9048
9079
  resetSearchIndex(database);
9049
- const fileTexts = resetAttachmentWords(database);
9080
+ const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
9050
9081
  const words = buildWordIndex(database, (note) => renderer.note(note));
9051
9082
  return {
9052
9083
  path,
@@ -9361,6 +9392,7 @@ export {
9361
9392
  aiTakesKey,
9362
9393
  aiLeavesComputer,
9363
9394
  sharedModel,
9395
+ aiTextReader,
9364
9396
  checkAi,
9365
9397
  purposeModel,
9366
9398
  replyConsentPathFor,
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",