@wirecat/mail-cli 0.6.0 → 0.8.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 (198) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +8 -4
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-GBFTKUHA.js → all-profiles-MXGDUBAM.js} +9 -9
  5. package/dist/bundle/{anthropic-PTSCWUG6.js → anthropic-A2QA4W7L.js} +6 -6
  6. package/dist/bundle/{app-server-5VJ2WCKJ.js → app-server-PMIMK6FK.js} +48 -48
  7. package/dist/bundle/{bun-2KRUBPIN.js → bun-3UW3LFNL.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-ELSRSJBM.js → bun-sqlite-TGFZFKAX.js} +5 -5
  9. package/dist/bundle/{chunk-H4VFIH5W.js → chunk-2KZJWBXB.js} +3 -3
  10. package/dist/bundle/{chunk-PKU6V4EQ.js → chunk-2MQXXPPK.js} +17 -17
  11. package/dist/bundle/{chunk-ZMMIIBTM.js → chunk-4QDBMYK4.js} +70 -53
  12. package/dist/bundle/{chunk-B337KHJ5.js → chunk-5PWKPRTD.js} +4 -4
  13. package/dist/bundle/{chunk-ZRYFEEXZ.js → chunk-5W74YMCK.js} +3 -3
  14. package/dist/bundle/{chunk-WGK4AIRL.js → chunk-6J3DKKOV.js} +12 -12
  15. package/dist/bundle/{chunk-YBJMBPL7.js → chunk-6JK46V5X.js} +6 -6
  16. package/dist/bundle/{chunk-NZB4WGQS.js → chunk-6U6Z3GXR.js} +6 -6
  17. package/dist/bundle/{chunk-XZGLY2LU.js → chunk-7JUTNCQX.js} +14 -14
  18. package/dist/bundle/{chunk-TKJDGAHT.js → chunk-AO3XYONW.js} +33 -27
  19. package/dist/bundle/{chunk-DA46WQEA.js → chunk-BCDPLG7T.js} +1 -1
  20. package/dist/bundle/{chunk-SAZJDKEI.js → chunk-BEUQ2X7U.js} +8 -8
  21. package/dist/bundle/{chunk-TPNC5VCJ.js → chunk-CMNFLAUG.js} +4 -4
  22. package/dist/bundle/{chunk-MD2J3POF.js → chunk-CRS63C3T.js} +8 -2
  23. package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
  24. package/dist/bundle/{chunk-DV4RSEAH.js → chunk-DM4ULDS3.js} +6 -6
  25. package/dist/bundle/{chunk-P5B7IFOG.js → chunk-DYCPBLUC.js} +2 -2
  26. package/dist/bundle/{chunk-OHV5RDFE.js → chunk-EN3UZPGB.js} +4 -4
  27. package/dist/bundle/{chunk-RAZOSYEO.js → chunk-EU35YQXE.js} +23 -23
  28. package/dist/bundle/{chunk-4PKHZQIM.js → chunk-EVO77D3Y.js} +8 -8
  29. package/dist/bundle/{chunk-3KY7DA5A.js → chunk-FSBKLJXM.js} +449 -346
  30. package/dist/bundle/{chunk-JFJTDL22.js → chunk-J5RKMQ6A.js} +46 -46
  31. package/dist/bundle/{chunk-BVIHT7KR.js → chunk-J6ACLZKV.js} +9 -9
  32. package/dist/bundle/{chunk-AGX7NR3S.js → chunk-KBKEZV4L.js} +13 -13
  33. package/dist/bundle/{chunk-PBYDT3CG.js → chunk-KEZHPPMI.js} +18 -3
  34. package/dist/bundle/{chunk-JKLQHPED.js → chunk-KF4YULWC.js} +10 -10
  35. package/dist/bundle/{chunk-NOU6MWEM.js → chunk-L2ZHPIFC.js} +2 -2
  36. package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
  37. package/dist/bundle/{chunk-5KHJUYHQ.js → chunk-LN7TNZIS.js} +8 -8
  38. package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
  39. package/dist/bundle/{chunk-ZPGLWMNH.js → chunk-NEBO3NZU.js} +3 -3
  40. package/dist/bundle/{chunk-O7VK7CJX.js → chunk-NI6WX55Z.js} +2 -2
  41. package/dist/bundle/{chunk-Y7JKWQC2.js → chunk-NSODLSEL.js} +114 -95
  42. package/dist/bundle/{chunk-ES4PWHBJ.js → chunk-NWKLBZN5.js} +30 -30
  43. package/dist/bundle/{chunk-O555ZEQR.js → chunk-OAQ4UB6V.js} +4 -4
  44. package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
  45. package/dist/bundle/{chunk-PHPC72DP.js → chunk-PXCIM6D5.js} +7 -7
  46. package/dist/bundle/{chunk-56PI2BRH.js → chunk-Q5DOXSBM.js} +1 -1
  47. package/dist/bundle/{chunk-RDSAI6DC.js → chunk-QBBKSCQD.js} +386 -257
  48. package/dist/bundle/{chunk-XERTHQ6D.js → chunk-RFWTPSJX.js} +34 -28
  49. package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
  50. package/dist/bundle/{chunk-FIQOBLHS.js → chunk-RVZ4JIRR.js} +1 -1
  51. package/dist/bundle/{chunk-VEAP5RVI.js → chunk-SZ5PKNDF.js} +7 -7
  52. package/dist/bundle/{chunk-J5MYH4L5.js → chunk-TCWJYOZV.js} +6 -6
  53. package/dist/bundle/{chunk-M7V3GSJQ.js → chunk-TMQA4KR7.js} +1 -1
  54. package/dist/bundle/{chunk-NCWO2FNC.js → chunk-U4IF2MOB.js} +2 -2
  55. package/dist/bundle/{chunk-JKA2AICL.js → chunk-UR6WHUJF.js} +2 -2
  56. package/dist/bundle/{chunk-KUQYWIVR.js → chunk-VGR3AGAC.js} +6 -6
  57. package/dist/bundle/{chunk-6MV2TBDB.js → chunk-VSDVH2M2.js} +71 -59
  58. package/dist/bundle/{chunk-5AQKM47C.js → chunk-W5J6I5GW.js} +3 -3
  59. package/dist/bundle/{chunk-LWTG5UOF.js → chunk-W7H3PZ67.js} +2 -2
  60. package/dist/bundle/{chunk-K5JUROGN.js → chunk-WS4L47DG.js} +1 -1
  61. package/dist/bundle/{chunk-WCL3WBH5.js → chunk-WWNAQ75T.js} +3 -3
  62. package/dist/bundle/{chunk-JIQAFFPV.js → chunk-XWNCXFR5.js} +2 -2
  63. package/dist/bundle/{chunk-VF24ZAPX.js → chunk-YS2WUWY7.js} +4 -4
  64. package/dist/bundle/{chunk-UAXBLHZK.js → chunk-Z5GDZ3QF.js} +2 -2
  65. package/dist/bundle/{chunk-JLRMSNPX.js → chunk-ZISFMUYB.js} +20 -18
  66. package/dist/bundle/{chunk-J4C32YKH.js → chunk-ZKAT6I2I.js} +1 -1
  67. package/dist/bundle/command-contract-Q32SL5KX.js +34 -0
  68. package/dist/bundle/{decode-HVXDCQ63.js → decode-NF4TGOR3.js} +5 -5
  69. package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
  70. package/dist/bundle/{dist-43DZXMBL.js → dist-DVYY3YFG.js} +13 -13
  71. package/dist/bundle/{echarts-LZ74IXHG.js → echarts-F3USGP5B.js} +2 -2
  72. package/dist/bundle/{embed-OQF5U2C6.js → embed-2RXV3BEC.js} +6 -6
  73. package/dist/bundle/{embedder-OCWQAWKO.js → embedder-I2SJMC6N.js} +9 -9
  74. package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
  75. package/dist/bundle/{first-run-MTZPUPGA.js → first-run-3GA7YCKZ.js} +11 -11
  76. package/dist/bundle/first-screen-JFIXKYAK.js +32 -0
  77. package/dist/bundle/{instructions-M6F4FP7U.js → instructions-VHI5CWH5.js} +1 -1
  78. package/dist/bundle/mail.js +12 -12
  79. package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
  80. package/dist/bundle/{node-NYBBFHGN.js → node-4RBB3RDY.js} +2 -2
  81. package/dist/bundle/{node-sqlite-CWCNWO75.js → node-sqlite-FWYX3P2D.js} +5 -5
  82. package/dist/bundle/{oauth-DVX45EME.js → oauth-6JKKRGLX.js} +7 -7
  83. package/dist/bundle/{open-M7EQWWHL.js → open-7JSNC3MR.js} +4 -4
  84. package/dist/bundle/{openai-63KRU5H2.js → openai-ASLWL3D6.js} +14 -14
  85. package/dist/bundle/{process-DV5GQIGM.js → process-AB2D2G2Q.js} +1 -1
  86. package/dist/bundle/{program-EPR3QCMX.js → program-ZJPQ3IDU.js} +2539 -1024
  87. package/dist/bundle/{prompt-EPWPWTB3.js → prompt-JDFVQR3L.js} +5 -5
  88. package/dist/bundle/{recognize-R46KDXK4.js → recognize-PKYA4HRC.js} +4 -4
  89. package/dist/bundle/{remote-RENCYB5X.js → remote-USBVVO4O.js} +7 -7
  90. package/dist/bundle/{rerank-VHPC5O73.js → rerank-UBMV6KO6.js} +7 -7
  91. package/dist/bundle/{serve-KCH3ORYO.js → serve-SVS3YOYS.js} +9 -9
  92. package/dist/bundle/{server-HZVXSK7B.js → server-7PZMYXY6.js} +38 -38
  93. package/dist/bundle/server-KA7Q5XCL.js +63 -0
  94. package/dist/bundle/{sqlite-runtime-XP7ZJCKJ.js → sqlite-runtime-IDPTXAM7.js} +5 -5
  95. package/dist/bundle/{state-GQ4MEQJ5.js → state-6G2TSVP7.js} +6 -6
  96. package/dist/bundle/{store-WT7YTR3Y.js → store-7A464D4X.js} +15 -15
  97. package/dist/bundle/{store-CQNLNINW.js → store-L56GFI4P.js} +13 -13
  98. package/dist/bundle/store-maintenance-command-2LM4GOI3.js +52 -0
  99. package/dist/commands/attachments.js +2 -2
  100. package/dist/commands/attachments.js.map +1 -1
  101. package/dist/commands/context.d.ts +21 -6
  102. package/dist/commands/context.d.ts.map +1 -1
  103. package/dist/commands/context.js +47 -6
  104. package/dist/commands/context.js.map +1 -1
  105. package/dist/commands/drafts.d.ts.map +1 -1
  106. package/dist/commands/drafts.js +20 -16
  107. package/dist/commands/drafts.js.map +1 -1
  108. package/dist/commands/export.d.ts.map +1 -1
  109. package/dist/commands/export.js +10 -7
  110. package/dist/commands/export.js.map +1 -1
  111. package/dist/commands/messages.d.ts.map +1 -1
  112. package/dist/commands/messages.js +13 -9
  113. package/dist/commands/messages.js.map +1 -1
  114. package/dist/commands/read.d.ts.map +1 -1
  115. package/dist/commands/read.js +3 -1
  116. package/dist/commands/read.js.map +1 -1
  117. package/dist/commands/send.d.ts.map +1 -1
  118. package/dist/commands/send.js +5 -5
  119. package/dist/commands/send.js.map +1 -1
  120. package/dist/commands/server-search.d.ts.map +1 -1
  121. package/dist/commands/server-search.js +3 -2
  122. package/dist/commands/server-search.js.map +1 -1
  123. package/dist/commands/session-start.d.ts.map +1 -1
  124. package/dist/commands/session-start.js +107 -10
  125. package/dist/commands/session-start.js.map +1 -1
  126. package/dist/commands/session.d.ts.map +1 -1
  127. package/dist/commands/session.js +72 -9
  128. package/dist/commands/session.js.map +1 -1
  129. package/dist/commands/stats.d.ts.map +1 -1
  130. package/dist/commands/stats.js +2 -3
  131. package/dist/commands/stats.js.map +1 -1
  132. package/dist/commands/status.js +2 -2
  133. package/dist/commands/status.js.map +1 -1
  134. package/dist/commands/sync.d.ts +0 -1
  135. package/dist/commands/sync.d.ts.map +1 -1
  136. package/dist/commands/sync.js +8 -15
  137. package/dist/commands/sync.js.map +1 -1
  138. package/dist/config.d.ts +3 -1
  139. package/dist/config.d.ts.map +1 -1
  140. package/dist/config.js +6 -1
  141. package/dist/config.js.map +1 -1
  142. package/dist/mail/backend.d.ts +23 -1
  143. package/dist/mail/backend.d.ts.map +1 -1
  144. package/dist/mail/backend.js +4 -1
  145. package/dist/mail/backend.js.map +1 -1
  146. package/dist/mail/compose.d.ts.map +1 -1
  147. package/dist/mail/compose.js +13 -25
  148. package/dist/mail/compose.js.map +1 -1
  149. package/dist/mail/doctor.d.ts +42 -0
  150. package/dist/mail/doctor.d.ts.map +1 -1
  151. package/dist/mail/doctor.js +76 -0
  152. package/dist/mail/doctor.js.map +1 -1
  153. package/dist/mail/drafts.d.ts.map +1 -1
  154. package/dist/mail/drafts.js +4 -4
  155. package/dist/mail/drafts.js.map +1 -1
  156. package/dist/mail/imap/connection.d.ts +6 -3
  157. package/dist/mail/imap/connection.d.ts.map +1 -1
  158. package/dist/mail/imap/connection.js +63 -16
  159. package/dist/mail/imap/connection.js.map +1 -1
  160. package/dist/mail/imap/index.d.ts +2 -2
  161. package/dist/mail/imap/index.d.ts.map +1 -1
  162. package/dist/mail/imap/index.js +3 -3
  163. package/dist/mail/imap/index.js.map +1 -1
  164. package/dist/mail/imap/search.d.ts.map +1 -1
  165. package/dist/mail/imap/search.js +10 -4
  166. package/dist/mail/imap/search.js.map +1 -1
  167. package/dist/mail/save.d.ts +2 -5
  168. package/dist/mail/save.d.ts.map +1 -1
  169. package/dist/mail/save.js +6 -27
  170. package/dist/mail/save.js.map +1 -1
  171. package/dist/mail/send.d.ts.map +1 -1
  172. package/dist/mail/send.js +1 -0
  173. package/dist/mail/send.js.map +1 -1
  174. package/dist/mail/smtp.d.ts +3 -3
  175. package/dist/mail/smtp.d.ts.map +1 -1
  176. package/dist/mail/smtp.js +72 -36
  177. package/dist/mail/smtp.js.map +1 -1
  178. package/dist/oauth.d.ts +74 -0
  179. package/dist/oauth.d.ts.map +1 -0
  180. package/dist/oauth.js +230 -0
  181. package/dist/oauth.js.map +1 -0
  182. package/dist/program.js +2 -2
  183. package/dist/program.js.map +1 -1
  184. package/dist/providers.d.ts +33 -3
  185. package/dist/providers.d.ts.map +1 -1
  186. package/dist/providers.js +34 -8
  187. package/dist/providers.js.map +1 -1
  188. package/dist/reasons.d.ts.map +1 -1
  189. package/dist/reasons.js +6 -0
  190. package/dist/reasons.js.map +1 -1
  191. package/dist/version.d.ts +1 -1
  192. package/dist/version.js +1 -1
  193. package/package.json +4 -5
  194. package/dist/bundle/command-contract-NZF4B5OR.js +0 -34
  195. package/dist/bundle/first-screen-4PBS6QK5.js +0 -32
  196. package/dist/bundle/server-FMCPE2ZK.js +0 -63
  197. package/dist/bundle/store-maintenance-command-YYR42IT4.js +0 -52
  198. /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-XERTHQ6D.js";
23
+ } from "./chunk-RFWTPSJX.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,23 +34,23 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-TKJDGAHT.js";
37
+ } from "./chunk-AO3XYONW.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-XZGLY2LU.js";
41
+ } from "./chunk-7JUTNCQX.js";
42
42
  import {
43
43
  instructions
44
- } from "./chunk-DA46WQEA.js";
44
+ } from "./chunk-BCDPLG7T.js";
45
45
  import {
46
46
  answeredWire
47
- } from "./chunk-J4C32YKH.js";
47
+ } from "./chunk-ZKAT6I2I.js";
48
48
  import {
49
49
  StdioServerTransport,
50
50
  callerOf,
51
51
  callingAgent,
52
52
  serveStdio
53
- } from "./chunk-O7VK7CJX.js";
53
+ } from "./chunk-NI6WX55Z.js";
54
54
  import {
55
55
  McpServer,
56
56
  ResourceTemplate
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  connectedFor,
60
60
  guardFor
61
- } from "./chunk-RAZOSYEO.js";
61
+ } from "./chunk-EU35YQXE.js";
62
62
  import {
63
63
  capability,
64
64
  dateWindow,
@@ -67,46 +67,46 @@ import {
67
67
  servicesFor,
68
68
  storedDeps,
69
69
  wholeList
70
- } from "./chunk-3KY7DA5A.js";
70
+ } from "./chunk-FSBKLJXM.js";
71
71
  import {
72
72
  findCommand
73
- } from "./chunk-PHPC72DP.js";
73
+ } from "./chunk-PXCIM6D5.js";
74
74
  import {
75
75
  DEFAULT_OUTPUT_BYTES,
76
76
  changesAuthorityAt,
77
77
  describeProgram,
78
78
  environmentOf,
79
- fetchesOnlyAt,
80
79
  itemOf,
81
80
  judgedTargets,
82
81
  readOnlyLockOf,
82
+ readsOverMcpAt,
83
83
  recalledAccount,
84
84
  rootOf2 as rootOf,
85
85
  sealed,
86
86
  snakeKeys,
87
87
  typedCommand
88
- } from "./chunk-6MV2TBDB.js";
88
+ } from "./chunk-VSDVH2M2.js";
89
89
  import {
90
90
  levelFor,
91
91
  readKeysForCommand
92
- } from "./chunk-J5MYH4L5.js";
92
+ } from "./chunk-TCWJYOZV.js";
93
93
  import {
94
94
  isCliFailure,
95
95
  withCaller
96
- } from "./chunk-BVIHT7KR.js";
96
+ } from "./chunk-J6ACLZKV.js";
97
97
  import {
98
98
  mcpHttpMarker
99
- } from "./chunk-TPNC5VCJ.js";
99
+ } from "./chunk-CMNFLAUG.js";
100
100
  import {
101
101
  openStore,
102
102
  pdfPreviewLimits
103
- } from "./chunk-RDSAI6DC.js";
103
+ } from "./chunk-QBBKSCQD.js";
104
104
  import {
105
105
  timezoneOf
106
- } from "./chunk-ZMMIIBTM.js";
106
+ } from "./chunk-4QDBMYK4.js";
107
107
  import {
108
108
  warmEmbedders
109
- } from "./chunk-NZB4WGQS.js";
109
+ } from "./chunk-6U6Z3GXR.js";
110
110
  import {
111
111
  description,
112
112
  integer,
@@ -122,19 +122,19 @@ import {
122
122
  regex,
123
123
  strictObject,
124
124
  string
125
- } from "./chunk-NXJLC2WK.js";
125
+ } from "./chunk-NAIJNJZZ.js";
126
126
  import {
127
127
  CliError,
128
128
  visibleControls
129
- } from "./chunk-BM445GYF.js";
129
+ } from "./chunk-L3KMVMRJ.js";
130
130
  import {
131
131
  __name
132
132
  } from "./chunk-ZVVMGPBJ.js";
133
133
 
134
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/server.js
135
135
  import { randomUUID } from "node:crypto";
136
136
 
137
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
138
138
  var agentLog = /* @__PURE__ */ __name((open) => {
139
139
  let held;
140
140
  return {
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
153
153
  };
154
154
  }, "agentLog");
155
155
 
156
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/resources.js
157
157
  var LISTED = 100;
158
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
159
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
191
191
  });
192
192
  }, "registerResources");
193
193
 
194
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/session.js
195
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
196
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
197
197
  var MessengerSession = class {
@@ -266,7 +266,7 @@ var MessengerSession = class {
266
266
  }
267
267
  };
268
268
 
269
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
270
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
271
271
  const _command = messenger.app.command;
272
272
  return {
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
320
320
  };
321
321
  }, "attachmentsTools");
322
322
 
323
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
324
324
  var PHOTO_LIMIT = 512 * 1024;
325
325
  var IMAGE_TYPES = [
326
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
374
374
  return new Uint8Array(Buffer.concat(chunks));
375
375
  }, "readUpTo");
376
376
 
377
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
378
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
379
379
  stats_charts: tool({
380
380
  title: "A chart from a chat's statistics",
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
411
411
  })
412
412
  }), "statsTools");
413
413
 
414
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/tools.js
415
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
416
416
  ...messagesPhotoTools(messenger),
417
417
  ...attachmentsTools(messenger),
418
418
  ...statsTools(messenger)
419
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
420
420
 
421
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/mcp/server.js
422
422
  var PER_RUN = /* @__PURE__ */ new Set([
423
423
  "streams",
424
424
  "stdin",
@@ -488,7 +488,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
488
488
  readOnly: readOnlyLockOf(app, context.env) !== void 0,
489
489
  keyOf,
490
490
  authority,
491
- fetchOnly: fetchesOnlyAt(root),
491
+ fetchOnly: readsOverMcpAt(root),
492
492
  offline: true,
493
493
  stdin
494
494
  }).map((one) => "sync_first" in one.input.entries && !syncAllowed(one.path) ? {
@@ -742,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
742
742
  }, "serveOverStdio");
743
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
744
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
745
- const { serveOverHttp } = await import("./serve-KCH3ORYO.js");
745
+ const { serveOverHttp } = await import("./serve-SVS3YOYS.js");
746
746
  const appName = messenger.app.command;
747
747
  const appEnvPrefix = messenger.app.envPrefix;
748
748
  const listening = await serveOverHttp(build, {
@@ -18,9 +18,9 @@ import {
18
18
  strictObject,
19
19
  string,
20
20
  unknown
21
- } from "./chunk-NXJLC2WK.js";
21
+ } from "./chunk-NAIJNJZZ.js";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/entities/fields.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/fields.js
24
24
  var text = string();
25
25
  var id = pipe(string(), minLength(1));
26
26
  var time = isoTime;
@@ -44,7 +44,7 @@ var author = strictObject({
44
44
  name: nullable(text)
45
45
  });
46
46
 
47
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
47
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
48
48
  var organization = strictObject({
49
49
  id,
50
50
  ref: reference,
@@ -74,7 +74,7 @@ var reminder = strictObject({
74
74
  receipt: nullable(text)
75
75
  });
76
76
 
77
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/entities/note.js
77
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/entities/note.js
78
78
  var link = {
79
79
  target_text: nullable(text),
80
80
  kind: text,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-BM445GYF.js";
5
+ } from "./chunk-L3KMVMRJ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -30,7 +30,7 @@ var PROGRAM_PREFIX = "wcat-";
30
30
  var DESCRIBE_FLAG = "--wcat-describe";
31
31
  var DISPATCH_FLAG = "--wcat-dispatch";
32
32
 
33
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
33
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
34
  var DESCRIBE_FORMAT = 1;
35
35
  var describeAnswer = /* @__PURE__ */ __name((tool) => ({
36
36
  wcat_describe: DESCRIBE_FORMAT,
@@ -59,7 +59,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
59
59
  };
60
60
  }, "parseDescribe");
61
61
 
62
- // node_modules/.pnpm/@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
62
+ // node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
63
63
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
64
64
  import { join } from "node:path";
65
65
  var SHIM_FORMAT = 1;
@@ -2,27 +2,27 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ENTITIES
5
- } from "./chunk-Y7JKWQC2.js";
5
+ } from "./chunk-NSODLSEL.js";
6
6
  import {
7
7
  annotate,
8
8
  answerSchema,
9
9
  describeOptions,
10
10
  metaOf
11
- } from "./chunk-6MV2TBDB.js";
11
+ } from "./chunk-VSDVH2M2.js";
12
12
  import {
13
13
  keyForCommand
14
- } from "./chunk-J5MYH4L5.js";
14
+ } from "./chunk-TCWJYOZV.js";
15
15
  import {
16
16
  jsonSchemaOf
17
- } from "./chunk-NXJLC2WK.js";
17
+ } from "./chunk-NAIJNJZZ.js";
18
18
  import {
19
19
  CliError
20
- } from "./chunk-BM445GYF.js";
20
+ } from "./chunk-L3KMVMRJ.js";
21
21
  import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
26
26
  var schemas = /* @__PURE__ */ new WeakMap();
27
27
  var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
28
28
  if (Object.hasOwn(ENTITIES, name))
@@ -52,7 +52,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
52
52
  return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
53
53
  }, "answerProjectionSchema");
54
54
 
55
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
56
56
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
57
57
  var outputOf = /* @__PURE__ */ __name((command) => {
58
58
  const entity = answerEntitySchema(command);
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.530.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_f01b7e2db7d22734373a522c868220f7/node_modules/@wirecat/cli-core/dist/background/processes.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.541.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_5e2b4e61bcb779e86c364517878b6f21/node_modules/@wirecat/cli-core/dist/background/processes.js
8
8
  import { execFileSync } from "node:child_process";
9
9
  import { readdirSync, readFileSync, readlinkSync } from "node:fs";
10
10
  var alive = /* @__PURE__ */ __name((pid) => {