@wirecat/mail-cli 0.14.0 → 0.16.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 (163) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +5 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-TUDREUUW.js} +10 -10
  5. package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-KQOVSP6C.js} +6 -6
  6. package/dist/bundle/{app-server-LBKMJMKN.js → app-server-QK7PKVT7.js} +47 -47
  7. package/dist/bundle/{bun-KF5QK2YN.js → bun-2NMWL5YB.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-Y4FP6SDX.js} +5 -5
  9. package/dist/bundle/{chunk-UJEO3VWA.js → chunk-3CVDHJER.js} +1 -1
  10. package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-3ZJE5TIG.js} +2 -2
  11. package/dist/bundle/{chunk-UHHARH5X.js → chunk-4IEDXIUN.js} +308 -236
  12. package/dist/bundle/{chunk-KBFIKUCA.js → chunk-4IIH5PXR.js} +28 -28
  13. package/dist/bundle/{chunk-ZCPUKUST.js → chunk-5FPQGUJA.js} +1 -1
  14. package/dist/bundle/{chunk-DPKHVBP3.js → chunk-6DVPPLAN.js} +5 -5
  15. package/dist/bundle/{chunk-XRJIQC6P.js → chunk-7LMTWOTP.js} +2 -2
  16. package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-ANFIIXBL.js} +2 -2
  17. package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-ARDUJR5Z.js} +1 -1
  18. package/dist/bundle/{chunk-AOVOIXGR.js → chunk-B2NDDA2W.js} +10 -10
  19. package/dist/bundle/{chunk-MQK2UNG4.js → chunk-CGH6UH3T.js} +8 -8
  20. package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-CRYWPLJP.js} +1 -1
  21. package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-CT2MIWXY.js} +3 -3
  22. package/dist/bundle/{chunk-7LDC275M.js → chunk-DDQXDX4U.js} +7 -7
  23. package/dist/bundle/{chunk-2KVR7FF3.js → chunk-DKIAHQRN.js} +9 -9
  24. package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
  25. package/dist/bundle/{chunk-MXG4L7NH.js → chunk-EBEYU7RW.js} +10 -10
  26. package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
  27. package/dist/bundle/{chunk-E7BTD4P6.js → chunk-EZIJPXDZ.js} +6 -6
  28. package/dist/bundle/{chunk-RE5SEGSR.js → chunk-FHY664YS.js} +4 -4
  29. package/dist/bundle/{chunk-B5XAETYU.js → chunk-FROWEHK7.js} +2 -2
  30. package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
  31. package/dist/bundle/{chunk-P547HU26.js → chunk-GAYW2JRW.js} +10 -10
  32. package/dist/bundle/{chunk-2A4BAMNF.js → chunk-GIKNAOER.js} +4 -4
  33. package/dist/bundle/{chunk-UMWR5PKA.js → chunk-HN3EDDVX.js} +13 -13
  34. package/dist/bundle/{chunk-7GSE57K3.js → chunk-HVAXTTOT.js} +3 -3
  35. package/dist/bundle/{chunk-G53HRGTK.js → chunk-I3K6JG4I.js} +17 -17
  36. package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-IJYYD2JU.js} +383 -204
  37. package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K2OQCQ2N.js} +6 -6
  38. package/dist/bundle/{chunk-P62Z3Q35.js → chunk-KJV3BI7S.js} +14 -14
  39. package/dist/bundle/{chunk-DIP3ENSY.js → chunk-KMZRXGTF.js} +1 -1
  40. package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
  41. package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-LMN7SYX4.js} +1 -1
  42. package/dist/bundle/{chunk-I7EWIIBC.js → chunk-M24BGP7M.js} +2 -3
  43. package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M6O4DH5F.js} +1 -1
  44. package/dist/bundle/{chunk-WVWNKZI4.js → chunk-MLWN27HF.js} +465 -280
  45. package/dist/bundle/{chunk-VA3JKERH.js → chunk-N7DLDEFU.js} +2 -2
  46. package/dist/bundle/{chunk-QZXHMQCM.js → chunk-OYB3FUYQ.js} +1 -1
  47. package/dist/bundle/{chunk-I62OTHDE.js → chunk-POS35G6D.js} +3 -3
  48. package/dist/bundle/{chunk-5C74F7XX.js → chunk-PWTEWT4M.js} +4 -4
  49. package/dist/bundle/{chunk-NVQUK2DH.js → chunk-PYX6K527.js} +47 -47
  50. package/dist/bundle/{chunk-VERSKGJV.js → chunk-Q4T2HBZP.js} +2 -2
  51. package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
  52. package/dist/bundle/{chunk-OGK7LMYT.js → chunk-R6SBRHVG.js} +6 -6
  53. package/dist/bundle/{chunk-WBJQEB6E.js → chunk-RPEW7E3S.js} +12 -12
  54. package/dist/bundle/{chunk-X5XIFNTI.js → chunk-TTOKDZQX.js} +2 -2
  55. package/dist/bundle/{chunk-NGZW2JPK.js → chunk-UBLFUQ7O.js} +7 -7
  56. package/dist/bundle/{chunk-W643XZIR.js → chunk-VD6GZ3W2.js} +2 -2
  57. package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VP5FL5JQ.js} +8 -8
  58. package/dist/bundle/{chunk-XPREXN3W.js → chunk-VTJ5TMGN.js} +3 -3
  59. package/dist/bundle/{chunk-IPKXRW6W.js → chunk-WKHHCCJE.js} +26 -25
  60. package/dist/bundle/{chunk-KLLKDOO2.js → chunk-X7EBOXBY.js} +485 -309
  61. package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-XAANQN4R.js} +47 -28
  62. package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
  63. package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-XEIGKPYU.js} +27 -6
  64. package/dist/bundle/{chunk-FTGCXIQA.js → chunk-YGJO5VNR.js} +47 -33
  65. package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
  66. package/dist/bundle/{chunk-ER6PJAPK.js → chunk-ZNW4E3SG.js} +3 -3
  67. package/dist/bundle/{chunk-F5SZVO3A.js → chunk-ZS6YKNYS.js} +4 -4
  68. package/dist/bundle/command-contract-GVNLRXWS.js +34 -0
  69. package/dist/bundle/{decode-X7Y2VSYZ.js → decode-WCS4KOHV.js} +5 -5
  70. package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
  71. package/dist/bundle/{dist-L7FNC74Q.js → dist-FL422DTA.js} +14 -14
  72. package/dist/bundle/{echarts-5AB3LFVD.js → echarts-45D6USAX.js} +2 -2
  73. package/dist/bundle/{embed-VBS5LRCE.js → embed-4B4ATLCN.js} +6 -6
  74. package/dist/bundle/{embedder-VFSYBDKK.js → embedder-ASWGJXNV.js} +9 -9
  75. package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
  76. package/dist/bundle/{first-run-NO2ODH2W.js → first-run-5K3UD4BU.js} +11 -11
  77. package/dist/bundle/first-screen-NNX54MYC.js +32 -0
  78. package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6EFSPC7C.js} +1 -1
  79. package/dist/bundle/mail.js +12 -12
  80. package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
  81. package/dist/bundle/{node-TL2PBNKO.js → node-OXC26QXO.js} +2 -2
  82. package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-PXHZAG7Y.js} +6 -6
  83. package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-YK2QLC7U.js} +7 -7
  84. package/dist/bundle/{open-NUWYOKPO.js → open-SABDXZ4B.js} +5 -5
  85. package/dist/bundle/{openai-YLBFVK5X.js → openai-DPURPXEU.js} +14 -14
  86. package/dist/bundle/{process-PWAGP6YY.js → process-YWPAOI6G.js} +1 -1
  87. package/dist/bundle/{program-PPUPVL7O.js → program-L43S7DRF.js} +12245 -11133
  88. package/dist/bundle/{prompt-M5U66RVJ.js → prompt-GKVNFGFE.js} +5 -5
  89. package/dist/bundle/{recognize-DCMDZA2U.js → recognize-344YDSLX.js} +4 -4
  90. package/dist/bundle/{remote-4SHI5WJG.js → remote-53UZUJJU.js} +7 -7
  91. package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-PAIRND6R.js} +7 -7
  92. package/dist/bundle/{serve-HO3WME4G.js → serve-DZSO7LJK.js} +9 -9
  93. package/dist/bundle/{server-R3TIPRZN.js → server-EGG3V67I.js} +39 -39
  94. package/dist/bundle/server-SGGMRV2K.js +64 -0
  95. package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-ZQ6F3VYZ.js} +6 -6
  96. package/dist/bundle/{state-QOMUDOGF.js → state-LXPOWLZ5.js} +6 -6
  97. package/dist/bundle/{store-RGO6IABA.js → store-4ZMSK5R5.js} +15 -15
  98. package/dist/bundle/{store-LHHMOE5V.js → store-PHT75I6S.js} +21 -19
  99. package/dist/bundle/store-maintenance-command-C6ONZNRX.js +54 -0
  100. package/dist/commands/account.d.ts.map +1 -1
  101. package/dist/commands/account.js +149 -3
  102. package/dist/commands/account.js.map +1 -1
  103. package/dist/commands/context.d.ts +3 -0
  104. package/dist/commands/context.d.ts.map +1 -1
  105. package/dist/commands/context.js +2 -2
  106. package/dist/commands/context.js.map +1 -1
  107. package/dist/commands/import.d.ts +3 -0
  108. package/dist/commands/import.d.ts.map +1 -0
  109. package/dist/commands/import.js +92 -0
  110. package/dist/commands/import.js.map +1 -0
  111. package/dist/commands/read.d.ts.map +1 -1
  112. package/dist/commands/read.js +29 -3
  113. package/dist/commands/read.js.map +1 -1
  114. package/dist/commands/session-start.d.ts.map +1 -1
  115. package/dist/commands/session-start.js +9 -7
  116. package/dist/commands/session-start.js.map +1 -1
  117. package/dist/commands/stats.d.ts.map +1 -1
  118. package/dist/commands/stats.js +49 -2
  119. package/dist/commands/stats.js.map +1 -1
  120. package/dist/commands/sync.d.ts +2 -0
  121. package/dist/commands/sync.d.ts.map +1 -1
  122. package/dist/commands/sync.js +38 -4
  123. package/dist/commands/sync.js.map +1 -1
  124. package/dist/config.d.ts +12 -1
  125. package/dist/config.d.ts.map +1 -1
  126. package/dist/config.js +30 -1
  127. package/dist/config.js.map +1 -1
  128. package/dist/mail/doctor.d.ts +3 -2
  129. package/dist/mail/doctor.d.ts.map +1 -1
  130. package/dist/mail/doctor.js +14 -16
  131. package/dist/mail/doctor.js.map +1 -1
  132. package/dist/mail/domain-age.d.ts +29 -0
  133. package/dist/mail/domain-age.d.ts.map +1 -0
  134. package/dist/mail/domain-age.js +157 -0
  135. package/dist/mail/domain-age.js.map +1 -0
  136. package/dist/mail/mbox.d.ts +9 -0
  137. package/dist/mail/mbox.d.ts.map +1 -0
  138. package/dist/mail/mbox.js +230 -0
  139. package/dist/mail/mbox.js.map +1 -0
  140. package/dist/oauth.d.ts +13 -9
  141. package/dist/oauth.d.ts.map +1 -1
  142. package/dist/oauth.js +12 -25
  143. package/dist/oauth.js.map +1 -1
  144. package/dist/profile.d.ts +4 -1
  145. package/dist/profile.d.ts.map +1 -1
  146. package/dist/profile.js +6 -1
  147. package/dist/profile.js.map +1 -1
  148. package/dist/program.d.ts.map +1 -1
  149. package/dist/program.js +15 -2
  150. package/dist/program.js.map +1 -1
  151. package/dist/reasons.d.ts +1 -1
  152. package/dist/reasons.d.ts.map +1 -1
  153. package/dist/reasons.js +0 -1
  154. package/dist/reasons.js.map +1 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +4 -4
  158. package/skills/mail-cli/SKILL.md +2 -0
  159. package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
  160. package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
  161. package/dist/bundle/server-244FHPY4.js +0 -64
  162. package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
  163. /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CAPABILITY_STATEMENTS,
5
5
  storeCapable
6
- } from "./chunk-E7BTD4P6.js";
6
+ } from "./chunk-EZIJPXDZ.js";
7
7
  import {
8
8
  importFrom
9
9
  } from "./chunk-Y5E2WNWB.js";
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
14
+ // 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/sqlite-runtime.js
15
15
  import { spawn, spawnSync } from "node:child_process";
16
16
  import { readFileSync } from "node:fs";
17
17
  import { dirname } from "node:path";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/http/listen.js
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/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -9,15 +9,15 @@ import {
9
9
  optional,
10
10
  pipe,
11
11
  safeParse
12
- } from "./chunk-IVDUR5Y4.js";
12
+ } from "./chunk-G6RG2AZV.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-CCHHEMPM.js";
15
+ } from "./chunk-EB2IULWB.js";
16
16
  import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/options.js
20
+ // 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/options.js
21
21
  var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
22
22
  const parsed = safeParse(schema, options);
23
23
  if (!parsed.success) {
@@ -5,15 +5,15 @@ import {
5
5
  readLock,
6
6
  releaseLock,
7
7
  takeLock
8
- } from "./chunk-Q5EYTU3Q.js";
8
+ } from "./chunk-CT2MIWXY.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
13
+ // 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/mcp/http/state.js
14
14
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
16
+ // 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/mcp/http/activity.js
17
17
  import { randomBytes } from "node:crypto";
18
18
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
86
86
  };
87
87
  }, "activityRecorder");
88
88
 
89
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
89
+ // 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/mcp/http/state.js
90
90
  var ACCESS_SECONDS = 60 * 60;
91
91
  var REFRESH_SECONDS = 30 * 24 * 60 * 60;
92
92
  var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
@@ -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-W643XZIR.js";
5
+ } from "./chunk-VD6GZ3W2.js";
6
6
  import {
7
7
  answerOf,
8
8
  messengerContext
9
- } from "./chunk-IPKXRW6W.js";
9
+ } from "./chunk-WKHHCCJE.js";
10
10
  import {
11
11
  FETCHING,
12
12
  RULES_VERSION,
@@ -26,19 +26,19 @@ import {
26
26
  syncsOneChat,
27
27
  typedQuery,
28
28
  withQuery
29
- } from "./chunk-WVWNKZI4.js";
29
+ } from "./chunk-MLWN27HF.js";
30
30
  import {
31
31
  checkedOptions,
32
32
  range
33
- } from "./chunk-I62OTHDE.js";
33
+ } from "./chunk-POS35G6D.js";
34
34
  import {
35
35
  messagesFor,
36
36
  systemFor,
37
37
  validateImages
38
- } from "./chunk-6EZ7XGRG.js";
38
+ } from "./chunk-3ZJE5TIG.js";
39
39
  import {
40
40
  readSecret
41
- } from "./chunk-XPREXN3W.js";
41
+ } from "./chunk-VTJ5TMGN.js";
42
42
  import {
43
43
  Command,
44
44
  LOCAL_READ,
@@ -66,23 +66,23 @@ import {
66
66
  snakeKeys,
67
67
  storeTable,
68
68
  withoutProviderRefs
69
- } from "./chunk-YG4OI3HJ.js";
69
+ } from "./chunk-IJYYD2JU.js";
70
70
  import {
71
71
  levelFor
72
- } from "./chunk-7LDC275M.js";
72
+ } from "./chunk-DDQXDX4U.js";
73
73
  import {
74
74
  failureKey
75
- } from "./chunk-2KVR7FF3.js";
75
+ } from "./chunk-DKIAHQRN.js";
76
76
  import {
77
77
  holdLock,
78
78
  lockPath,
79
79
  releaseLock,
80
80
  servingProfiles,
81
81
  takeLock
82
- } from "./chunk-Q5EYTU3Q.js";
82
+ } from "./chunk-CT2MIWXY.js";
83
83
  import {
84
84
  holdersOf
85
- } from "./chunk-UJEO3VWA.js";
85
+ } from "./chunk-3CVDHJER.js";
86
86
  import {
87
87
  MIGRATIONS,
88
88
  drainNoteIndex,
@@ -109,26 +109,26 @@ import {
109
109
  storeClients,
110
110
  storeContents,
111
111
  vectorIndexCounts
112
- } from "./chunk-KLLKDOO2.js";
112
+ } from "./chunk-X7EBOXBY.js";
113
113
  import {
114
114
  formatLocator,
115
115
  parseLocator
116
- } from "./chunk-MXG4L7NH.js";
116
+ } from "./chunk-EBEYU7RW.js";
117
117
  import {
118
118
  queryFieldsOf
119
- } from "./chunk-UHHARH5X.js";
119
+ } from "./chunk-4IEDXIUN.js";
120
120
  import {
121
121
  storePath
122
- } from "./chunk-X5XIFNTI.js";
122
+ } from "./chunk-TTOKDZQX.js";
123
123
  import {
124
124
  openCache
125
- } from "./chunk-E7BTD4P6.js";
125
+ } from "./chunk-EZIJPXDZ.js";
126
126
  import {
127
127
  Credentials,
128
128
  pathsAreOverridden,
129
129
  resolvePaths,
130
130
  writeSecurely
131
- } from "./chunk-3EAAEF5U.js";
131
+ } from "./chunk-QCNK3YUZ.js";
132
132
  import {
133
133
  array,
134
134
  boolean,
@@ -152,10 +152,10 @@ import {
152
152
  transform,
153
153
  trim,
154
154
  union
155
- } from "./chunk-IVDUR5Y4.js";
155
+ } from "./chunk-G6RG2AZV.js";
156
156
  import {
157
157
  CliError
158
- } from "./chunk-CCHHEMPM.js";
158
+ } from "./chunk-EB2IULWB.js";
159
159
  import {
160
160
  __commonJS,
161
161
  __name,
@@ -5495,11 +5495,11 @@ var require_liquid_node = __commonJS({
5495
5495
  }
5496
5496
  });
5497
5497
 
5498
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
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
5499
  import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
5500
5500
  import { dirname, resolve } from "node:path";
5501
5501
 
5502
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/sealed.js
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
5503
  import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
5504
5504
  import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
5505
5505
  import { Transform } from "node:stream";
@@ -5606,7 +5606,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
5606
5606
  renameSync(pending, to);
5607
5607
  }, "unsealFile");
5608
5608
 
5609
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/compatibility.js
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
5610
  var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
5611
5611
  var fileSchemaOf = /* @__PURE__ */ __name((database) => {
5612
5612
  const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
@@ -5630,7 +5630,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
5630
5630
  };
5631
5631
  }, "compatibilityOf");
5632
5632
 
5633
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/repair.js
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
5634
  import { createHash as createHash2 } from "node:crypto";
5635
5635
  var COPY_MARK = "__repair_";
5636
5636
  var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
@@ -5884,7 +5884,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
5884
5884
  return found;
5885
5885
  }, "deleteCopy");
5886
5886
 
5887
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/store-info.js
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
5888
  import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
5889
5889
  var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
5890
5890
  var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
@@ -5931,7 +5931,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
5931
5931
  renderAnswer(this, outputFor(this), itemOf(answer));
5932
5932
  }), "storeInfoCommand");
5933
5933
 
5934
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
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
5935
  var ENCRYPT_OPTION = [
5936
5936
  "--encrypt",
5937
5937
  "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 +5950,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
5950
5950
  return password;
5951
5951
  }, "passwordOf");
5952
5952
 
5953
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/rules.js
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
5954
  import { existsSync as existsSync3, readFileSync } from "node:fs";
5955
5955
  import { join } from "node:path";
5956
5956
  var REPLY_ACTIONS = ["reply", "task"];
@@ -6121,7 +6121,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
6121
6121
  }, "problem");
6122
6122
  var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
6123
6123
 
6124
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/state.js
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
6125
  import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
6126
6126
  import { join as join2 } from "node:path";
6127
6127
  var ANSWERED_KEPT = 1e3;
@@ -6174,7 +6174,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
6174
6174
  }, "recordReply");
6175
6175
  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
6176
 
6177
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/decide.js
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
6178
  var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
6179
6179
  var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
6180
6180
  const { message, chat, owner, sender } = incoming;
@@ -6280,7 +6280,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
6280
6280
  return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
6281
6281
  }, "filled");
6282
6282
 
6283
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/template.js
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
6284
  var import_liquidjs = __toESM(require_liquid_node(), 1);
6285
6285
  var TEMPLATE_LIMITS = {
6286
6286
  parse: 32768,
@@ -6440,7 +6440,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
6440
6440
  }
6441
6441
  }, "renderReplyTemplate");
6442
6442
 
6443
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
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
6444
  var DRY_RUN_DAYS = 7;
6445
6445
  var PAGE = 500;
6446
6446
  var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
@@ -6554,7 +6554,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
6554
6554
  }
6555
6555
  }, "storedSince");
6556
6556
 
6557
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
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
6558
  var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
6559
6559
  const host = new URL(baseUrl).host;
6560
6560
  return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
@@ -6585,7 +6585,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
6585
6585
  };
6586
6586
  }, "embeddingKeys");
6587
6587
 
6588
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/openai.js
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
6589
  var options = strictObject({
6590
6590
  temperature: range(0, 2),
6591
6591
  top_p: range(0, 1),
@@ -6634,7 +6634,7 @@ var openai = {
6634
6634
  }, "complete")
6635
6635
  };
6636
6636
 
6637
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/models/index.js
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
6638
  var modelGateway = /* @__PURE__ */ __name((deps) => ({
6639
6639
  complete: /* @__PURE__ */ __name(async (request) => {
6640
6640
  if (deps.signal?.aborted)
@@ -6649,7 +6649,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6649
6649
  if (!adapter && target.provider === "openai")
6650
6650
  adapter = openai;
6651
6651
  if (!adapter && target.provider === "anthropic")
6652
- adapter = (await import("./anthropic-SNA6PTVO.js")).anthropic;
6652
+ adapter = (await import("./anthropic-KQOVSP6C.js")).anthropic;
6653
6653
  if (!adapter)
6654
6654
  throw new CliError("validation_error", `no model adapter for ${target.provider}`);
6655
6655
  if (request.images !== void 0 && adapter.images !== true)
@@ -6690,7 +6690,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
6690
6690
  }, "complete")
6691
6691
  }), "modelGateway");
6692
6692
 
6693
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/consents.js
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
6694
  import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
6695
6695
  import { join as join3 } from "node:path";
6696
6696
  var shape = strictObject({
@@ -6715,7 +6715,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
6715
6715
  return consent.provider === provider && !consent.deniedChats.includes(chat);
6716
6716
  }, "mayModelReply");
6717
6717
 
6718
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/rendering.js
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
6719
  var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
6720
6720
  ai: true
6721
6721
  }) => async (rule2, message, chat, now) => {
@@ -6762,7 +6762,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
6762
6762
  return result2;
6763
6763
  }, "replyRenderer");
6764
6764
 
6765
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/replies/serve.js
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
6766
  var NOT_ALLOWED = "replies.send is not allow";
6767
6767
  var NO_RULES = "no rules";
6768
6768
  var ONLY_TASK = "opened a task, sent nothing";
@@ -6855,7 +6855,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
6855
6855
  return { skip: why };
6856
6856
  }, "replyTo");
6857
6857
 
6858
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
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
6859
  var START_SYNC_DELAY_MS = 3e4;
6860
6860
  var START_SYNC_BUDGET_MS = 5 * 6e4;
6861
6861
  var START_SYNC_WINDOW_MS = 7 * 864e5;
@@ -6932,7 +6932,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
6932
6932
  };
6933
6933
  }, "startSync");
6934
6934
 
6935
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
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
6936
  var FIRST_FETCH_MS = 6e4;
6937
6937
  var DAY_MS = 864e5;
6938
6938
  var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
@@ -6986,7 +6986,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
6986
6986
  };
6987
6987
  }, "memberFetches");
6988
6988
 
6989
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
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
6990
  var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
6991
6991
  var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
6992
6992
  if (context.format === "pretty") {
@@ -7019,7 +7019,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
7019
7019
  return context;
7020
7020
  }, "recordDiagnostics");
7021
7021
 
7022
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
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
7023
  var STEMS_EVERY_MS = 3e4;
7024
7024
  var STEMS_SLICE_MS = 2e3;
7025
7025
  var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
@@ -7059,7 +7059,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
7059
7059
  };
7060
7060
  }, "stemFills");
7061
7061
 
7062
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
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
7063
  var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
7064
7064
  var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
7065
7065
  kind: attachment.kind,
@@ -7154,7 +7154,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
7154
7154
  locale: messenger.app.locale
7155
7155
  }), "viewOf");
7156
7156
 
7157
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
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
7158
  var observed = /* @__PURE__ */ __name((value) => ({
7159
7159
  value: value.value,
7160
7160
  observed_at: value.observedAt,
@@ -7221,7 +7221,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
7221
7221
  }
7222
7222
  }, "watchEventItem");
7223
7223
 
7224
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
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
7225
  var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
7226
7226
  output: { entity: "watch_item" },
7227
7227
  effects: REMOTE_READ,
@@ -7376,7 +7376,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
7376
7376
  }
7377
7377
  }, "describe");
7378
7378
 
7379
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
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
7380
  var serveCommand = /* @__PURE__ */ __name((messenger) => {
7381
7381
  const command = annotate(new Command("serve"), {
7382
7382
  output: { entity: "serve_summary" },
@@ -7640,7 +7640,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
7640
7640
  };
7641
7641
  }, "tasking");
7642
7642
 
7643
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
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
7644
  import { existsSync as existsSync6 } from "node:fs";
7645
7645
  var PATH = "store tables list";
7646
7646
  var STORE_TABLES_QUERY = {
@@ -7683,7 +7683,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
7683
7683
  return tables;
7684
7684
  }, "storeTablesCommand");
7685
7685
 
7686
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
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
7687
  var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
7688
7688
  var WORD_INDEX = "message_words";
7689
7689
  var schemaOf = /* @__PURE__ */ __name((database) => {
@@ -29,7 +29,7 @@ import {
29
29
  agentOf,
30
30
  clientHash,
31
31
  currentCaller
32
- } from "./chunk-2KVR7FF3.js";
32
+ } from "./chunk-DKIAHQRN.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-ZVVMGPBJ.js";
@@ -541,7 +541,7 @@ function toError(value) {
541
541
  }
542
542
  __name(toError, "toError");
543
543
 
544
- // node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/caller.js
544
+ // 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/mcp/caller.js
545
545
  var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
546
546
  const client = caller?.agent?.client?.name;
547
547
  if (client && client !== "unknown")