@wirecat/drive-cli 0.68.0 → 0.70.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 (225) hide show
  1. package/contracts/wirecat.json +14 -13
  2. package/dist/age.d.ts +0 -36
  3. package/dist/age.d.ts.map +1 -1
  4. package/dist/age.js +0 -22
  5. package/dist/age.js.map +1 -1
  6. package/dist/bin/drive.js +2 -2
  7. package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-FW3GK3QO.js} +24 -34
  8. package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-QVKJT3II.js} +8 -8
  9. package/dist/bundle/{app-server-EB4DH6T7.js → app-server-QU73RD5R.js} +68 -76
  10. package/dist/bundle/{bun-PWMM6L45.js → bun-5XCD5CBB.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-TIGSVNSV.js} +9 -9
  12. package/dist/bundle/{chunk-7BXVI7XF.js → chunk-2SBC4DVV.js} +4 -4
  13. package/dist/bundle/{chunk-UFPRP7MG.js → chunk-3AHBZP33.js} +10 -15
  14. package/dist/bundle/{chunk-QRSPFCRY.js → chunk-3CHW7JGR.js} +17 -17
  15. package/dist/bundle/chunk-3TCMANIM.js +387 -0
  16. package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-3UWRAIWA.js} +5 -7
  17. package/dist/bundle/{chunk-5G2BY4B6.js → chunk-3UZ4OH22.js} +32 -31
  18. package/dist/bundle/{chunk-UIKVP23D.js → chunk-4WK26MPY.js} +1 -1
  19. package/dist/bundle/{chunk-WUFZGPXX.js → chunk-54BQWRJL.js} +7 -7
  20. package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
  21. package/dist/bundle/{chunk-QKY24RWV.js → chunk-5JTB4URG.js} +12 -12
  22. package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
  23. package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-6BMTW5A6.js} +9 -9
  24. package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6DPOWBKA.js} +6 -6
  25. package/dist/bundle/{chunk-YUGTJBV3.js → chunk-7C5KENNU.js} +3 -3
  26. package/dist/bundle/chunk-7DJNURKV.js +823 -0
  27. package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
  28. package/dist/bundle/chunk-7QSRODXM.js +259 -0
  29. package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
  30. package/dist/bundle/chunk-AV5UKJZM.js +729 -0
  31. package/dist/bundle/{chunk-IVOG6T6P.js → chunk-BBFXQPKD.js} +3 -3
  32. package/dist/bundle/{chunk-BXHFJTU5.js → chunk-BBRMDMIR.js} +3 -3
  33. package/dist/bundle/{chunk-DYLYH7VE.js → chunk-BD2K2ONK.js} +4 -4
  34. package/dist/bundle/{chunk-AIEMFRBU.js → chunk-BFKFKDPC.js} +1 -1
  35. package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-BXPC5TFG.js} +2 -2
  36. package/dist/bundle/chunk-DHX27E5M.js +31 -0
  37. package/dist/bundle/{chunk-6QR7NKMG.js → chunk-DR57KDAY.js} +109 -5
  38. package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-DVI72ZQG.js} +1 -1
  39. package/dist/bundle/{chunk-WGX4DZPW.js → chunk-DVVUJ254.js} +2 -2
  40. package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-EDO5LZVF.js} +1 -1
  41. package/dist/bundle/{chunk-QTRYJZL7.js → chunk-EG62WVR2.js} +6 -6
  42. package/dist/bundle/{chunk-WCNTDETD.js → chunk-F5KJWRF5.js} +98 -6
  43. package/dist/bundle/{chunk-D4MVEOU2.js → chunk-FADAOLGB.js} +4 -4
  44. package/dist/bundle/{chunk-FAMXUI2X.js → chunk-FCSHWUMW.js} +5 -5
  45. package/dist/bundle/{chunk-O7T3WGCV.js → chunk-FN3RXBO7.js} +6 -6
  46. package/dist/bundle/{chunk-5W65QTYS.js → chunk-FONIFRYI.js} +4 -4
  47. package/dist/bundle/{chunk-UUQJVKPB.js → chunk-FVTKFIQH.js} +2340 -1436
  48. package/dist/bundle/{chunk-7A77GYCE.js → chunk-FYPW7NMH.js} +4 -4
  49. package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
  50. package/dist/bundle/{chunk-GTLXBAJV.js → chunk-GAHIHE4K.js} +3035 -2482
  51. package/dist/bundle/{chunk-CMWFYZ45.js → chunk-GJZSVSV3.js} +2 -2
  52. package/dist/bundle/{chunk-QWGEOQHA.js → chunk-GK3BJMGK.js} +1 -1
  53. package/dist/bundle/{chunk-TI2OANJZ.js → chunk-GPDPEHYX.js} +1 -1
  54. package/dist/bundle/{chunk-KPKIHJIT.js → chunk-GV5DGHSA.js} +4 -4
  55. package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
  56. package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-HK225DAG.js} +1 -1
  57. package/dist/bundle/{chunk-MW46BLWH.js → chunk-HRATXUFH.js} +22 -20
  58. package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-HWUPU6WX.js} +8 -8
  59. package/dist/bundle/{chunk-6WAC2LOS.js → chunk-HYXXMSVD.js} +8614 -8597
  60. package/dist/bundle/{chunk-YYIWPH53.js → chunk-I7YSHUPW.js} +13 -13
  61. package/dist/bundle/{chunk-MWCPKUU4.js → chunk-IFTX7AQU.js} +5 -5
  62. package/dist/bundle/{chunk-SOS4U2RF.js → chunk-IGNIUDI3.js} +71 -49
  63. package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
  64. package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-KSJAFMU5.js} +78 -31
  65. package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-LINBDWJK.js} +2 -2
  66. package/dist/bundle/{chunk-43NEDPXB.js → chunk-LMJBQFW6.js} +6 -6
  67. package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
  68. package/dist/bundle/{chunk-PGPHEC2X.js → chunk-MXNQZAJQ.js} +2 -2
  69. package/dist/bundle/{chunk-RT5NT62B.js → chunk-NP7LJATI.js} +16 -70
  70. package/dist/bundle/chunk-OY7TNUEC.js +16 -0
  71. package/dist/bundle/{chunk-74NCZKRW.js → chunk-P77FL6RY.js} +18 -18
  72. package/dist/bundle/chunk-P7PLKNPX.js +3611 -0
  73. package/dist/bundle/{chunk-QVJMFZFW.js → chunk-PAPY6Q6H.js} +1 -1
  74. package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-PN4JYURZ.js} +102 -57
  75. package/dist/bundle/{chunk-MOKEB656.js → chunk-PR7XD2DI.js} +2 -2
  76. package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
  77. package/dist/bundle/{chunk-EXWZCI5G.js → chunk-QBAOIMVB.js} +1 -1
  78. package/dist/bundle/{chunk-ULNN3LCY.js → chunk-RCTOWLCD.js} +44 -37
  79. package/dist/bundle/{chunk-7TNQZKRD.js → chunk-REM5WHHQ.js} +77 -76
  80. package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
  81. package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-RLNZ7NX5.js} +2 -2
  82. package/dist/bundle/chunk-RQNRYF6D.js +170 -0
  83. package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
  84. package/dist/bundle/{chunk-CRIEW4FP.js → chunk-T5D4OGDC.js} +2 -2
  85. package/dist/bundle/{chunk-MLSXHTUB.js → chunk-TGS5VPJD.js} +1228 -455
  86. package/dist/bundle/chunk-TNKQDS5A.js +335 -0
  87. package/dist/bundle/{chunk-DU23ET2O.js → chunk-VVN6GHAZ.js} +60 -81
  88. package/dist/bundle/{chunk-PWIEOATY.js → chunk-WJK6KTCS.js} +325 -14
  89. package/dist/bundle/{chunk-U52QE4QV.js → chunk-WWE5GO6G.js} +3 -3
  90. package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-XOL346TJ.js} +2 -2
  91. package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-XZBA6FVH.js} +3 -3
  92. package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
  93. package/dist/bundle/{chunk-DIZBJLPM.js → chunk-YRUR3E3E.js} +68 -78
  94. package/dist/bundle/{chunk-EEE4H2PA.js → chunk-YZPE72GE.js} +12 -12
  95. package/dist/bundle/{chunk-F7KAMSXA.js → chunk-ZCXWV4XO.js} +4 -4
  96. package/dist/bundle/{chunk-NV75QPML.js → chunk-ZHZYGY5R.js} +4 -4
  97. package/dist/bundle/{cli-L7P36YUH.js → cli-K4D4DIGQ.js} +137 -88
  98. package/dist/bundle/command-contract-V3F452QI.js +43 -0
  99. package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-WREK3QBB.js} +33 -31
  100. package/dist/bundle/decode-SEETPKBH.js +299 -0
  101. package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
  102. package/dist/bundle/drive.js +11 -11
  103. package/dist/bundle/{echarts-SDZA2SWG.js → echarts-WZ5RKFCX.js} +2 -2
  104. package/dist/bundle/{embed-WUKOASQG.js → embed-B2UCRZZR.js} +9 -9
  105. package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-4R6Z7G7L.js} +12 -12
  106. package/dist/bundle/entry-ORZYRJ5N.js +25 -0
  107. package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
  108. package/dist/bundle/first-run-KAKA6KBY.js +31 -0
  109. package/dist/bundle/first-screen-R645UHRH.js +41 -0
  110. package/dist/bundle/google-BSO3YB7N.js +45 -0
  111. package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-SAND2F7L.js} +70 -63
  112. package/dist/bundle/grants-PLNFYARD.js +118 -0
  113. package/dist/bundle/{identity-SRL6RSU2.js → identity-JVVGS4U6.js} +6 -6
  114. package/dist/bundle/{instructions-7T6JJIFS.js → instructions-JSMTSB22.js} +1 -1
  115. package/dist/bundle/{login-N243GGEE.js → login-6WG3YBDU.js} +78 -71
  116. package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
  117. package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
  118. package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
  119. package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
  120. package/dist/bundle/{node-BZDMUFTW.js → node-VJMVHOWD.js} +2 -2
  121. package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-DCNT3HVE.js} +10 -10
  122. package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
  123. package/dist/bundle/{open-RVTPKDA3.js → open-NFOEHVW7.js} +8 -8
  124. package/dist/bundle/{openai-6NN63BMH.js → openai-D47WY7EC.js} +32 -30
  125. package/dist/bundle/{process-756VBE7E.js → process-Q2FRU5VA.js} +1 -1
  126. package/dist/bundle/{program-B4QBJYB5.js → program-T2AJJQEM.js} +1327 -1329
  127. package/dist/bundle/{prompt-HGP2DSRW.js → prompt-YJSDABXN.js} +8 -8
  128. package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
  129. package/dist/bundle/{recognize-26SHB7HI.js → recognize-6OBEIEB3.js} +7 -7
  130. package/dist/bundle/{remote-Z4PWHZ5N.js → remote-3SL2QJ7T.js} +13 -13
  131. package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-L6F5SLIB.js} +10 -10
  132. package/dist/bundle/{serve-MYJW5IEM.js → serve-GYSWIWH4.js} +12 -12
  133. package/dist/bundle/server-BI46BSRE.js +80 -0
  134. package/dist/bundle/{server-XFW3V7CR.js → server-GWWP3RIT.js} +62 -53
  135. package/dist/bundle/{services-IQG2RVTO.js → services-BDQBRXT5.js} +91 -51
  136. package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
  137. package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
  138. package/dist/bundle/{state-ATQK2X3W.js → state-HLNGFI2T.js} +9 -9
  139. package/dist/bundle/{store-QUBUPK6F.js → store-I43KZNJW.js} +35 -26
  140. package/dist/bundle/{store-MEHEUOJH.js → store-OSRTGYGI.js} +23 -19
  141. package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
  142. package/dist/bundle/tokens-DB7O7QNB.js +118 -0
  143. package/dist/catalog.d.ts +0 -28
  144. package/dist/catalog.d.ts.map +1 -1
  145. package/dist/catalog.js +0 -82
  146. package/dist/catalog.js.map +1 -1
  147. package/dist/commands/catalog.d.ts +3 -8
  148. package/dist/commands/catalog.d.ts.map +1 -1
  149. package/dist/commands/catalog.js +36 -109
  150. package/dist/commands/catalog.js.map +1 -1
  151. package/dist/commands/context.d.ts +3 -0
  152. package/dist/commands/context.d.ts.map +1 -1
  153. package/dist/commands/context.js +20 -0
  154. package/dist/commands/context.js.map +1 -1
  155. package/dist/commands/documents.d.ts.map +1 -1
  156. package/dist/commands/documents.js +30 -72
  157. package/dist/commands/documents.js.map +1 -1
  158. package/dist/commands/folders.d.ts +1 -1
  159. package/dist/commands/folders.d.ts.map +1 -1
  160. package/dist/commands/folders.js +45 -48
  161. package/dist/commands/folders.js.map +1 -1
  162. package/dist/commands/knowledge.d.ts +4 -21
  163. package/dist/commands/knowledge.d.ts.map +1 -1
  164. package/dist/commands/knowledge.js +3 -241
  165. package/dist/commands/knowledge.js.map +1 -1
  166. package/dist/commands/mirrors.d.ts +2 -2
  167. package/dist/commands/mirrors.d.ts.map +1 -1
  168. package/dist/commands/mirrors.js +46 -202
  169. package/dist/commands/mirrors.js.map +1 -1
  170. package/dist/commands/search.d.ts +1 -3
  171. package/dist/commands/search.d.ts.map +1 -1
  172. package/dist/commands/search.js +20 -42
  173. package/dist/commands/search.js.map +1 -1
  174. package/dist/commands/sync.d.ts.map +1 -1
  175. package/dist/commands/sync.js +36 -53
  176. package/dist/commands/sync.js.map +1 -1
  177. package/dist/contract-overrides.d.ts +0 -2
  178. package/dist/contract-overrides.d.ts.map +1 -1
  179. package/dist/contract-overrides.js +0 -317
  180. package/dist/contract-overrides.js.map +1 -1
  181. package/dist/knowledge.d.ts +1 -1
  182. package/dist/knowledge.d.ts.map +1 -1
  183. package/dist/knowledge.js +4 -3
  184. package/dist/knowledge.js.map +1 -1
  185. package/dist/list-queries.d.ts +0 -31
  186. package/dist/list-queries.d.ts.map +1 -1
  187. package/dist/list-queries.js +0 -36
  188. package/dist/list-queries.js.map +1 -1
  189. package/dist/policy.d.ts +1 -1
  190. package/dist/policy.d.ts.map +1 -1
  191. package/dist/policy.js +3 -3
  192. package/dist/policy.js.map +1 -1
  193. package/dist/program.d.ts.map +1 -1
  194. package/dist/program.js +2 -3
  195. package/dist/program.js.map +1 -1
  196. package/dist/provider-json.d.ts.map +1 -1
  197. package/dist/provider-json.js +5 -5
  198. package/dist/provider-json.js.map +1 -1
  199. package/dist/reasons.d.ts.map +1 -1
  200. package/dist/reasons.js +0 -10
  201. package/dist/reasons.js.map +1 -1
  202. package/dist/version.d.ts +1 -1
  203. package/dist/version.js +1 -1
  204. package/package.json +3 -3
  205. package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
  206. package/dist/bundle/chunk-AXYG2DDY.js +0 -4721
  207. package/dist/bundle/chunk-J5LXL435.js +0 -1316
  208. package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
  209. package/dist/bundle/command-contract-EYFGMKIG.js +0 -41
  210. package/dist/bundle/decode-JEU6JWCV.js +0 -165
  211. package/dist/bundle/entry-C4NUQFTF.js +0 -25
  212. package/dist/bundle/first-run-PKHBS7B4.js +0 -30
  213. package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
  214. package/dist/bundle/google-XXHSMTVK.js +0 -45
  215. package/dist/bundle/grants-2U4JVT6O.js +0 -111
  216. package/dist/bundle/oauth-CMAFXX6A.js +0 -22
  217. package/dist/bundle/server-HBZPIHDX.js +0 -74
  218. package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
  219. package/dist/bundle/tokens-A2GP4F34.js +0 -111
  220. package/dist/knowledge-query.d.ts +0 -77
  221. package/dist/knowledge-query.d.ts.map +0 -1
  222. package/dist/knowledge-query.js +0 -104
  223. package/dist/knowledge-query.js.map +0 -1
  224. package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
  225. package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
@@ -2,20 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  sharedModel
5
- } from "./chunk-Z5BMYI2V.js";
5
+ } from "./chunk-HWUPU6WX.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-5G2BY4B6.js";
9
+ } from "./chunk-3UZ4OH22.js";
10
10
  import {
11
11
  chatEventAnswer,
12
12
  memberAnswer,
13
13
  pollVoteAnswer,
14
- queryTerms,
15
- serveRelay,
16
- typedQuery,
17
- withQuery
18
- } from "./chunk-2UHQVRH2.js";
14
+ serveRelay
15
+ } from "./chunk-AV5UKJZM.js";
16
+ import {
17
+ holdLock,
18
+ lockPath,
19
+ releaseLock,
20
+ servingProfiles,
21
+ takeLock
22
+ } from "./chunk-WWE5GO6G.js";
19
23
  import {
20
24
  FETCHING,
21
25
  RULES_VERSION,
@@ -25,28 +29,24 @@ import {
25
29
  onlineDeps,
26
30
  openRequestTask,
27
31
  patiently,
32
+ queryTerms,
28
33
  refuseLockedOutput,
29
34
  senderIsMe,
30
35
  servicesFor,
31
- syncsOneChat
32
- } from "./chunk-GTLXBAJV.js";
36
+ syncsOneChat,
37
+ typedQuery,
38
+ withQuery
39
+ } from "./chunk-GAHIHE4K.js";
33
40
  import {
34
41
  embeddingKeys,
35
42
  endpointKeyName,
36
43
  modelGateway,
37
44
  withTimeLimit
38
- } from "./chunk-Q6BD6RUH.js";
45
+ } from "./chunk-PN4JYURZ.js";
39
46
  import {
40
47
  stringWidth,
41
48
  wrapAnsi
42
49
  } from "./chunk-HTQTIKWP.js";
43
- import {
44
- holdLock,
45
- lockPath,
46
- releaseLock,
47
- servingProfiles,
48
- takeLock
49
- } from "./chunk-U52QE4QV.js";
50
50
  import {
51
51
  QUICK_HEALTH_CHECKS,
52
52
  fts5Tables,
@@ -54,7 +54,7 @@ import {
54
54
  lossUnknown,
55
55
  storeDamageReport,
56
56
  storeHealth
57
- } from "./chunk-QRSPFCRY.js";
57
+ } from "./chunk-3CHW7JGR.js";
58
58
  import {
59
59
  Command,
60
60
  LOCAL_READ,
@@ -62,37 +62,35 @@ import {
62
62
  REMOTE_READ,
63
63
  REMOTE_WRITE,
64
64
  annotate,
65
+ codeOf,
65
66
  commandAt,
66
67
  destroysNothing,
67
68
  environmentOf,
68
69
  grantsAuthority,
69
70
  itemOf,
70
71
  jsonlRecords,
72
+ levelFor,
71
73
  lineOf,
72
74
  listOf,
73
75
  nextStep,
74
76
  outputFor,
77
+ parseDuration,
75
78
  recalledAccount,
76
79
  recordLogFor,
77
80
  renderAnswer,
78
81
  snakeKeys,
79
82
  storeTable,
80
83
  withoutProviderRefs
81
- } from "./chunk-MLSXHTUB.js";
82
- import {
83
- codeOf,
84
- levelFor,
85
- parseDuration
86
- } from "./chunk-J5LXL435.js";
84
+ } from "./chunk-TGS5VPJD.js";
87
85
  import {
88
86
  modelTarget
89
- } from "./chunk-7A77GYCE.js";
87
+ } from "./chunk-FYPW7NMH.js";
90
88
  import {
91
89
  holdersOf
92
- } from "./chunk-UIKVP23D.js";
90
+ } from "./chunk-4WK26MPY.js";
93
91
  import {
94
92
  readSecret
95
- } from "./chunk-ZAIE3G5I.js";
93
+ } from "./chunk-XZBA6FVH.js";
96
94
  import {
97
95
  CORPORA,
98
96
  MIGRATIONS,
@@ -127,10 +125,10 @@ import {
127
125
  storeClients,
128
126
  storeContents,
129
127
  vectorIndexCounts
130
- } from "./chunk-6WAC2LOS.js";
128
+ } from "./chunk-HYXXMSVD.js";
131
129
  import {
132
130
  openCache
133
- } from "./chunk-CVAJMRRD.js";
131
+ } from "./chunk-6DPOWBKA.js";
134
132
  import {
135
133
  currentRun,
136
134
  formatLocator,
@@ -139,25 +137,25 @@ import {
139
137
  readHealthMark,
140
138
  readJournalMark,
141
139
  recordDeepCheck
142
- } from "./chunk-AXYG2DDY.js";
143
- import {
144
- queryFieldsOf
145
- } from "./chunk-UPCEHSIZ.js";
140
+ } from "./chunk-YCL3SK4T.js";
146
141
  import {
147
142
  failureKey,
148
143
  isStoreDamage
149
- } from "./chunk-UYBLNGZ2.js";
144
+ } from "./chunk-RLNZ7NX5.js";
145
+ import {
146
+ queryFieldsOf
147
+ } from "./chunk-Q5C6YKAY.js";
150
148
  import {
151
149
  storePath
152
- } from "./chunk-CRIEW4FP.js";
150
+ } from "./chunk-T5D4OGDC.js";
153
151
  import {
154
152
  resolvePaths,
155
153
  writeSecurely
156
- } from "./chunk-MW46BLWH.js";
154
+ } from "./chunk-HRATXUFH.js";
157
155
  import {
158
156
  singleLine,
159
157
  visibleControls
160
- } from "./chunk-HCZYJMBP.js";
158
+ } from "./chunk-ABZ2NYDT.js";
161
159
  import {
162
160
  array,
163
161
  boolean,
@@ -178,10 +176,10 @@ import {
178
176
  string,
179
177
  transform,
180
178
  trim
181
- } from "./chunk-JRFKCYMW.js";
179
+ } from "./chunk-HHAZ6DCY.js";
182
180
  import {
183
181
  CliError
184
- } from "./chunk-EA2OB75T.js";
182
+ } from "./chunk-54NDYVZA.js";
185
183
  import {
186
184
  __commonJS,
187
185
  __name,
@@ -5521,11 +5519,11 @@ var require_liquid_node = __commonJS({
5521
5519
  }
5522
5520
  });
5523
5521
 
5524
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5522
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
5525
5523
  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
5524
  import { dirname as dirname3, resolve } from "node:path";
5527
5525
 
5528
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sealed.js
5526
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/sealed.js
5529
5527
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5530
5528
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5531
5529
  import { Transform } from "node:stream";
@@ -5632,7 +5630,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5632
5630
  renameSync(pending, to);
5633
5631
  }, "unsealFile");
5634
5632
 
5635
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5633
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/compatibility.js
5636
5634
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5637
5635
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5638
5636
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5656,7 +5654,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5656
5654
  };
5657
5655
  }, "compatibilityOf");
5658
5656
 
5659
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/repair.js
5657
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/repair.js
5660
5658
  import { createHash as createHash2 } from "node:crypto";
5661
5659
  var COPY_MARK = "__repair_";
5662
5660
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5910,19 +5908,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5910
5908
  return found;
5911
5909
  }, "deleteCopy");
5912
5910
 
5913
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5911
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/store-info.js
5914
5912
  import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
5915
5913
 
5916
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5914
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
5917
5915
  import { existsSync as existsSync3 } from "node:fs";
5918
5916
 
5919
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
5917
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/recover.js
5920
5918
  import { execFileSync, spawn } from "node:child_process";
5921
5919
  import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
5922
5920
  import { basename, dirname, join } from "node:path";
5923
5921
  import { Transform as Transform2 } from "node:stream";
5924
5922
 
5925
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/refill.js
5923
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/refill.js
5926
5924
  var REFILL_MARGIN_MS = 864e5;
5927
5925
  var TIME_KEYS = 1e12;
5928
5926
  var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
@@ -6002,7 +6000,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
6002
6000
  return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
6003
6001
  }, "forgetMail");
6004
6002
 
6005
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/recover.js
6003
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/recover.js
6006
6004
  var SQLITE3_MINIMUM = [3, 43, 0];
6007
6005
  var STORE_PARTS = ["", "-wal", "-shm"];
6008
6006
  var RECOVER_LOCK = ".recover-lock";
@@ -6530,7 +6528,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
6530
6528
  }
6531
6529
  }, "recoverLocked");
6532
6530
 
6533
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6531
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
6534
6532
  var COUNTED = [
6535
6533
  "accounts",
6536
6534
  "chats",
@@ -6686,7 +6684,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
6686
6684
  return recover;
6687
6685
  }, "storeRecoverCommand");
6688
6686
 
6689
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6687
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/store-info.js
6690
6688
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
6691
6689
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
6692
6690
  var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
@@ -6736,7 +6734,7 @@ var sharedStoreCommand = /* @__PURE__ */ __name((app) => {
6736
6734
  return app ? store.addCommand(storeRecoverCommand(app)) : store;
6737
6735
  }, "sharedStoreCommand");
6738
6736
 
6739
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6737
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
6740
6738
  var ENCRYPT_OPTION = [
6741
6739
  "--encrypt",
6742
6740
  "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"
@@ -6755,7 +6753,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
6755
6753
  return password;
6756
6754
  }, "passwordOf");
6757
6755
 
6758
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rules.js
6756
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/rules.js
6759
6757
  import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
6760
6758
  import { join as join2 } from "node:path";
6761
6759
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6926,7 +6924,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6926
6924
  }, "problem");
6927
6925
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6928
6926
 
6929
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/state.js
6927
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/state.js
6930
6928
  import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
6931
6929
  import { join as join3 } from "node:path";
6932
6930
  var ANSWERED_KEPT = 1e3;
@@ -6979,7 +6977,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6979
6977
  }, "recordReply");
6980
6978
  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");
6981
6979
 
6982
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/decide.js
6980
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/decide.js
6983
6981
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6984
6982
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6985
6983
  const { message, chat, owner, sender } = incoming;
@@ -7085,10 +7083,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
7085
7083
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
7086
7084
  }, "filled");
7087
7085
 
7088
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
7086
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/template.js
7089
7087
  var import_liquidjs2 = __toESM(require_liquid_node(), 1);
7090
7088
 
7091
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/render/liquid.js
7089
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/render/liquid.js
7092
7090
  var import_liquidjs = __toESM(require_liquid_node(), 1);
7093
7091
  var safeLiquid = /* @__PURE__ */ __name((limits) => {
7094
7092
  const engine = new import_liquidjs.Liquid({
@@ -7115,7 +7113,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
7115
7113
  return engine;
7116
7114
  }, "safeLiquid");
7117
7115
 
7118
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/template.js
7116
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/template.js
7119
7117
  var TEMPLATE_LIMITS = {
7120
7118
  parse: 32768,
7121
7119
  renders: 2e3,
@@ -7254,7 +7252,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
7254
7252
  }
7255
7253
  }, "renderReplyTemplate");
7256
7254
 
7257
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7255
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
7258
7256
  var DRY_RUN_DAYS = 7;
7259
7257
  var PAGE = 500;
7260
7258
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -7368,7 +7366,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
7368
7366
  }
7369
7367
  }, "storedSince");
7370
7368
 
7371
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/models/purpose.js
7369
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/purpose.js
7372
7370
  var HOSTED = {
7373
7371
  openai: "https://api.openai.com/v1",
7374
7372
  anthropic: "https://api.anthropic.com"
@@ -7389,7 +7387,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
7389
7387
  return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
7390
7388
  }, "purposeModel");
7391
7389
 
7392
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/consents.js
7390
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/consents.js
7393
7391
  import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
7394
7392
  import { join as join4 } from "node:path";
7395
7393
  var shape = strictObject({
@@ -7414,7 +7412,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
7414
7412
  return consent.provider === provider && !consent.deniedChats.includes(chat);
7415
7413
  }, "mayModelReply");
7416
7414
 
7417
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7415
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/rendering.js
7418
7416
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
7419
7417
  ai: true
7420
7418
  }) => async (rule2, message, chat, now) => {
@@ -7462,7 +7460,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
7462
7460
  return result2;
7463
7461
  }, "replyRenderer");
7464
7462
 
7465
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/replies/serve.js
7463
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/replies/serve.js
7466
7464
  var NOT_ALLOWED = "replies.send is not allow";
7467
7465
  var NO_RULES = "no rules";
7468
7466
  var ONLY_TASK = "opened a task, sent nothing";
@@ -7555,7 +7553,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
7555
7553
  return { skip: why };
7556
7554
  }, "replyTo");
7557
7555
 
7558
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7556
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
7559
7557
  var START_SYNC_DELAY_MS = 3e4;
7560
7558
  var START_SYNC_BUDGET_MS = 5 * 6e4;
7561
7559
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -7632,7 +7630,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
7632
7630
  };
7633
7631
  }, "startSync");
7634
7632
 
7635
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7633
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
7636
7634
  var FIRST_FETCH_MS = 6e4;
7637
7635
  var DAY_MS = 864e5;
7638
7636
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -7686,7 +7684,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
7686
7684
  };
7687
7685
  }, "memberFetches");
7688
7686
 
7689
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7687
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
7690
7688
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
7691
7689
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
7692
7690
  if (context.format === "pretty") {
@@ -7719,7 +7717,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7719
7717
  return context;
7720
7718
  }, "recordDiagnostics");
7721
7719
 
7722
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7720
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
7723
7721
  import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
7724
7722
  import { dirname as dirname2, join as join5 } from "node:path";
7725
7723
  var OUTDATED_CHECK_MS = 6e4;
@@ -7805,7 +7803,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
7805
7803
  };
7806
7804
  }, "watchOutdated");
7807
7805
 
7808
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7806
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
7809
7807
  var STEMS_EVERY_MS = 3e4;
7810
7808
  var STEMS_SLICE_MS = 2e3;
7811
7809
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7845,7 +7843,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7845
7843
  };
7846
7844
  }, "stemFills");
7847
7845
 
7848
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/render/messages.js
7846
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/render/messages.js
7849
7847
  import { styleText } from "node:util";
7850
7848
  var TIME_WIDTH = 8;
7851
7849
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -8021,7 +8019,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
8021
8019
  return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
8022
8020
  }, "editedAt");
8023
8021
 
8024
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8022
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
8025
8023
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
8026
8024
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
8027
8025
  kind: attachment.kind,
@@ -8117,7 +8115,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
8117
8115
  locale: messenger.app.locale
8118
8116
  }), "viewOf");
8119
8117
 
8120
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8118
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
8121
8119
  var observed = /* @__PURE__ */ __name((value) => ({
8122
8120
  value: value.value,
8123
8121
  observed_at: value.observedAt,
@@ -8184,7 +8182,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
8184
8182
  }
8185
8183
  }, "watchEventItem");
8186
8184
 
8187
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8185
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
8188
8186
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
8189
8187
  output: { entity: "watch_item" },
8190
8188
  effects: REMOTE_READ,
@@ -8339,7 +8337,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
8339
8337
  }
8340
8338
  }, "describe");
8341
8339
 
8342
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8340
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
8343
8341
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
8344
8342
  const command = annotate(new Command("serve"), {
8345
8343
  output: { entity: "serve_summary" },
@@ -8380,7 +8378,7 @@ var serveCommand = /* @__PURE__ */ __name((messenger) => {
8380
8378
  });
8381
8379
  }, "onReady");
8382
8380
  const counts = {};
8383
- const rules = replying(context, messenger, Date.parse(startedAt));
8381
+ const rules = replying(context, messenger, Date.parse(startedAt), () => messenger.resolveSettings(this.optsWithGlobals(), { env: context.env }));
8384
8382
  const tasks = tasking(context, warn);
8385
8383
  const { handled, startSyncDelayMs, outdated: outdatedHook } = environmentOf(this);
8386
8384
  const count3 = /* @__PURE__ */ __name((event) => {
@@ -8522,7 +8520,7 @@ var NO_REPLIES = {
8522
8520
  }, "stop"),
8523
8521
  summary: /* @__PURE__ */ __name(() => ({}), "summary")
8524
8522
  };
8525
- var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8523
+ var replying = /* @__PURE__ */ __name((context, messenger, since, reload) => {
8526
8524
  if (messenger.autoReplies === false)
8527
8525
  return NO_REPLIES;
8528
8526
  const controller = new AbortController();
@@ -8547,6 +8545,9 @@ var replying = /* @__PURE__ */ __name((context, messenger, since) => {
8547
8545
  if (connection === void 0 || controller.signal.aborted)
8548
8546
  return;
8549
8547
  const open = connection;
8548
+ const current = reload();
8549
+ settings.permissions = current.permissions;
8550
+ settings.permissionSources = current.permissionSources;
8550
8551
  const answer = await replyTo({
8551
8552
  rulesPath: repliesPathFor(app, profile, env),
8552
8553
  statePath: repliesStatePathFor(app, profile, env),
@@ -8622,7 +8623,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
8622
8623
  };
8623
8624
  }, "tasking");
8624
8625
 
8625
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8626
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
8626
8627
  import { existsSync as existsSync9 } from "node:fs";
8627
8628
  var PATH = "store tables list";
8628
8629
  var STORE_TABLES_QUERY = {
@@ -8665,7 +8666,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
8665
8666
  return tables;
8666
8667
  }, "storeTablesCommand");
8667
8668
 
8668
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8669
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
8669
8670
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
8670
8671
  var WORD_INDEX = "message_words";
8671
8672
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  isCliError
6
- } from "./chunk-EA2OB75T.js";
6
+ } from "./chunk-54NDYVZA.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-EA2OB75T.js";
6
+ } from "./chunk-54NDYVZA.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};