@wirecat/mail-cli 0.1.0 → 0.2.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 (212) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +37 -11
  3. package/dist/bin/mail.js +2 -2
  4. package/dist/bundle/{all-profiles-TKMBELRZ.js → all-profiles-7WILOT5E.js} +5 -5
  5. package/dist/bundle/{anthropic-7LMUAEIZ.js → anthropic-NHWLIMEZ.js} +3 -3
  6. package/dist/bundle/{app-server-JGMIJDD4.js → app-server-XDMYCJLV.js} +39 -39
  7. package/dist/bundle/{bun-XRO6XJHQ.js → bun-GTG5IYLQ.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-Z54LEHVM.js → bun-sqlite-KGH5F33G.js} +2 -2
  9. package/dist/bundle/{chunk-JVMVLITS.js → chunk-2X4WYZPA.js} +4 -2
  10. package/dist/bundle/{chunk-GN62YOT5.js → chunk-4I3YT5KK.js} +4 -4
  11. package/dist/bundle/{chunk-MS53RALV.js → chunk-5FLW25US.js} +5 -5
  12. package/dist/bundle/{chunk-FZ5FXIG6.js → chunk-5JOKRFWE.js} +1 -1
  13. package/dist/bundle/{chunk-KHTO2Q6E.js → chunk-6HIW7IJL.js} +4 -4
  14. package/dist/bundle/{chunk-TVREDYX4.js → chunk-76IKLP2M.js} +95 -91
  15. package/dist/bundle/{chunk-ZANYM66S.js → chunk-77VHMI3A.js} +1 -1
  16. package/dist/bundle/{chunk-TQFCPUIM.js → chunk-7LKJDJNS.js} +1 -1
  17. package/dist/bundle/{chunk-WLFLBWNH.js → chunk-7QEE5I7H.js} +2 -2
  18. package/dist/bundle/{chunk-6MAZWSC3.js → chunk-7REG25RM.js} +3 -3
  19. package/dist/bundle/{chunk-TWTATDM7.js → chunk-AJIT2T3F.js} +6 -6
  20. package/dist/bundle/{chunk-JBBZCTTF.js → chunk-AROBJF5P.js} +1 -1
  21. package/dist/bundle/{chunk-NK7EB63L.js → chunk-BKZEYTLU.js} +849 -440
  22. package/dist/bundle/{chunk-4FEMINO2.js → chunk-BPF7IXJT.js} +5 -5
  23. package/dist/bundle/{chunk-BTQX2ZSZ.js → chunk-BUOSCMCD.js} +2 -2
  24. package/dist/bundle/{chunk-5NYMNSSO.js → chunk-CT7NG7BI.js} +3 -3
  25. package/dist/bundle/{chunk-TWPDVUBR.js → chunk-D7UZXUSB.js} +2 -2
  26. package/dist/bundle/{chunk-OTUOZ33L.js → chunk-DDMJ3RVO.js} +2 -2
  27. package/dist/bundle/{chunk-3KEVLSNN.js → chunk-EKE3R36Y.js} +46 -8
  28. package/dist/bundle/{chunk-YO4CUH5E.js → chunk-ETPT7TPW.js} +1 -1
  29. package/dist/bundle/{chunk-3KOA73LS.js → chunk-GPAAQ6LY.js} +14 -14
  30. package/dist/bundle/{chunk-GQQJOH7A.js → chunk-GQKYSGIA.js} +58 -46
  31. package/dist/bundle/{chunk-QLEUNU6G.js → chunk-H5BW7454.js} +4 -4
  32. package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-H66ZMBDD.js} +1 -1
  33. package/dist/bundle/{chunk-VEIZZRQ5.js → chunk-H7NUGJPV.js} +12 -3
  34. package/dist/bundle/{chunk-2LLNPNMB.js → chunk-H7XOHNRY.js} +1 -1
  35. package/dist/bundle/{chunk-F6D6PJ34.js → chunk-HJRUFT5Y.js} +5 -5
  36. package/dist/bundle/{chunk-5WGEUDE4.js → chunk-MABCR67K.js} +1 -1
  37. package/dist/bundle/{chunk-IK5TH3O7.js → chunk-MDVXIPA3.js} +10 -10
  38. package/dist/bundle/{chunk-YPQQ5J4X.js → chunk-QJHCKFFC.js} +16 -16
  39. package/dist/bundle/{chunk-Z34ICZA3.js → chunk-QLYHLW54.js} +5 -5
  40. package/dist/bundle/{chunk-7SXGLT6T.js → chunk-QUGFBY7O.js} +9 -8
  41. package/dist/bundle/{chunk-CEW6KIFA.js → chunk-QUSZWBZF.js} +21 -21
  42. package/dist/bundle/{chunk-FDCGTODC.js → chunk-R5JD4GMA.js} +1 -1
  43. package/dist/bundle/{chunk-K4FVKPDQ.js → chunk-S2GSU4MT.js} +9 -9
  44. package/dist/bundle/{chunk-T6464KYA.js → chunk-STC45HZX.js} +204 -203
  45. package/dist/bundle/{chunk-75CWWETH.js → chunk-SVNTRF5O.js} +11 -11
  46. package/dist/bundle/{chunk-GWDCKUBI.js → chunk-THVLMTH7.js} +30 -29
  47. package/dist/bundle/{chunk-4E7BN3TC.js → chunk-TMVIQJCG.js} +2 -2
  48. package/dist/bundle/{chunk-EOEDICIE.js → chunk-UZR3IKS7.js} +1 -1
  49. package/dist/bundle/{chunk-CH6RXYAX.js → chunk-VBLFQJY3.js} +1 -1
  50. package/dist/bundle/{chunk-GAH7N7HO.js → chunk-VRQRBVKT.js} +44 -44
  51. package/dist/bundle/{chunk-GK4M2SUP.js → chunk-VWO3XXSF.js} +1 -1
  52. package/dist/bundle/{chunk-QQB7WT7R.js → chunk-WJ3LUWRN.js} +3 -3
  53. package/dist/bundle/{chunk-3E3WA2L6.js → chunk-Y5WA7AOA.js} +21 -21
  54. package/dist/bundle/{chunk-TE5U5OAM.js → chunk-Y6KUKIQZ.js} +2 -2
  55. package/dist/bundle/{chunk-J6MSJLIW.js → chunk-YQAUH3PN.js} +1 -1
  56. package/dist/bundle/{chunk-MNOIRJEO.js → chunk-Z6F7EXT2.js} +7 -7
  57. package/dist/bundle/{chunk-WXAXYJJ7.js → chunk-ZKH5CHGI.js} +5 -5
  58. package/dist/bundle/{chunk-UH4DDRHA.js → chunk-ZNYJG4AY.js} +42 -42
  59. package/dist/bundle/{command-contract-WU434ZUL.js → command-contract-Y42ULKE5.js} +13 -13
  60. package/dist/bundle/{decode-YB3ZDTES.js → decode-L4X542L3.js} +2 -2
  61. package/dist/bundle/{dist-X36THCOF.js → dist-HFUVURJG.js} +1 -1
  62. package/dist/bundle/{dist-A6GKSKFC.js → dist-WKIRHOLK.js} +14 -14
  63. package/dist/bundle/{echarts-YNGCOYHW.js → echarts-G6QLXR4X.js} +2 -2
  64. package/dist/bundle/{embed-LWNHIRBQ.js → embed-E33ZBHQR.js} +3 -3
  65. package/dist/bundle/{embedder-2LYD3U37.js → embedder-EMBCIVGF.js} +6 -6
  66. package/dist/bundle/{first-run-N3HJKGU7.js → first-run-WF2HF5FI.js} +5 -5
  67. package/dist/bundle/{first-screen-4U2DMV3G.js → first-screen-DZFOUUZC.js} +14 -14
  68. package/dist/bundle/{instructions-GJHHFV64.js → instructions-DUH7265J.js} +1 -1
  69. package/dist/bundle/mail.js +2 -2
  70. package/dist/bundle/{node-GFOH6FKP.js → node-73PKCCE7.js} +2 -2
  71. package/dist/bundle/{node-sqlite-NBXQXBIU.js → node-sqlite-FDD5N6GC.js} +2 -2
  72. package/dist/bundle/{oauth-56EFO5AQ.js → oauth-ND3K2F7B.js} +4 -4
  73. package/dist/bundle/{open-2V7QZQJP.js → open-FZYY6TKE.js} +1 -1
  74. package/dist/bundle/{openai-V3SVACVL.js → openai-BXOF6XIM.js} +10 -10
  75. package/dist/bundle/{process-XVDX4SPD.js → process-TXIK4VJP.js} +1 -1
  76. package/dist/bundle/{program-ILID6EAT.js → program-2SUR4WOS.js} +1700 -1459
  77. package/dist/bundle/{prompt-YKWAI222.js → prompt-I5GCP73M.js} +2 -2
  78. package/dist/bundle/{recognize-PAR66KVM.js → recognize-ILYEKXVB.js} +1 -1
  79. package/dist/bundle/{remote-CE43TKXC.js → remote-SSPZEAJ7.js} +4 -4
  80. package/dist/bundle/{rerank-M7S7P2TW.js → rerank-NAO5RMGB.js} +4 -4
  81. package/dist/bundle/{serve-ENPMIV6J.js → serve-UDXIEQKC.js} +6 -6
  82. package/dist/bundle/{server-MBEZLVKZ.js → server-KTPELKAN.js} +31 -31
  83. package/dist/bundle/server-UZFSEKNJ.js +63 -0
  84. package/dist/bundle/{sqlite-runtime-HVGDHBJJ.js → sqlite-runtime-AONFLND6.js} +2 -2
  85. package/dist/bundle/{state-QZSOSKBD.js → state-I4PLX3UB.js} +3 -3
  86. package/dist/bundle/{store-UJ7SNKXI.js → store-OHQH3MGN.js} +30 -12
  87. package/dist/bundle/{store-2BUX6LVX.js → store-ZPPRXGPY.js} +9 -9
  88. package/dist/bundle/store-maintenance-command-QOYXEBT6.js +52 -0
  89. package/dist/commands/account.d.ts.map +1 -1
  90. package/dist/commands/account.js +6 -5
  91. package/dist/commands/account.js.map +1 -1
  92. package/dist/commands/context.d.ts +19 -8
  93. package/dist/commands/context.d.ts.map +1 -1
  94. package/dist/commands/context.js +14 -10
  95. package/dist/commands/context.js.map +1 -1
  96. package/dist/commands/folders.js +4 -4
  97. package/dist/commands/folders.js.map +1 -1
  98. package/dist/commands/login.d.ts +2 -2
  99. package/dist/commands/login.d.ts.map +1 -1
  100. package/dist/commands/login.js +3 -5
  101. package/dist/commands/login.js.map +1 -1
  102. package/dist/commands/mailbox.d.ts +2 -1
  103. package/dist/commands/mailbox.d.ts.map +1 -1
  104. package/dist/commands/mailbox.js.map +1 -1
  105. package/dist/commands/session-start.d.ts +3 -0
  106. package/dist/commands/session-start.d.ts.map +1 -0
  107. package/dist/commands/session-start.js +117 -0
  108. package/dist/commands/session-start.js.map +1 -0
  109. package/dist/commands/session.d.ts.map +1 -1
  110. package/dist/commands/session.js +9 -117
  111. package/dist/commands/session.js.map +1 -1
  112. package/dist/commands/status.d.ts.map +1 -1
  113. package/dist/commands/status.js +8 -20
  114. package/dist/commands/status.js.map +1 -1
  115. package/dist/commands/sync.d.ts.map +1 -1
  116. package/dist/commands/sync.js +49 -26
  117. package/dist/commands/sync.js.map +1 -1
  118. package/dist/config.d.ts +2 -0
  119. package/dist/config.d.ts.map +1 -1
  120. package/dist/config.js +4 -0
  121. package/dist/config.js.map +1 -1
  122. package/dist/discovery.d.ts +4 -15
  123. package/dist/discovery.d.ts.map +1 -1
  124. package/dist/discovery.js +19 -92
  125. package/dist/discovery.js.map +1 -1
  126. package/dist/mail/backend.d.ts +36 -0
  127. package/dist/mail/backend.d.ts.map +1 -0
  128. package/dist/mail/backend.js +2 -0
  129. package/dist/mail/backend.js.map +1 -0
  130. package/dist/mail/imap/account.d.ts +5 -0
  131. package/dist/mail/imap/account.d.ts.map +1 -0
  132. package/dist/mail/imap/account.js +41 -0
  133. package/dist/mail/imap/account.js.map +1 -0
  134. package/dist/mail/imap/connection.d.ts +62 -0
  135. package/dist/mail/imap/connection.d.ts.map +1 -0
  136. package/dist/mail/imap/connection.js +188 -0
  137. package/dist/mail/imap/connection.js.map +1 -0
  138. package/dist/mail/{imap-errors.d.ts → imap/errors.d.ts} +1 -1
  139. package/dist/mail/imap/errors.d.ts.map +1 -0
  140. package/dist/mail/{imap-errors.js → imap/errors.js} +1 -1
  141. package/dist/mail/imap/errors.js.map +1 -0
  142. package/dist/mail/imap/index.d.ts +7 -0
  143. package/dist/mail/imap/index.d.ts.map +1 -0
  144. package/dist/mail/imap/index.js +11 -0
  145. package/dist/mail/imap/index.js.map +1 -0
  146. package/dist/mail/{imap-messages.d.ts → imap/messages.d.ts} +9 -9
  147. package/dist/mail/imap/messages.d.ts.map +1 -0
  148. package/dist/mail/imap/messages.js +66 -0
  149. package/dist/mail/imap/messages.js.map +1 -0
  150. package/dist/mail/imap/read.d.ts +7 -0
  151. package/dist/mail/imap/read.d.ts.map +1 -0
  152. package/dist/mail/imap/read.js +164 -0
  153. package/dist/mail/imap/read.js.map +1 -0
  154. package/dist/mail/rethread.d.ts +15 -0
  155. package/dist/mail/rethread.d.ts.map +1 -0
  156. package/dist/mail/rethread.js +52 -0
  157. package/dist/mail/rethread.js.map +1 -0
  158. package/dist/profile.d.ts +2 -1
  159. package/dist/profile.d.ts.map +1 -1
  160. package/dist/profile.js +1 -0
  161. package/dist/profile.js.map +1 -1
  162. package/dist/providers.d.ts +126 -26
  163. package/dist/providers.d.ts.map +1 -1
  164. package/dist/providers.js +141 -72
  165. package/dist/providers.js.map +1 -1
  166. package/dist/secret.d.ts +2 -1
  167. package/dist/secret.d.ts.map +1 -1
  168. package/dist/secret.js +1 -0
  169. package/dist/secret.js.map +1 -1
  170. package/dist/version.d.ts +1 -1
  171. package/dist/version.js +1 -1
  172. package/package.json +3 -2
  173. package/skills/mail-cli/SKILL.md +8 -0
  174. package/dist/bundle/server-JRTHUCVY.js +0 -63
  175. package/dist/bundle/store-maintenance-command-I7V5C44K.js +0 -52
  176. package/dist/commands/doctor.d.ts +0 -77
  177. package/dist/commands/doctor.d.ts.map +0 -1
  178. package/dist/commands/doctor.js +0 -74
  179. package/dist/commands/doctor.js.map +0 -1
  180. package/dist/commands/mcp.d.ts +0 -3
  181. package/dist/commands/mcp.d.ts.map +0 -1
  182. package/dist/commands/mcp.js +0 -97
  183. package/dist/commands/mcp.js.map +0 -1
  184. package/dist/commands/setup.d.ts +0 -3
  185. package/dist/commands/setup.d.ts.map +0 -1
  186. package/dist/commands/setup.js +0 -156
  187. package/dist/commands/setup.js.map +0 -1
  188. package/dist/mail/imap-errors.d.ts.map +0 -1
  189. package/dist/mail/imap-errors.js.map +0 -1
  190. package/dist/mail/imap-messages.d.ts.map +0 -1
  191. package/dist/mail/imap-messages.js +0 -66
  192. package/dist/mail/imap-messages.js.map +0 -1
  193. package/dist/mail/imap.d.ts +0 -67
  194. package/dist/mail/imap.d.ts.map +0 -1
  195. package/dist/mail/imap.js +0 -348
  196. package/dist/mail/imap.js.map +0 -1
  197. package/dist/mail/parse.d.ts +0 -18
  198. package/dist/mail/parse.d.ts.map +0 -1
  199. package/dist/mail/parse.js +0 -31
  200. package/dist/mail/parse.js.map +0 -1
  201. package/dist/mail/port.d.ts +0 -50
  202. package/dist/mail/port.d.ts.map +0 -1
  203. package/dist/mail/port.js +0 -4
  204. package/dist/mail/port.js.map +0 -1
  205. package/dist/mcp.d.ts +0 -29
  206. package/dist/mcp.d.ts.map +0 -1
  207. package/dist/mcp.js +0 -98
  208. package/dist/mcp.js.map +0 -1
  209. package/dist/sync.d.ts +0 -26
  210. package/dist/sync.d.ts.map +0 -1
  211. package/dist/sync.js +0 -75
  212. package/dist/sync.js.map +0 -1
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
11
11
  import { constants } from "node:fs";
12
12
  import { lstat, open } from "node:fs/promises";
13
13
  var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
73
73
  }
74
74
  }, "syncDirectory");
75
75
 
76
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
76
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
77
77
  import { randomUUID } from "node:crypto";
78
78
  import { constants as constants2 } from "node:fs";
79
79
  import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
111
111
  }
112
112
  }, "writeFileAtomic");
113
113
 
114
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
115
115
  var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
116
116
  if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
117
117
  throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
140
140
  }
141
141
  }, "readBoundedUtf8File");
142
142
 
143
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/lock.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/lock.js
144
144
  import { mkdir as mkdir2 } from "node:fs/promises";
145
145
  import { basename as basename2, dirname as dirname2 } from "node:path";
146
146
 
147
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
147
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
148
148
  import { randomUUID as randomUUID2 } from "node:crypto";
149
149
  import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
150
150
  import { hostname as hostname2 } from "node:os";
151
151
  import { join as join3 } from "node:path";
152
152
 
153
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
153
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
154
154
  import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
155
155
  import { join as join2 } from "node:path";
156
156
 
157
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
157
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
158
158
  import { hostname } from "node:os";
159
159
  var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
160
160
  var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
199
199
  }
200
200
  }, "leaseOwnerStatus");
201
201
 
202
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
202
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
203
203
  var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
204
204
  const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
205
205
  options.signal?.throwIfAborted();
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
258
258
  return { inspect, recover };
259
259
  }, "leaseInspection");
260
260
 
261
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
261
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
262
262
  import { rmdir, unlink as unlink3 } from "node:fs/promises";
263
263
  var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
264
264
  let releasing;
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
283
283
  };
284
284
  }, "ownedNativeLease");
285
285
 
286
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
286
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
287
287
  var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
288
288
  var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
289
289
  const { markerDirectory, legacyMarker } = layout;
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
354
354
  };
355
355
  }, "nativeWriterLeaseStore");
356
356
 
357
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/files/lock.js
357
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/files/lock.js
358
358
  var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
359
359
  const folder = dirname2(path);
360
360
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -20,7 +20,7 @@ import {
20
20
  tool,
21
21
  toolKey,
22
22
  toolsFromCommands
23
- } from "./chunk-3KOA73LS.js";
23
+ } from "./chunk-GPAAQ6LY.js";
24
24
  import {
25
25
  CHART_KINDS,
26
26
  CHART_SIZE,
@@ -34,22 +34,23 @@ import {
34
34
  registerPrompts,
35
35
  stdinFieldOf,
36
36
  syncsFirst
37
- } from "./chunk-CEW6KIFA.js";
37
+ } from "./chunk-QUSZWBZF.js";
38
38
  import {
39
39
  agentJson,
40
40
  skillResource
41
- } from "./chunk-K4FVKPDQ.js";
41
+ } from "./chunk-S2GSU4MT.js";
42
42
  import {
43
43
  instructions
44
- } from "./chunk-TQFCPUIM.js";
44
+ } from "./chunk-7LKJDJNS.js";
45
45
  import {
46
46
  answeredWire
47
- } from "./chunk-JBBZCTTF.js";
47
+ } from "./chunk-AROBJF5P.js";
48
48
  import {
49
49
  StdioServerTransport,
50
50
  callerOf,
51
+ callingAgent,
51
52
  serveStdio
52
- } from "./chunk-VEIZZRQ5.js";
53
+ } from "./chunk-H7NUGJPV.js";
53
54
  import {
54
55
  McpServer,
55
56
  ResourceTemplate
@@ -57,7 +58,7 @@ import {
57
58
  import {
58
59
  connectedFor,
59
60
  guardFor
60
- } from "./chunk-3E3WA2L6.js";
61
+ } from "./chunk-Y5WA7AOA.js";
61
62
  import {
62
63
  capability,
63
64
  dateWindow,
@@ -66,10 +67,10 @@ import {
66
67
  servicesFor,
67
68
  storedDeps,
68
69
  wholeList
69
- } from "./chunk-T6464KYA.js";
70
+ } from "./chunk-STC45HZX.js";
70
71
  import {
71
72
  findCommand
72
- } from "./chunk-MS53RALV.js";
73
+ } from "./chunk-5FLW25US.js";
73
74
  import {
74
75
  DEFAULT_OUTPUT_BYTES,
75
76
  changesAuthorityAt,
@@ -84,28 +85,28 @@ import {
84
85
  sealed,
85
86
  snakeKeys,
86
87
  typedCommand
87
- } from "./chunk-GQQJOH7A.js";
88
+ } from "./chunk-GQKYSGIA.js";
88
89
  import {
89
90
  levelFor,
90
91
  readKeysForCommand
91
- } from "./chunk-QLEUNU6G.js";
92
+ } from "./chunk-H5BW7454.js";
92
93
  import {
93
94
  isCliFailure,
94
95
  withCaller
95
- } from "./chunk-7SXGLT6T.js";
96
+ } from "./chunk-QUGFBY7O.js";
96
97
  import {
97
98
  mcpHttpMarker
98
- } from "./chunk-GN62YOT5.js";
99
+ } from "./chunk-4I3YT5KK.js";
99
100
  import {
100
101
  openStore,
101
102
  pdfPreviewLimits
102
- } from "./chunk-NK7EB63L.js";
103
+ } from "./chunk-BKZEYTLU.js";
103
104
  import {
104
105
  timezoneOf
105
- } from "./chunk-UH4DDRHA.js";
106
+ } from "./chunk-ZNYJG4AY.js";
106
107
  import {
107
108
  warmEmbedders
108
- } from "./chunk-Z34ICZA3.js";
109
+ } from "./chunk-QLYHLW54.js";
109
110
  import {
110
111
  description,
111
112
  integer,
@@ -130,10 +131,10 @@ import {
130
131
  __name
131
132
  } from "./chunk-ZVVMGPBJ.js";
132
133
 
133
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/server.js
134
135
  import { randomUUID } from "node:crypto";
135
136
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
137
138
  var agentLog = /* @__PURE__ */ __name((open) => {
138
139
  let held;
139
140
  return {
@@ -152,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
152
153
  };
153
154
  }, "agentLog");
154
155
 
155
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/resources.js
156
157
  var LISTED = 100;
157
158
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
158
159
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -190,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
190
191
  });
191
192
  }, "registerResources");
192
193
 
193
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/session.js
194
195
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
195
196
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
196
197
  var MessengerSession = class {
@@ -265,7 +266,7 @@ var MessengerSession = class {
265
266
  }
266
267
  };
267
268
 
268
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
269
270
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
270
271
  const _command = messenger.app.command;
271
272
  return {
@@ -319,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
319
320
  };
320
321
  }, "attachmentsTools");
321
322
 
322
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
323
324
  var PHOTO_LIMIT = 512 * 1024;
324
325
  var IMAGE_TYPES = [
325
326
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -373,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
373
374
  return new Uint8Array(Buffer.concat(chunks));
374
375
  }, "readUpTo");
375
376
 
376
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
377
378
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
378
379
  stats_charts: tool({
379
380
  title: "A chart from a chat's statistics",
@@ -410,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
410
411
  })
411
412
  }), "statsTools");
412
413
 
413
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/tools.js
414
415
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
415
416
  ...messagesPhotoTools(messenger),
416
417
  ...attachmentsTools(messenger),
417
418
  ...statsTools(messenger)
418
419
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
419
420
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/mcp/server.js
421
422
  var PER_RUN = /* @__PURE__ */ new Set([
422
423
  "streams",
423
424
  "stdin",
@@ -535,10 +536,10 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
535
536
  });
536
537
  const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
537
538
  const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
538
- const audit = /* @__PURE__ */ __name(async (call) => {
539
+ const audit = /* @__PURE__ */ __name(async (call, caller) => {
539
540
  if (!recalledAccount(app, provider, settings.profile, context.env))
540
541
  return;
541
- await log.record({ actor: { bot: `${app.command}-mcp` }, ...call });
542
+ await log.record({ actor: { bot: callingAgent(`${app.command}-mcp`, caller) }, ...call });
542
543
  }, "audit");
543
544
  const targets = judgedTargets(root);
544
545
  const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
@@ -610,7 +611,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
610
611
  ...outcomeOf(result),
611
612
  startedAt,
612
613
  finishedAt: Date.now()
613
- }).catch(() => void 0);
614
+ }, caller).catch(() => void 0);
614
615
  return result;
615
616
  }, "run")
616
617
  }), "asCommand");
@@ -741,7 +742,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
741
742
  }, "serveOverStdio");
742
743
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
743
744
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
744
- const { serveOverHttp } = await import("./serve-ENPMIV6J.js");
745
+ const { serveOverHttp } = await import("./serve-UDXIEQKC.js");
745
746
  const appName = messenger.app.command;
746
747
  const appEnvPrefix = messenger.app.envPrefix;
747
748
  const listening = await serveOverHttp(build, {
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  unit
5
- } from "./chunk-Z34ICZA3.js";
5
+ } from "./chunk-QLYHLW54.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-5BVIWP3S.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
14
14
  import { setTimeout } from "node:timers/promises";
15
15
  var OPENAI_URL = "https://api.openai.com/v1";
16
16
  var OPENAI_MODELS = {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
8
8
  var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
9
9
  var kindsByConstructor = /* @__PURE__ */ new WeakMap();
10
10
  function collectKinds(ctor) {
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-core@0.507.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_d5beb0101c7a90701cc33879a5be8d28/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.516.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_25c347a01b8fd53eda94896ae0eba94d/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();