@wirecat/mail-cli 0.34.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 (150) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -1
  3. package/contracts/wirecat.json +52 -2
  4. package/dist/bin/mail.js +2 -2
  5. package/dist/bundle/agent-KWLCQCSC.js +39 -0
  6. package/dist/bundle/{all-profiles-2KUKROHY.js → all-profiles-6BDSMVOO.js} +63 -21
  7. package/dist/bundle/{anthropic-E5KRCEVC.js → anthropic-C3XUXUCJ.js} +5 -5
  8. package/dist/bundle/{app-server-HIQ3QO5K.js → app-server-GUHDK4OR.js} +81 -71
  9. package/dist/bundle/{bun-KARJPE5D.js → bun-FN7AM4AG.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-NHGX6ZUN.js → bun-sqlite-56IVBF22.js} +6 -6
  11. package/dist/bundle/{chunk-R2GS3GBJ.js → chunk-2B67TUIF.js} +96 -66
  12. package/dist/bundle/{chunk-4SKE5GYA.js → chunk-2UNQTKRH.js} +1 -1
  13. package/dist/bundle/{chunk-QXLYLVEC.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-NAENYLIO.js → chunk-3WAZKCDF.js} +2 -2
  17. package/dist/bundle/{chunk-V43KEZYA.js → chunk-46SBNO67.js} +9 -60
  18. package/dist/bundle/{chunk-A2Y2RFNW.js → chunk-4IASS7NQ.js} +57 -4
  19. package/dist/bundle/{chunk-OOYRMTX5.js → chunk-4U5ODZO7.js} +12 -26
  20. package/dist/bundle/{chunk-DYQGEZA2.js → chunk-5WYBI35N.js} +3 -3
  21. package/dist/bundle/{chunk-QFJC6POK.js → chunk-5XQI7WCJ.js} +1 -1
  22. package/dist/bundle/{chunk-2SCQ7Z4I.js → chunk-635AFLZO.js} +4 -4
  23. package/dist/bundle/{chunk-OJ3BI2U4.js → chunk-6B4WZVLN.js} +34 -28
  24. package/dist/bundle/{chunk-FNYWC6A3.js → chunk-6Q5THDNW.js} +3 -3
  25. package/dist/bundle/{chunk-CKVWAUBW.js → chunk-6VARUB3J.js} +12 -12
  26. package/dist/bundle/{chunk-EZAX77SM.js → chunk-7FXZKQAC.js} +86 -75
  27. package/dist/bundle/{chunk-H77ALM2Y.js → chunk-7JVKQ6NM.js} +4 -4
  28. package/dist/bundle/{chunk-HH647UBC.js → chunk-7KMI47AP.js} +104 -255
  29. package/dist/bundle/{chunk-DZRP4UCK.js → chunk-7PXAUMK5.js} +30 -15
  30. package/dist/bundle/{chunk-KGYK3OI3.js → chunk-7YMLEWTX.js} +43 -64
  31. package/dist/bundle/{chunk-OG5QO5RR.js → chunk-AISQNKT7.js} +8 -8
  32. package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
  33. package/dist/bundle/{chunk-QOQF2TX3.js → chunk-AXKIXVQA.js} +338 -299
  34. package/dist/bundle/{chunk-ZGZADWD7.js → chunk-CDGVYQXG.js} +1 -1
  35. package/dist/bundle/{chunk-Z6A6QPPW.js → chunk-CFQQTDSA.js} +1 -1
  36. package/dist/bundle/{chunk-QXYNDMA6.js → chunk-CMGZXBJW.js} +6 -6
  37. package/dist/bundle/{chunk-4URI6EAV.js → chunk-DD2P67NP.js} +3 -3
  38. package/dist/bundle/{chunk-X6IGETU6.js → chunk-DFHUJTP5.js} +2 -2
  39. package/dist/bundle/{chunk-WYGDALB3.js → chunk-DREU6TN6.js} +18 -18
  40. package/dist/bundle/{chunk-TZJC4AOK.js → chunk-DZHEVVXA.js} +53 -33
  41. package/dist/bundle/{chunk-RPNQXWRS.js → chunk-E6HSSKRX.js} +2 -2
  42. package/dist/bundle/{chunk-6LFRZDPV.js → chunk-EHAXFDDP.js} +1 -1
  43. package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
  44. package/dist/bundle/{chunk-NJVJH5MH.js → chunk-EX4Z7CCO.js} +3245 -1644
  45. package/dist/bundle/chunk-G662S2M4.js +559 -0
  46. package/dist/bundle/{chunk-JVGVLRBA.js → chunk-GG634DR3.js} +5 -5
  47. package/dist/bundle/{chunk-IMQ4CVZJ.js → chunk-GU3PYIV2.js} +2 -2
  48. package/dist/bundle/{chunk-LKTDW5LH.js → chunk-HF5QWKK2.js} +18 -8
  49. package/dist/bundle/chunk-HJDIMVFW.js +108 -0
  50. package/dist/bundle/{chunk-FORAOCZ3.js → chunk-HKWZG7CZ.js} +6 -6
  51. package/dist/bundle/{chunk-QQGPV3QN.js → chunk-HM6AMYHR.js} +2 -2
  52. package/dist/bundle/{chunk-AGZ7SNFF.js → chunk-HVXOA4FO.js} +1 -1
  53. package/dist/bundle/{chunk-NHD5BOJU.js → chunk-I3QZCQJT.js} +6 -6
  54. package/dist/bundle/{chunk-OX5MCGXL.js → chunk-ILEKGH44.js} +63 -54
  55. package/dist/bundle/{chunk-I3MS74OF.js → chunk-J5ULUTWE.js} +4 -4
  56. package/dist/bundle/{chunk-26DYRMXE.js → chunk-L4RCWRWS.js} +1 -1
  57. package/dist/bundle/chunk-MCJYJIH5.js +192 -0
  58. package/dist/bundle/{chunk-NWD7AFOR.js → chunk-NEDS4ORI.js} +2 -2
  59. package/dist/bundle/{chunk-VRGEDK4T.js → chunk-ODQCRZX5.js} +35 -12
  60. package/dist/bundle/chunk-OO4OKMNB.js +80 -0
  61. package/dist/bundle/{chunk-T2EE5M7O.js → chunk-OOQFBRNR.js} +144 -10
  62. package/dist/bundle/{chunk-PA4GEJXQ.js → chunk-OTP2HJ67.js} +9 -9
  63. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  64. package/dist/bundle/{chunk-6G4VQFVX.js → chunk-PQDQCCGG.js} +17 -17
  65. package/dist/bundle/{chunk-KLI5FKZ2.js → chunk-Q5U2HIBJ.js} +7 -7
  66. package/dist/bundle/{chunk-HRDCH2VB.js → chunk-QFMKCU42.js} +3664 -3339
  67. package/dist/bundle/{chunk-VBVR6JRC.js → chunk-QYCMB7JY.js} +269 -173
  68. package/dist/bundle/{chunk-6GGMFL7J.js → chunk-RBV2AM52.js} +2 -100
  69. package/dist/bundle/{chunk-XIF75Z7D.js → chunk-RJNKM3CQ.js} +1 -1
  70. package/dist/bundle/{chunk-SK3N4CK5.js → chunk-RQHWSNX4.js} +4 -4
  71. package/dist/bundle/{chunk-4VHK5UBM.js → chunk-RQJGX7F7.js} +3 -3
  72. package/dist/bundle/{chunk-PC3N3LH3.js → chunk-TARNPINT.js} +3 -3
  73. package/dist/bundle/{chunk-5GANGHQI.js → chunk-TP2BCK2Z.js} +9 -9
  74. package/dist/bundle/{chunk-ZZEWQR43.js → chunk-TP766H4O.js} +14 -14
  75. package/dist/bundle/{chunk-PVZMN3UZ.js → chunk-UHGKN5US.js} +8 -8
  76. package/dist/bundle/{chunk-4VM3UCSO.js → chunk-UWDRU3R6.js} +2 -2
  77. package/dist/bundle/{chunk-KNVTBDTE.js → chunk-V4O47JV6.js} +3 -3
  78. package/dist/bundle/{chunk-MGXYIVVJ.js → chunk-W4JYGMTU.js} +12 -12
  79. package/dist/bundle/{chunk-2GDLJKPT.js → chunk-W7ICCFG5.js} +1 -1
  80. package/dist/bundle/{chunk-KF6O4RZO.js → chunk-WDEVKKAD.js} +3 -3
  81. package/dist/bundle/{chunk-YWX5X5RI.js → chunk-WZKM5I7B.js} +19 -17
  82. package/dist/bundle/{chunk-MDISZMK4.js → chunk-XKKYRMGG.js} +4 -4
  83. package/dist/bundle/chunk-XQNKAM26.js +338 -0
  84. package/dist/bundle/{chunk-LOSYDRJU.js → chunk-YA44BG3N.js} +38 -9
  85. package/dist/bundle/{chunk-2VBEBPGX.js → chunk-YCIWSKOH.js} +9 -9
  86. package/dist/bundle/{chunk-NXERDBEK.js → chunk-YQTRKNZQ.js} +4 -4
  87. package/dist/bundle/chunk-YRAJFTFU.js +353 -0
  88. package/dist/bundle/{chunk-XWU3A7H6.js → chunk-YTI533XF.js} +2 -2
  89. package/dist/bundle/{chunk-PRDKEVUL.js → chunk-ZMYRPMAJ.js} +1 -1
  90. package/dist/bundle/{chunk-EGQJDEFY.js → chunk-ZX7HZDD6.js} +144 -562
  91. package/dist/bundle/{chunk-NI4GCP2T.js → chunk-ZYEU35MB.js} +2 -2
  92. package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
  93. package/dist/bundle/{command-server-entry-NF45UPEV.js → command-server-entry-TPJ47FYS.js} +28 -28
  94. package/dist/bundle/{decode-DUZA3EHC.js → decode-XHUASXQK.js} +5 -5
  95. package/dist/bundle/{dispatch-CDJZAMVP.js → dispatch-MQZHGGVP.js} +8 -8
  96. package/dist/bundle/{dist-RH7EMC4J.js → dist-BAE4IQ52.js} +23 -23
  97. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  98. package/dist/bundle/{echarts-GZHZBNRA.js → echarts-U7Z2PKIG.js} +2 -2
  99. package/dist/bundle/{embed-VE3CSJN4.js → embed-W7GPB6EI.js} +6 -6
  100. package/dist/bundle/{embedder-DSJ77DX5.js → embedder-T72XLFQ5.js} +9 -9
  101. package/dist/bundle/{failure-YH6HAGFT.js → failure-MP6VKL5Y.js} +2 -2
  102. package/dist/bundle/{first-run-3L7HLYTI.js → first-run-C44TJXRI.js} +12 -12
  103. package/dist/bundle/first-screen-IESI7DAU.js +39 -0
  104. package/dist/bundle/{instructions-OZK3BLIO.js → instructions-WGMWQNPP.js} +1 -1
  105. package/dist/bundle/mail.js +12 -12
  106. package/dist/bundle/{mcp-YUG4YR4R.js → mcp-YGOAUNC3.js} +2 -2
  107. package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
  108. package/dist/bundle/{meeting-model-U7LW5WEN.js → meeting-model-QVHLD4WI.js} +11 -11
  109. package/dist/bundle/{meeting-semantic-64IOIQRR.js → meeting-semantic-QKQHUHXX.js} +6 -6
  110. package/dist/bundle/{node-OS3VWBUZ.js → node-WANDMJJQ.js} +2 -2
  111. package/dist/bundle/{node-sqlite-RQ623VFA.js → node-sqlite-NM5XA4DR.js} +7 -7
  112. package/dist/bundle/{oauth-CBPAG734.js → oauth-6E63ELEE.js} +8 -8
  113. package/dist/bundle/{open-H4DGOMBC.js → open-5542RTLE.js} +5 -5
  114. package/dist/bundle/{openai-EMWRGR54.js → openai-NOYNPFB5.js} +15 -15
  115. package/dist/bundle/{process-3TOIYASI.js → process-7AEXXSBX.js} +1 -1
  116. package/dist/bundle/{program-WA6RGAJL.js → program-VMA5CGNR.js} +3184 -2163
  117. package/dist/bundle/{prompt-22KNCMBI.js → prompt-WYYO4AJL.js} +5 -5
  118. package/dist/bundle/{recognize-UWD4RSCZ.js → recognize-UGCCOMAS.js} +4 -4
  119. package/dist/bundle/{remote-LJY7MF2E.js → remote-VZS6BNQB.js} +9 -9
  120. package/dist/bundle/{rerank-JJ6KNJFB.js → rerank-O46D5GJ2.js} +7 -7
  121. package/dist/bundle/{serve-3EPLJYVZ.js → serve-QAAF2LCW.js} +10 -10
  122. package/dist/bundle/server-456MYK3X.js +84 -0
  123. package/dist/bundle/{server-5JOFO4V4.js → server-Q3PUZLLX.js} +75 -64
  124. package/dist/bundle/{sqlite-runtime-MGJA5E27.js → sqlite-runtime-EQBCDO2U.js} +6 -6
  125. package/dist/bundle/{state-UCRDOWOP.js → state-XIOHYXCR.js} +6 -6
  126. package/dist/bundle/{store-HS272YSA.js → store-OXJZZUR7.js} +34 -21
  127. package/dist/bundle/{store-265VRRQV.js → store-VJBL5XKR.js} +28 -23
  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 +5 -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/version.d.ts +1 -1
  143. package/dist/version.js +1 -1
  144. package/package.json +3 -3
  145. package/dist/bundle/chunk-FEBUZHU3.js +0 -2
  146. package/dist/bundle/command-contract-PZ7VOOXP.js +0 -39
  147. package/dist/bundle/first-screen-MY5KID77.js +0 -37
  148. package/dist/bundle/meeting-combined-RYMUPY54.js +0 -24
  149. package/dist/bundle/server-EOQNS7B7.js +0 -75
  150. package/dist/bundle/store-maintenance-command-IKZM5NRP.js +0 -66
@@ -2,43 +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-NAENYLIO.js";
5
+ } from "./chunk-3WAZKCDF.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-YWX5X5RI.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-HRDCH2VB.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-PC3N3LH3.js";
47
+ } from "./chunk-TARNPINT.js";
42
48
  import {
43
49
  Command,
44
50
  LOCAL_READ,
@@ -65,16 +71,16 @@ import {
65
71
  snakeKeys,
66
72
  storeTable,
67
73
  withoutProviderRefs
68
- } from "./chunk-VBVR6JRC.js";
74
+ } from "./chunk-QYCMB7JY.js";
69
75
  import {
70
76
  levelFor
71
- } from "./chunk-LKTDW5LH.js";
77
+ } from "./chunk-HF5QWKK2.js";
72
78
  import {
73
79
  holdersOf
74
- } from "./chunk-PRDKEVUL.js";
80
+ } from "./chunk-ZMYRPMAJ.js";
75
81
  import {
76
82
  readSecret
77
- } from "./chunk-DYQGEZA2.js";
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-6G4VQFVX.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,46 +126,46 @@ import {
117
126
  storeClients,
118
127
  storeContents,
119
128
  vectorIndexCounts
120
- } from "./chunk-NJVJH5MH.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-TZJC4AOK.js";
136
+ } from "./chunk-DZHEVVXA.js";
128
137
  import {
129
138
  formatLocator,
130
139
  parseLocator
131
- } from "./chunk-CKVWAUBW.js";
140
+ } from "./chunk-6VARUB3J.js";
132
141
  import {
133
142
  failureKey,
134
143
  isStoreDamage
135
- } from "./chunk-4VM3UCSO.js";
144
+ } from "./chunk-UWDRU3R6.js";
136
145
  import {
137
146
  queryFieldsOf
138
- } from "./chunk-QOQF2TX3.js";
147
+ } from "./chunk-AXKIXVQA.js";
139
148
  import {
140
149
  modelAddressAllowed,
141
150
  onThisComputer
142
- } from "./chunk-T2EE5M7O.js";
151
+ } from "./chunk-OOQFBRNR.js";
143
152
  import {
144
153
  readSharedSection,
145
154
  sharedConfigPath,
146
155
  writeSharedSection
147
- } from "./chunk-KLI5FKZ2.js";
156
+ } from "./chunk-Q5U2HIBJ.js";
148
157
  import {
149
158
  storePath
150
- } from "./chunk-NI4GCP2T.js";
159
+ } from "./chunk-ZYEU35MB.js";
151
160
  import {
152
161
  openCache
153
- } from "./chunk-NHD5BOJU.js";
162
+ } from "./chunk-I3QZCQJT.js";
154
163
  import {
155
164
  Credentials,
156
165
  isMovedRun,
157
166
  resolvePaths,
158
167
  writeSecurely
159
- } from "./chunk-EZAX77SM.js";
168
+ } from "./chunk-7FXZKQAC.js";
160
169
  import {
161
170
  array,
162
171
  boolean,
@@ -178,10 +187,10 @@ import {
178
187
  string,
179
188
  transform,
180
189
  trim
181
- } from "./chunk-LOSYDRJU.js";
190
+ } from "./chunk-YA44BG3N.js";
182
191
  import {
183
192
  CliError
184
- } from "./chunk-QQGPV3QN.js";
193
+ } from "./chunk-HM6AMYHR.js";
185
194
  import {
186
195
  __commonJS,
187
196
  __name,
@@ -5521,11 +5530,11 @@ var require_liquid_node = __commonJS({
5521
5530
  }
5522
5531
  });
5523
5532
 
5524
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5525
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";
5526
5535
  import { dirname as dirname3, resolve } from "node:path";
5527
5536
 
5528
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5529
5538
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5530
5539
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5531
5540
  import { Transform } from "node:stream";
@@ -5632,7 +5641,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5632
5641
  renameSync(pending, to);
5633
5642
  }, "unsealFile");
5634
5643
 
5635
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5636
5645
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5637
5646
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5638
5647
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5656,7 +5665,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5656
5665
  };
5657
5666
  }, "compatibilityOf");
5658
5667
 
5659
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5660
5669
  import { createHash as createHash2 } from "node:crypto";
5661
5670
  var COPY_MARK = "__repair_";
5662
5671
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5910,19 +5919,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5910
5919
  return found;
5911
5920
  }, "deleteCopy");
5912
5921
 
5913
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5914
5923
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5915
5924
 
5916
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5917
5926
  import { existsSync as existsSync3 } from "node:fs";
5918
5927
 
5919
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5920
5929
  import { execFileSync, spawn } from "node:child_process";
5921
5930
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5922
5931
  import { basename, dirname, join } from "node:path";
5923
5932
  import { Transform as Transform2 } from "node:stream";
5924
5933
 
5925
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
5926
5935
  var REFILL_MARGIN_MS = 864e5;
5927
5936
  var TIME_KEYS = 1e12;
5928
5937
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6002,7 +6011,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6002
6011
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6003
6012
  }, "forgetMail");
6004
6013
 
6005
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6006
6015
  var SQLITE3_MINIMUM = [3, 43, 0];
6007
6016
  var STORE_PARTS = ["", "-wal", "-shm"];
6008
6017
  var RECOVER_LOCK = ".recover-lock";
@@ -6279,6 +6288,9 @@ var FILLERS = {
6279
6288
  fillStems(database, { now });
6280
6289
  }, "message_stems"),
6281
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"),
6282
6294
  attachment_name_words: /* @__PURE__ */ __name((database) => (
6283
6295
  // As migration 20 filled it: й and ё fold as the triggers fold them.
6284
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")
@@ -6530,7 +6542,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6530
6542
  }
6531
6543
  }, "recoverLocked");
6532
6544
 
6533
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6534
6546
  var COUNTED = [
6535
6547
  "accounts",
6536
6548
  "chats",
@@ -6686,7 +6698,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6686
6698
  return recover;
6687
6699
  }, "storeRecoverCommand");
6688
6700
 
6689
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6690
6702
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6691
6703
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6692
6704
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6732,7 +6744,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
6732
6744
  renderAnswer(this, outputFor(this), itemOf(answer));
6733
6745
  }), "storeInfoCommand");
6734
6746
 
6735
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6736
6748
  var ENCRYPT_OPTION = [
6737
6749
  "--encrypt",
6738
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"
@@ -6751,7 +6763,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6751
6763
  return password;
6752
6764
  }, "passwordOf");
6753
6765
 
6754
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6755
6767
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6756
6768
  import { join as join2 } from "node:path";
6757
6769
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6922,7 +6934,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6922
6934
  }, "problem");
6923
6935
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6924
6936
 
6925
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6926
6938
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6927
6939
  import { join as join3 } from "node:path";
6928
6940
  var ANSWERED_KEPT = 1e3;
@@ -6975,7 +6987,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6975
6987
  }, "recordReply");
6976
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");
6977
6989
 
6978
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
6979
6991
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6980
6992
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6981
6993
  const { message, chat, owner, sender } = incoming;
@@ -7081,10 +7093,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7081
7093
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7082
7094
  }, "filled");
7083
7095
 
7084
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7085
7097
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7086
7098
 
7087
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7088
7100
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7089
7101
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7090
7102
  const engine = new import_liquidjs.Liquid({
@@ -7111,7 +7123,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7111
7123
  return engine;
7112
7124
  }, "safeLiquid");
7113
7125
 
7114
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7115
7127
  var TEMPLATE_LIMITS = {
7116
7128
  parse: 32768,
7117
7129
  renders: 2e3,
@@ -7250,7 +7262,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7250
7262
  }
7251
7263
  }, "renderReplyTemplate");
7252
7264
 
7253
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7254
7266
  var DRY_RUN_DAYS = 7;
7255
7267
  var PAGE = 500;
7256
7268
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7364,7 +7376,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7364
7376
  }
7365
7377
  }, "storedSince");
7366
7378
 
7367
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7368
7380
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
7369
7381
  var DEFAULT_BASE_URL = {
7370
7382
  anthropic: "https://api.anthropic.com",
@@ -7472,6 +7484,20 @@ var sharedModel = /* @__PURE__ */ __name((deps) => {
7472
7484
  return void 0;
7473
7485
  return { target: { ...aiTarget(setting), baseUrl: aiBaseUrl(setting) }, key: keyFor(setting, deps), setting };
7474
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");
7475
7501
  var reasonOf = /* @__PURE__ */ __name((error) => {
7476
7502
  if (!(error instanceof CliError))
7477
7503
  return "ai.failed";
@@ -7514,7 +7540,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
7514
7540
  }
7515
7541
  }, "checkAi");
7516
7542
 
7517
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7518
7544
  var HOSTED = {
7519
7545
  openai: "https://api.openai.com/v1",
7520
7546
  anthropic: "https://api.anthropic.com"
@@ -7535,7 +7561,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7535
7561
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7536
7562
  }, "purposeModel");
7537
7563
 
7538
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7539
7565
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7540
7566
  import { join as join4 } from "node:path";
7541
7567
  var shape = strictObject({
@@ -7560,7 +7586,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7560
7586
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7561
7587
  }, "mayModelReply");
7562
7588
 
7563
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7564
7590
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7565
7591
  ai: true
7566
7592
  }) => async (rule2, message, chat, now) => {
@@ -7608,7 +7634,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7608
7634
  return result2;
7609
7635
  }, "replyRenderer");
7610
7636
 
7611
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7612
7638
  var NOT_ALLOWED = "replies.send is not allow";
7613
7639
  var NO_RULES = "no rules";
7614
7640
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7701,7 +7727,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7701
7727
  return { skip: why };
7702
7728
  }, "replyTo");
7703
7729
 
7704
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7705
7731
  var START_SYNC_DELAY_MS = 3e4;
7706
7732
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7707
7733
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7778,7 +7804,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7778
7804
  };
7779
7805
  }, "startSync");
7780
7806
 
7781
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7782
7808
  var FIRST_FETCH_MS = 6e4;
7783
7809
  var DAY_MS = 864e5;
7784
7810
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7832,7 +7858,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7832
7858
  };
7833
7859
  }, "memberFetches");
7834
7860
 
7835
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7836
7862
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7837
7863
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7838
7864
  if (context.format === "pretty") {
@@ -7865,7 +7891,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7865
7891
  return context;
7866
7892
  }, "recordDiagnostics");
7867
7893
 
7868
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7869
7895
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7870
7896
  import { dirname as dirname2, join as join5 } from "node:path";
7871
7897
  var OUTDATED_CHECK_MS = 6e4;
@@ -7951,7 +7977,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7951
7977
  };
7952
7978
  }, "watchOutdated");
7953
7979
 
7954
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7955
7981
  var STEMS_EVERY_MS = 3e4;
7956
7982
  var STEMS_SLICE_MS = 2e3;
7957
7983
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7991,7 +8017,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7991
8017
  };
7992
8018
  }, "stemFills");
7993
8019
 
7994
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
7995
8021
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7996
8022
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7997
8023
  kind: attachment.kind,
@@ -8087,7 +8113,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8087
8113
  locale: messenger.app.locale
8088
8114
  }), "viewOf");
8089
8115
 
8090
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
8091
8117
  var observed = /* @__PURE__ */ __name((value) => ({
8092
8118
  value: value.value,
8093
8119
  observed_at: value.observedAt,
@@ -8154,7 +8180,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8154
8180
  }
8155
8181
  }, "watchEventItem");
8156
8182
 
8157
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
8158
8184
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8159
8185
  output: { entity: "watch_item" },
8160
8186
  effects: REMOTE_READ,
@@ -8309,7 +8335,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8309
8335
  }
8310
8336
  }, "describe");
8311
8337
 
8312
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
8313
8339
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8314
8340
  const command = annotate(new Command("serve"), {
8315
8341
  output: { entity: "serve_summary" },
@@ -8595,7 +8621,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8595
8621
  };
8596
8622
  }, "tasking");
8597
8623
 
8598
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
8599
8625
  import { existsSync as existsSync9 } from "node:fs";
8600
8626
  var PATH = "store tables list";
8601
8627
  var STORE_TABLES_QUERY = {
@@ -8638,7 +8664,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8638
8664
  return tables;
8639
8665
  }, "storeTablesCommand");
8640
8666
 
8641
- // node_modules/.pnpm/@wirecat+cli-core@0.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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
8642
8668
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8643
8669
  var WORD_INDEX = "message_words";
8644
8670
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -8880,7 +8906,10 @@ var inspect = /* @__PURE__ */ __name((path) => reading(path, (database) => {
8880
8906
  ...schema.version > 0 ? SEARCH_INDEXES.map((index) => [index, indexIntegrity(database, index)]) : [],
8881
8907
  ...wordIndex ? [[WORD_INDEX, indexIntegrity(database, WORD_INDEX, 0)]] : [],
8882
8908
  ...stems ? [["message_stems", indexIntegrity(database, "message_stems", 0)]] : [],
8883
- ...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)]] : []
8884
8913
  ]);
8885
8914
  const size = bytesOf2(path) + bytesOf2(`${path}-wal`);
8886
8915
  const { bavail, bsize } = statfsSync2(dirname3(path));
@@ -9048,7 +9077,7 @@ var reindexCommand = /* @__PURE__ */ __name((owner) => destroysNothing(annotate(
9048
9077
  throw new CliError("validation_error", `the store is behind this build \u2014 \`${lineOf(this, "store migrate")}\` first`);
9049
9078
  }
9050
9079
  resetSearchIndex(database);
9051
- const fileTexts = resetAttachmentWords(database);
9080
+ const fileTexts = resetAttachmentWords(database) + resetCrmFileWords(database) + resetTrackerItemWords(database) + resetContentPostWords(database);
9052
9081
  const words = buildWordIndex(database, (note) => renderer.note(note));
9053
9082
  return {
9054
9083
  path,
@@ -9363,6 +9392,7 @@ export {
9363
9392
  aiTakesKey,
9364
9393
  aiLeavesComputer,
9365
9394
  sharedModel,
9395
+ aiTextReader,
9366
9396
  checkAi,
9367
9397
  purposeModel,
9368
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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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.674.0_@wirecat+cli-base@0.103.0_commander@15.0.0_esbuild@0.28.2_typ_fc1e3fbb1256d0776f2342adda6f86ff/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",