@wirecat/mail-cli 0.16.3 → 0.17.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 (260) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +7 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
  5. package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
  6. package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
  7. package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
  9. package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
  10. package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
  11. package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
  12. package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
  13. package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
  14. package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
  15. package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
  16. package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
  17. package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
  18. package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
  19. package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
  20. package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
  21. package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
  22. package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
  23. package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
  24. package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
  25. package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
  26. package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
  27. package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
  28. package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
  29. package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
  30. package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
  31. package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
  32. package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
  33. package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
  34. package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
  35. package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
  36. package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
  37. package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
  38. package/dist/bundle/chunk-M6GLFDWV.js +64 -0
  39. package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
  40. package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
  41. package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
  42. package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
  43. package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
  44. package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
  45. package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
  46. package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
  47. package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
  48. package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
  49. package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
  50. package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
  51. package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
  52. package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
  53. package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
  54. package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
  55. package/dist/bundle/{chunk-5KPPP3QN.js → chunk-T4RRZILQ.js} +14 -2
  56. package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
  57. package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
  58. package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
  59. package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
  60. package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
  61. package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
  62. package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
  63. package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
  64. package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
  65. package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
  66. package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
  67. package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
  68. package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
  69. package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
  70. package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
  71. package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
  72. package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
  73. package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
  74. package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
  75. package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
  76. package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
  77. package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
  78. package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
  81. package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
  82. package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
  83. package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
  84. package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
  85. package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
  86. package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
  87. package/dist/bundle/{program-4ILOQHLO.js → program-4ZCATQND.js} +3380 -12407
  88. package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
  89. package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
  90. package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
  91. package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
  92. package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
  93. package/dist/bundle/server-GYVOIGF5.js +64 -0
  94. package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
  95. package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
  96. package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
  97. package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
  98. package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
  99. package/dist/bundle/store-maintenance-command-WRRZ7Q7B.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +56 -64
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/attachments.d.ts.map +1 -1
  104. package/dist/commands/attachments.js +15 -12
  105. package/dist/commands/attachments.js.map +1 -1
  106. package/dist/commands/context.d.ts +4 -0
  107. package/dist/commands/context.d.ts.map +1 -1
  108. package/dist/commands/context.js +12 -1
  109. package/dist/commands/context.js.map +1 -1
  110. package/dist/commands/doctor.d.ts.map +1 -0
  111. package/dist/{mail → commands}/doctor.js +1 -1
  112. package/dist/commands/doctor.js.map +1 -0
  113. package/dist/commands/drafts-send.d.ts.map +1 -1
  114. package/dist/commands/drafts-send.js +12 -10
  115. package/dist/commands/drafts-send.js.map +1 -1
  116. package/dist/commands/drafts.d.ts.map +1 -1
  117. package/dist/commands/drafts.js +28 -14
  118. package/dist/commands/drafts.js.map +1 -1
  119. package/dist/commands/export.d.ts.map +1 -1
  120. package/dist/commands/export.js +194 -195
  121. package/dist/commands/export.js.map +1 -1
  122. package/dist/commands/folders.d.ts.map +1 -1
  123. package/dist/commands/folders.js +19 -32
  124. package/dist/commands/folders.js.map +1 -1
  125. package/dist/commands/import.d.ts.map +1 -1
  126. package/dist/commands/import.js +10 -5
  127. package/dist/commands/import.js.map +1 -1
  128. package/dist/commands/messages.d.ts +0 -21
  129. package/dist/commands/messages.d.ts.map +1 -1
  130. package/dist/commands/messages.js +10 -278
  131. package/dist/commands/messages.js.map +1 -1
  132. package/dist/commands/organising.d.ts +98 -0
  133. package/dist/commands/organising.d.ts.map +1 -0
  134. package/dist/commands/organising.js +231 -0
  135. package/dist/commands/organising.js.map +1 -0
  136. package/dist/commands/restore.d.ts +3 -0
  137. package/dist/commands/restore.d.ts.map +1 -0
  138. package/dist/commands/restore.js +93 -0
  139. package/dist/commands/restore.js.map +1 -0
  140. package/dist/commands/rules.d.ts.map +1 -1
  141. package/dist/commands/rules.js +3 -2
  142. package/dist/commands/rules.js.map +1 -1
  143. package/dist/commands/send.d.ts +14 -3
  144. package/dist/commands/send.d.ts.map +1 -1
  145. package/dist/commands/send.js +18 -11
  146. package/dist/commands/send.js.map +1 -1
  147. package/dist/commands/session-start.d.ts.map +1 -1
  148. package/dist/commands/session-start.js +14 -4
  149. package/dist/commands/session-start.js.map +1 -1
  150. package/dist/commands/status.d.ts.map +1 -1
  151. package/dist/commands/status.js +10 -4
  152. package/dist/commands/status.js.map +1 -1
  153. package/dist/commands/sync.d.ts.map +1 -1
  154. package/dist/commands/sync.js +136 -141
  155. package/dist/commands/sync.js.map +1 -1
  156. package/dist/commands/tags.d.ts.map +1 -1
  157. package/dist/commands/tags.js +11 -7
  158. package/dist/commands/tags.js.map +1 -1
  159. package/dist/commands/words.d.ts +8 -0
  160. package/dist/commands/words.d.ts.map +1 -0
  161. package/dist/commands/words.js +52 -0
  162. package/dist/commands/words.js.map +1 -0
  163. package/dist/discovery.d.ts.map +1 -1
  164. package/dist/discovery.js +2 -1
  165. package/dist/discovery.js.map +1 -1
  166. package/dist/export/journal.d.ts +8 -6
  167. package/dist/export/journal.d.ts.map +1 -1
  168. package/dist/export/journal.js +39 -14
  169. package/dist/export/journal.js.map +1 -1
  170. package/dist/mail/changes.d.ts +9 -2
  171. package/dist/mail/changes.d.ts.map +1 -1
  172. package/dist/mail/changes.js +45 -17
  173. package/dist/mail/changes.js.map +1 -1
  174. package/dist/mail/cleanup.d.ts.map +1 -1
  175. package/dist/mail/cleanup.js +5 -1
  176. package/dist/mail/cleanup.js.map +1 -1
  177. package/dist/mail/domain-age.d.ts.map +1 -1
  178. package/dist/mail/domain-age.js +24 -6
  179. package/dist/mail/domain-age.js.map +1 -1
  180. package/dist/mail/drafts.d.ts.map +1 -1
  181. package/dist/mail/drafts.js +9 -7
  182. package/dist/mail/drafts.js.map +1 -1
  183. package/dist/mail/imap/connection.d.ts.map +1 -1
  184. package/dist/mail/imap/connection.js +8 -9
  185. package/dist/mail/imap/connection.js.map +1 -1
  186. package/dist/mail/imap/errors.d.ts.map +1 -1
  187. package/dist/mail/imap/errors.js +2 -2
  188. package/dist/mail/imap/errors.js.map +1 -1
  189. package/dist/mail/imap/read.d.ts.map +1 -1
  190. package/dist/mail/imap/read.js +8 -5
  191. package/dist/mail/imap/read.js.map +1 -1
  192. package/dist/mail/imap/write.d.ts.map +1 -1
  193. package/dist/mail/imap/write.js +2 -1
  194. package/dist/mail/imap/write.js.map +1 -1
  195. package/dist/mail/locate.d.ts +32 -0
  196. package/dist/mail/locate.d.ts.map +1 -0
  197. package/dist/mail/locate.js +99 -0
  198. package/dist/mail/locate.js.map +1 -0
  199. package/dist/mail/mbox.d.ts.map +1 -1
  200. package/dist/mail/mbox.js +7 -5
  201. package/dist/mail/mbox.js.map +1 -1
  202. package/dist/mail/organise.d.ts +35 -50
  203. package/dist/mail/organise.d.ts.map +1 -1
  204. package/dist/mail/organise.js +44 -279
  205. package/dist/mail/organise.js.map +1 -1
  206. package/dist/mail/restore.d.ts +22 -0
  207. package/dist/mail/restore.d.ts.map +1 -0
  208. package/dist/mail/restore.js +193 -0
  209. package/dist/mail/restore.js.map +1 -0
  210. package/dist/mail/rules/apply.d.ts.map +1 -1
  211. package/dist/mail/rules/apply.js +5 -4
  212. package/dist/mail/rules/apply.js.map +1 -1
  213. package/dist/mail/rules/file.d.ts.map +1 -1
  214. package/dist/mail/rules/file.js +37 -8
  215. package/dist/mail/rules/file.js.map +1 -1
  216. package/dist/mail/rules/filters.d.ts.map +1 -1
  217. package/dist/mail/rules/filters.js +13 -7
  218. package/dist/mail/rules/filters.js.map +1 -1
  219. package/dist/mail/rules/query.d.ts.map +1 -1
  220. package/dist/mail/rules/query.js +7 -7
  221. package/dist/mail/rules/query.js.map +1 -1
  222. package/dist/mail/save.js +1 -1
  223. package/dist/mail/save.js.map +1 -1
  224. package/dist/mail/send.d.ts +4 -3
  225. package/dist/mail/send.d.ts.map +1 -1
  226. package/dist/mail/send.js +8 -8
  227. package/dist/mail/send.js.map +1 -1
  228. package/dist/mail/smtp.js +1 -1
  229. package/dist/mail/smtp.js.map +1 -1
  230. package/dist/oauth.d.ts +3 -2
  231. package/dist/oauth.d.ts.map +1 -1
  232. package/dist/oauth.js +16 -7
  233. package/dist/oauth.js.map +1 -1
  234. package/dist/profile.d.ts.map +1 -1
  235. package/dist/profile.js +3 -2
  236. package/dist/profile.js.map +1 -1
  237. package/dist/program.js +1 -1
  238. package/dist/program.js.map +1 -1
  239. package/dist/providers.js +3 -3
  240. package/dist/providers.js.map +1 -1
  241. package/dist/reasons.d.ts.map +1 -1
  242. package/dist/reasons.js +12 -0
  243. package/dist/reasons.js.map +1 -1
  244. package/dist/version.d.ts +1 -1
  245. package/dist/version.js +1 -1
  246. package/package.json +5 -4
  247. package/skills/mail-cli/SKILL.md +3 -3
  248. package/dist/bundle/chunk-GIKNAOER.js +0 -132
  249. package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
  250. package/dist/bundle/first-screen-NNX54MYC.js +0 -32
  251. package/dist/bundle/server-SGGMRV2K.js +0 -64
  252. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
  253. package/dist/index.d.ts +0 -3
  254. package/dist/index.d.ts.map +0 -1
  255. package/dist/index.js +0 -3
  256. package/dist/index.js.map +0 -1
  257. package/dist/mail/doctor.d.ts.map +0 -1
  258. package/dist/mail/doctor.js.map +0 -1
  259. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-CNMSF5QU.js} +0 -0
  260. /package/dist/{mail → commands}/doctor.d.ts +0 -0
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  renderMessages
5
- } from "./chunk-VD6GZ3W2.js";
5
+ } from "./chunk-QEO7MI3E.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-WKHHCCJE.js";
9
+ } from "./chunk-S4NIDBLI.js";
10
10
  import {
11
11
  FETCHING,
12
12
  RULES_VERSION,
@@ -25,20 +25,21 @@ import {
25
25
  servicesFor,
26
26
  syncsOneChat,
27
27
  typedQuery,
28
- withQuery
29
- } from "./chunk-MLWN27HF.js";
28
+ withQuery,
29
+ withTimeLimit
30
+ } from "./chunk-YO7BLBVE.js";
30
31
  import {
31
32
  checkedOptions,
32
33
  range
33
- } from "./chunk-POS35G6D.js";
34
+ } from "./chunk-VMXMHC6E.js";
34
35
  import {
35
36
  messagesFor,
36
37
  systemFor,
37
38
  validateImages
38
- } from "./chunk-3ZJE5TIG.js";
39
+ } from "./chunk-CHC2LWKY.js";
39
40
  import {
40
41
  readSecret
41
- } from "./chunk-VTJ5TMGN.js";
42
+ } from "./chunk-CHVHIDNK.js";
42
43
  import {
43
44
  Command,
44
45
  LOCAL_READ,
@@ -66,23 +67,23 @@ import {
66
67
  snakeKeys,
67
68
  storeTable,
68
69
  withoutProviderRefs
69
- } from "./chunk-IJYYD2JU.js";
70
+ } from "./chunk-IPFFPD3M.js";
70
71
  import {
71
72
  levelFor
72
- } from "./chunk-DDQXDX4U.js";
73
+ } from "./chunk-OFZDCUUJ.js";
73
74
  import {
74
75
  failureKey
75
- } from "./chunk-DKIAHQRN.js";
76
+ } from "./chunk-SQAAOEGI.js";
76
77
  import {
77
78
  holdLock,
78
79
  lockPath,
79
80
  releaseLock,
80
81
  servingProfiles,
81
82
  takeLock
82
- } from "./chunk-CT2MIWXY.js";
83
+ } from "./chunk-RQGTRB73.js";
83
84
  import {
84
85
  holdersOf
85
- } from "./chunk-3CVDHJER.js";
86
+ } from "./chunk-WHI3LTAW.js";
86
87
  import {
87
88
  MIGRATIONS,
88
89
  drainNoteIndex,
@@ -109,26 +110,26 @@ import {
109
110
  storeClients,
110
111
  storeContents,
111
112
  vectorIndexCounts
112
- } from "./chunk-X7EBOXBY.js";
113
+ } from "./chunk-MRTSDBTN.js";
113
114
  import {
114
115
  formatLocator,
115
116
  parseLocator
116
- } from "./chunk-EBEYU7RW.js";
117
+ } from "./chunk-45JQ72CH.js";
117
118
  import {
118
119
  queryFieldsOf
119
- } from "./chunk-4IEDXIUN.js";
120
+ } from "./chunk-OHS5CYZI.js";
120
121
  import {
121
122
  storePath
122
- } from "./chunk-TTOKDZQX.js";
123
+ } from "./chunk-RFFE5ACS.js";
123
124
  import {
124
125
  openCache
125
- } from "./chunk-EZIJPXDZ.js";
126
+ } from "./chunk-QRNL5DIS.js";
126
127
  import {
127
128
  Credentials,
128
129
  pathsAreOverridden,
129
130
  resolvePaths,
130
131
  writeSecurely
131
- } from "./chunk-QCNK3YUZ.js";
132
+ } from "./chunk-4HTTN4NO.js";
132
133
  import {
133
134
  array,
134
135
  boolean,
@@ -152,10 +153,10 @@ import {
152
153
  transform,
153
154
  trim,
154
155
  union
155
- } from "./chunk-G6RG2AZV.js";
156
+ } from "./chunk-XJQJ3ZIY.js";
156
157
  import {
157
158
  CliError
158
- } from "./chunk-EB2IULWB.js";
159
+ } from "./chunk-YHUCNI2W.js";
159
160
  import {
160
161
  __commonJS,
161
162
  __name,
@@ -5495,11 +5496,11 @@ var require_liquid_node = __commonJS({
5495
5496
  }
5496
5497
  });
5497
5498
 
5498
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5499
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5499
5500
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5500
5501
  import { dirname, resolve } from "node:path";
5501
5502
 
5502
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/sealed.js
5503
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sealed.js
5503
5504
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5504
5505
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5505
5506
  import { Transform } from "node:stream";
@@ -5606,7 +5607,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5606
5607
  renameSync(pending, to);
5607
5608
  }, "unsealFile");
5608
5609
 
5609
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5610
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5610
5611
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5611
5612
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5612
5613
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5630,7 +5631,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5630
5631
  };
5631
5632
  }, "compatibilityOf");
5632
5633
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/repair.js
5634
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/store/repair.js
5634
5635
  import { createHash as createHash2 } from "node:crypto";
5635
5636
  var COPY_MARK = "__repair_";
5636
5637
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5884,7 +5885,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5884
5885
  return found;
5885
5886
  }, "deleteCopy");
5886
5887
 
5887
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5888
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5888
5889
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5889
5890
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5890
5891
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5931,7 +5932,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5931
5932
  renderAnswer(this, outputFor(this), itemOf(answer));
5932
5933
  }), "storeInfoCommand");
5933
5934
 
5934
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5935
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
5935
5936
  var ENCRYPT_OPTION = [
5936
5937
  "--encrypt",
5937
5938
  "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"
@@ -5950,7 +5951,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5950
5951
  return password;
5951
5952
  }, "passwordOf");
5952
5953
 
5953
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/rules.js
5954
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/rules.js
5954
5955
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5955
5956
  import { join } from "node:path";
5956
5957
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6121,7 +6122,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6121
6122
  }, "problem");
6122
6123
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6123
6124
 
6124
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/state.js
6125
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/state.js
6125
6126
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6126
6127
  import { join as join2 } from "node:path";
6127
6128
  var ANSWERED_KEPT = 1e3;
@@ -6174,7 +6175,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6174
6175
  }, "recordReply");
6175
6176
  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");
6176
6177
 
6177
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/decide.js
6178
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/decide.js
6178
6179
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6179
6180
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6180
6181
  const { message, chat, owner, sender } = incoming;
@@ -6280,7 +6281,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6280
6281
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6281
6282
  }, "filled");
6282
6283
 
6283
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/template.js
6284
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/template.js
6284
6285
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6285
6286
  var TEMPLATE_LIMITS = {
6286
6287
  parse: 32768,
@@ -6440,7 +6441,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6440
6441
  }
6441
6442
  }, "renderReplyTemplate");
6442
6443
 
6443
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6444
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
6444
6445
  var DRY_RUN_DAYS = 7;
6445
6446
  var PAGE = 500;
6446
6447
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6554,7 +6555,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6554
6555
  }
6555
6556
  }, "storedSince");
6556
6557
 
6557
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6558
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
6558
6559
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6559
6560
  const host = new URL(baseUrl).host;
6560
6561
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6585,7 +6586,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6585
6586
  };
6586
6587
  }, "embeddingKeys");
6587
6588
 
6588
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/openai.js
6589
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/models/openai.js
6589
6590
  var options = strictObject({
6590
6591
  temperature: range(0, 2),
6591
6592
  top_p: range(0, 1),
@@ -6599,7 +6600,7 @@ var openai = {
6599
6600
  images: true,
6600
6601
  baseUrl: "https://api.openai.com/v1",
6601
6602
  validate: /* @__PURE__ */ __name((given) => checkedOptions("openai", options, given), "validate"),
6602
- complete: /* @__PURE__ */ __name(async (target, request, checked, apiKey, fetcher) => {
6603
+ complete: /* @__PURE__ */ __name((target, request, checked, apiKey, fetcher) => withTimeLimit(12e4, async (deadline) => {
6603
6604
  const response = await fetcher(`${target.baseUrl.replace(/\/+$/, "")}/chat/completions`, {
6604
6605
  method: "POST",
6605
6606
  headers: { "Content-Type": "application/json", ...apiKey ? { Authorization: `Bearer ${apiKey}` } : {} },
@@ -6621,7 +6622,7 @@ var openai = {
6621
6622
  ],
6622
6623
  ...new URL(target.baseUrl).hostname === "api.openai.com" ? { max_completion_tokens: request.maxTokens } : { max_tokens: request.maxTokens }
6623
6624
  }),
6624
- signal: AbortSignal.timeout(12e4),
6625
+ signal: deadline,
6625
6626
  redirect: "error"
6626
6627
  });
6627
6628
  if (!response.ok)
@@ -6631,10 +6632,10 @@ var openai = {
6631
6632
  if (choice?.finish_reason !== "stop" || typeof choice.message?.content !== "string" || !Number.isInteger(body.usage?.total_tokens) || (body.usage?.total_tokens ?? 0) < 1)
6632
6633
  throw new Error("incomplete response");
6633
6634
  return { text: choice.message.content, tokens: body.usage?.total_tokens };
6634
- }, "complete")
6635
+ }), "complete")
6635
6636
  };
6636
6637
 
6637
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/models/index.js
6638
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/models/index.js
6638
6639
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6639
6640
  complete: /* @__PURE__ */ __name(async (request) => {
6640
6641
  if (deps.signal?.aborted)
@@ -6649,7 +6650,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6649
6650
  if (!adapter && target.provider === "openai")
6650
6651
  adapter = openai;
6651
6652
  if (!adapter && target.provider === "anthropic")
6652
- adapter = (await import("./anthropic-KQOVSP6C.js")).anthropic;
6653
+ adapter = (await import("./anthropic-I7RI7YPK.js")).anthropic;
6653
6654
  if (!adapter)
6654
6655
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6655
6656
  if (request.images !== void 0 && adapter.images !== true)
@@ -6690,7 +6691,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6690
6691
  }, "complete")
6691
6692
  }), "modelGateway");
6692
6693
 
6693
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/consents.js
6694
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/consents.js
6694
6695
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6695
6696
  import { join as join3 } from "node:path";
6696
6697
  var shape = strictObject({
@@ -6715,7 +6716,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6715
6716
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6716
6717
  }, "mayModelReply");
6717
6718
 
6718
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6719
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/rendering.js
6719
6720
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6720
6721
  ai: true
6721
6722
  }) => async (rule2, message, chat, now) => {
@@ -6762,7 +6763,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6762
6763
  return result2;
6763
6764
  }, "replyRenderer");
6764
6765
 
6765
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/replies/serve.js
6766
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/replies/serve.js
6766
6767
  var NOT_ALLOWED = "replies.send is not allow";
6767
6768
  var NO_RULES = "no rules";
6768
6769
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6855,7 +6856,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6855
6856
  return { skip: why };
6856
6857
  }, "replyTo");
6857
6858
 
6858
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
6859
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
6859
6860
  var START_SYNC_DELAY_MS = 3e4;
6860
6861
  var START_SYNC_BUDGET_MS = 5 * 6e4;
6861
6862
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -6866,8 +6867,8 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
6866
6867
  let pass = Promise.resolve();
6867
6868
  let started = false;
6868
6869
  let done;
6869
- const run = /* @__PURE__ */ __name(async () => {
6870
- const stop = AbortSignal.any([controller.signal, AbortSignal.timeout(budgetMs)]);
6870
+ const run = /* @__PURE__ */ __name(() => withTimeLimit(budgetMs, (deadline) => catchUp(AbortSignal.any([controller.signal, deadline]))), "run");
6871
+ const catchUp = /* @__PURE__ */ __name(async (stop) => {
6871
6872
  const floor = now() - windowMs;
6872
6873
  const moved = [];
6873
6874
  for (const chat of await chats(stop)) {
@@ -6908,7 +6909,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
6908
6909
  code: "start_sync",
6909
6910
  text: `caught up ${summary.fetched} message(s) in ${summary.chats} chat(s) that moved while serve was down` + (summary.stopped ? ` \u2014 stopped at the time limit, ${behind.length - summary.chats - summary.failed} left` : "")
6910
6911
  });
6911
- }, "run");
6912
+ }, "catchUp");
6912
6913
  return {
6913
6914
  start: /* @__PURE__ */ __name(() => {
6914
6915
  if (started || controller.signal.aborted)
@@ -6932,7 +6933,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
6932
6933
  };
6933
6934
  }, "startSync");
6934
6935
 
6935
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6936
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
6936
6937
  var FIRST_FETCH_MS = 6e4;
6937
6938
  var DAY_MS = 864e5;
6938
6939
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6986,7 +6987,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6986
6987
  };
6987
6988
  }, "memberFetches");
6988
6989
 
6989
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6990
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
6990
6991
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6991
6992
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6992
6993
  if (context.format === "pretty") {
@@ -7019,7 +7020,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7019
7020
  return context;
7020
7021
  }, "recordDiagnostics");
7021
7022
 
7022
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7023
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7023
7024
  var STEMS_EVERY_MS = 3e4;
7024
7025
  var STEMS_SLICE_MS = 2e3;
7025
7026
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7059,7 +7060,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7059
7060
  };
7060
7061
  }, "stemFills");
7061
7062
 
7062
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7063
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
7063
7064
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7064
7065
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7065
7066
  kind: attachment.kind,
@@ -7154,7 +7155,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7154
7155
  locale: messenger.app.locale
7155
7156
  }), "viewOf");
7156
7157
 
7157
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7158
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
7158
7159
  var observed = /* @__PURE__ */ __name((value) => ({
7159
7160
  value: value.value,
7160
7161
  observed_at: value.observedAt,
@@ -7221,7 +7222,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7221
7222
  }
7222
7223
  }, "watchEventItem");
7223
7224
 
7224
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7225
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
7225
7226
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7226
7227
  output: { entity: "watch_item" },
7227
7228
  effects: REMOTE_READ,
@@ -7376,7 +7377,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7376
7377
  }
7377
7378
  }, "describe");
7378
7379
 
7379
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7380
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
7380
7381
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7381
7382
  const command = annotate(new Command("serve"), {
7382
7383
  output: { entity: "serve_summary" },
@@ -7640,7 +7641,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7640
7641
  };
7641
7642
  }, "tasking");
7642
7643
 
7643
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7644
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
7644
7645
  import { existsSync as existsSync6 } from "node:fs";
7645
7646
  var PATH = "store tables list";
7646
7647
  var STORE_TABLES_QUERY = {
@@ -7683,7 +7684,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7683
7684
  return tables;
7684
7685
  }, "storeTablesCommand");
7685
7686
 
7686
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7687
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
7687
7688
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7688
7689
  var WORD_INDEX = "message_words";
7689
7690
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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 {