@wirecat/mail-cli 0.6.0 → 0.7.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 (185) hide show
  1. package/CHANGELOG.md +42 -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-SI67TKZM.js} +6 -6
  5. package/dist/bundle/{anthropic-PTSCWUG6.js → anthropic-DALMLC3Y.js} +4 -4
  6. package/dist/bundle/{app-server-5VJ2WCKJ.js → app-server-XOH327Z2.js} +41 -41
  7. package/dist/bundle/{bun-2KRUBPIN.js → bun-ORL67CJ6.js} +2 -2
  8. package/dist/bundle/{bun-sqlite-ELSRSJBM.js → bun-sqlite-DGXFNFHI.js} +3 -3
  9. package/dist/bundle/{chunk-B337KHJ5.js → chunk-23IEVVL2.js} +1 -1
  10. package/dist/bundle/{chunk-PKU6V4EQ.js → chunk-2M4K7HYR.js} +16 -16
  11. package/dist/bundle/{chunk-RDSAI6DC.js → chunk-35KD2CI2.js} +349 -254
  12. package/dist/bundle/{chunk-J4C32YKH.js → chunk-3GZK5GTU.js} +1 -1
  13. package/dist/bundle/{chunk-OHV5RDFE.js → chunk-3TYEJRMZ.js} +3 -3
  14. package/dist/bundle/{chunk-AGX7NR3S.js → chunk-45KA5667.js} +12 -12
  15. package/dist/bundle/{chunk-YBJMBPL7.js → chunk-4NYWHINR.js} +5 -5
  16. package/dist/bundle/{chunk-JKLQHPED.js → chunk-4ULY3GDL.js} +9 -9
  17. package/dist/bundle/{chunk-O555ZEQR.js → chunk-5BSEGMNE.js} +3 -3
  18. package/dist/bundle/{chunk-ZPGLWMNH.js → chunk-5JEYIHS6.js} +3 -3
  19. package/dist/bundle/{chunk-56PI2BRH.js → chunk-6LK7KTWB.js} +1 -1
  20. package/dist/bundle/{chunk-ES4PWHBJ.js → chunk-6RMMAUUW.js} +26 -26
  21. package/dist/bundle/{chunk-TKJDGAHT.js → chunk-6XNPXAJU.js} +31 -25
  22. package/dist/bundle/{chunk-PBYDT3CG.js → chunk-73OJJGZE.js} +3 -2
  23. package/dist/bundle/{chunk-WGK4AIRL.js → chunk-7K6KJWTO.js} +11 -11
  24. package/dist/bundle/{chunk-FIQOBLHS.js → chunk-AP7V256W.js} +1 -1
  25. package/dist/bundle/{chunk-K5JUROGN.js → chunk-BEMLGWY4.js} +1 -1
  26. package/dist/bundle/{chunk-P5B7IFOG.js → chunk-BGUMGCUY.js} +1 -1
  27. package/dist/bundle/{chunk-NZB4WGQS.js → chunk-CAKBG5FC.js} +5 -5
  28. package/dist/bundle/{chunk-RAZOSYEO.js → chunk-DKQWTQVY.js} +22 -22
  29. package/dist/bundle/{chunk-TPNC5VCJ.js → chunk-DXGMPMFP.js} +4 -4
  30. package/dist/bundle/{chunk-5AQKM47C.js → chunk-E3DRM6YP.js} +2 -2
  31. package/dist/bundle/{chunk-JFJTDL22.js → chunk-EYT33MM3.js} +44 -44
  32. package/dist/bundle/{chunk-LWTG5UOF.js → chunk-FPOGVDLS.js} +2 -2
  33. package/dist/bundle/{chunk-5KHJUYHQ.js → chunk-FTFNWGIR.js} +6 -6
  34. package/dist/bundle/{chunk-4PKHZQIM.js → chunk-GJUUTUK4.js} +7 -7
  35. package/dist/bundle/{chunk-NOU6MWEM.js → chunk-HFJNEXU7.js} +1 -1
  36. package/dist/bundle/{chunk-M7V3GSJQ.js → chunk-HV3EIYX4.js} +1 -1
  37. package/dist/bundle/{chunk-H4VFIH5W.js → chunk-IYZHM3ZN.js} +2 -2
  38. package/dist/bundle/{chunk-DA46WQEA.js → chunk-JFMUI4H6.js} +1 -1
  39. package/dist/bundle/{chunk-VF24ZAPX.js → chunk-LZ5J3UXD.js} +3 -3
  40. package/dist/bundle/{chunk-Y7JKWQC2.js → chunk-M2JCUVCJ.js} +112 -93
  41. package/dist/bundle/{chunk-KUQYWIVR.js → chunk-MCJ7LKYR.js} +5 -5
  42. package/dist/bundle/{chunk-XERTHQ6D.js → chunk-MHQKHWCJ.js} +14 -14
  43. package/dist/bundle/{chunk-VEAP5RVI.js → chunk-MMXMVGA6.js} +6 -6
  44. package/dist/bundle/{chunk-PHPC72DP.js → chunk-NNIXREJH.js} +5 -5
  45. package/dist/bundle/{chunk-UAXBLHZK.js → chunk-OHTR4WFO.js} +2 -2
  46. package/dist/bundle/{chunk-SAZJDKEI.js → chunk-PDL4UREY.js} +6 -6
  47. package/dist/bundle/{chunk-JLRMSNPX.js → chunk-Q2C3VMSU.js} +2 -0
  48. package/dist/bundle/{chunk-JIQAFFPV.js → chunk-Q44AYEOB.js} +2 -2
  49. package/dist/bundle/{chunk-6MV2TBDB.js → chunk-R5MML3FC.js} +51 -47
  50. package/dist/bundle/{chunk-ZRYFEEXZ.js → chunk-RQVWZBW3.js} +2 -2
  51. package/dist/bundle/{chunk-3KY7DA5A.js → chunk-S4YUR4S3.js} +426 -336
  52. package/dist/bundle/{chunk-MD2J3POF.js → chunk-U6UJ3HRS.js} +7 -1
  53. package/dist/bundle/{chunk-XZGLY2LU.js → chunk-V4TDG4KF.js} +10 -10
  54. package/dist/bundle/{chunk-ZMMIIBTM.js → chunk-VBOMKZ4E.js} +42 -42
  55. package/dist/bundle/{chunk-NCWO2FNC.js → chunk-VKPWP3AK.js} +1 -1
  56. package/dist/bundle/{chunk-O7VK7CJX.js → chunk-VNJMO5F6.js} +2 -2
  57. package/dist/bundle/{chunk-J5MYH4L5.js → chunk-VSHJWTX5.js} +5 -5
  58. package/dist/bundle/{chunk-DV4RSEAH.js → chunk-XQJWMBDY.js} +5 -5
  59. package/dist/bundle/{chunk-JKA2AICL.js → chunk-ZKCNMW7G.js} +1 -1
  60. package/dist/bundle/{chunk-WCL3WBH5.js → chunk-ZKZABB4K.js} +1 -1
  61. package/dist/bundle/{chunk-BVIHT7KR.js → chunk-ZNGQ3NZ4.js} +8 -8
  62. package/dist/bundle/{command-contract-NZF4B5OR.js → command-contract-CB5BII3S.js} +14 -14
  63. package/dist/bundle/{decode-HVXDCQ63.js → decode-KOBURZIQ.js} +3 -3
  64. package/dist/bundle/{dist-43DZXMBL.js → dist-T7HMT675.js} +10 -10
  65. package/dist/bundle/{echarts-LZ74IXHG.js → echarts-LEWTQO6H.js} +2 -2
  66. package/dist/bundle/{embed-OQF5U2C6.js → embed-PUFE4BSQ.js} +4 -4
  67. package/dist/bundle/{embedder-OCWQAWKO.js → embedder-3G4BQQ6X.js} +7 -7
  68. package/dist/bundle/{first-run-MTZPUPGA.js → first-run-FLXOC53U.js} +7 -7
  69. package/dist/bundle/first-screen-VUZEDSQW.js +32 -0
  70. package/dist/bundle/{instructions-M6F4FP7U.js → instructions-HGSXDCBT.js} +1 -1
  71. package/dist/bundle/mail.js +3 -3
  72. package/dist/bundle/{node-NYBBFHGN.js → node-5Z7PS4F5.js} +2 -2
  73. package/dist/bundle/{node-sqlite-CWCNWO75.js → node-sqlite-OAW7APIX.js} +3 -3
  74. package/dist/bundle/{oauth-DVX45EME.js → oauth-ZFZWPAJN.js} +5 -5
  75. package/dist/bundle/{open-M7EQWWHL.js → open-ZQMBZVH4.js} +2 -2
  76. package/dist/bundle/{openai-63KRU5H2.js → openai-XT2RIXAK.js} +11 -11
  77. package/dist/bundle/{process-DV5GQIGM.js → process-VVEQIHPE.js} +1 -1
  78. package/dist/bundle/{program-EPR3QCMX.js → program-RD3BBDNY.js} +2391 -941
  79. package/dist/bundle/{prompt-EPWPWTB3.js → prompt-PU7GE4Z4.js} +3 -3
  80. package/dist/bundle/{recognize-R46KDXK4.js → recognize-AG4A3KUK.js} +2 -2
  81. package/dist/bundle/{remote-RENCYB5X.js → remote-D6TQ6T7F.js} +5 -5
  82. package/dist/bundle/{rerank-VHPC5O73.js → rerank-GO24HJPF.js} +5 -5
  83. package/dist/bundle/{serve-KCH3ORYO.js → serve-WCHJAH6G.js} +7 -7
  84. package/dist/bundle/server-5KJJ3D6P.js +63 -0
  85. package/dist/bundle/{server-HZVXSK7B.js → server-CAVNBG3P.js} +33 -33
  86. package/dist/bundle/{sqlite-runtime-XP7ZJCKJ.js → sqlite-runtime-ANXC4AW2.js} +3 -3
  87. package/dist/bundle/{state-GQ4MEQJ5.js → state-EGJ66A62.js} +4 -4
  88. package/dist/bundle/{store-WT7YTR3Y.js → store-OON7FCMQ.js} +12 -12
  89. package/dist/bundle/{store-CQNLNINW.js → store-SBFA444C.js} +10 -10
  90. package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +52 -0
  91. package/dist/commands/attachments.js +2 -2
  92. package/dist/commands/attachments.js.map +1 -1
  93. package/dist/commands/context.d.ts +21 -6
  94. package/dist/commands/context.d.ts.map +1 -1
  95. package/dist/commands/context.js +47 -6
  96. package/dist/commands/context.js.map +1 -1
  97. package/dist/commands/drafts.d.ts.map +1 -1
  98. package/dist/commands/drafts.js +20 -16
  99. package/dist/commands/drafts.js.map +1 -1
  100. package/dist/commands/export.d.ts.map +1 -1
  101. package/dist/commands/export.js +10 -7
  102. package/dist/commands/export.js.map +1 -1
  103. package/dist/commands/messages.d.ts.map +1 -1
  104. package/dist/commands/messages.js +13 -9
  105. package/dist/commands/messages.js.map +1 -1
  106. package/dist/commands/read.d.ts.map +1 -1
  107. package/dist/commands/read.js +2 -1
  108. package/dist/commands/read.js.map +1 -1
  109. package/dist/commands/send.d.ts.map +1 -1
  110. package/dist/commands/send.js +5 -5
  111. package/dist/commands/send.js.map +1 -1
  112. package/dist/commands/session-start.d.ts.map +1 -1
  113. package/dist/commands/session-start.js +107 -10
  114. package/dist/commands/session-start.js.map +1 -1
  115. package/dist/commands/session.d.ts.map +1 -1
  116. package/dist/commands/session.js +72 -9
  117. package/dist/commands/session.js.map +1 -1
  118. package/dist/commands/stats.d.ts.map +1 -1
  119. package/dist/commands/stats.js +2 -3
  120. package/dist/commands/stats.js.map +1 -1
  121. package/dist/commands/status.js +2 -2
  122. package/dist/commands/status.js.map +1 -1
  123. package/dist/commands/sync.d.ts +0 -1
  124. package/dist/commands/sync.d.ts.map +1 -1
  125. package/dist/commands/sync.js +8 -15
  126. package/dist/commands/sync.js.map +1 -1
  127. package/dist/config.d.ts +3 -1
  128. package/dist/config.d.ts.map +1 -1
  129. package/dist/config.js +6 -1
  130. package/dist/config.js.map +1 -1
  131. package/dist/mail/backend.d.ts +23 -1
  132. package/dist/mail/backend.d.ts.map +1 -1
  133. package/dist/mail/backend.js +4 -1
  134. package/dist/mail/backend.js.map +1 -1
  135. package/dist/mail/compose.d.ts.map +1 -1
  136. package/dist/mail/compose.js +13 -25
  137. package/dist/mail/compose.js.map +1 -1
  138. package/dist/mail/doctor.d.ts +42 -0
  139. package/dist/mail/doctor.d.ts.map +1 -1
  140. package/dist/mail/doctor.js +76 -0
  141. package/dist/mail/doctor.js.map +1 -1
  142. package/dist/mail/drafts.d.ts.map +1 -1
  143. package/dist/mail/drafts.js +4 -4
  144. package/dist/mail/drafts.js.map +1 -1
  145. package/dist/mail/imap/connection.d.ts +6 -3
  146. package/dist/mail/imap/connection.d.ts.map +1 -1
  147. package/dist/mail/imap/connection.js +63 -16
  148. package/dist/mail/imap/connection.js.map +1 -1
  149. package/dist/mail/imap/index.d.ts +2 -2
  150. package/dist/mail/imap/index.d.ts.map +1 -1
  151. package/dist/mail/imap/index.js +3 -3
  152. package/dist/mail/imap/index.js.map +1 -1
  153. package/dist/mail/imap/search.d.ts.map +1 -1
  154. package/dist/mail/imap/search.js +10 -4
  155. package/dist/mail/imap/search.js.map +1 -1
  156. package/dist/mail/save.d.ts +2 -5
  157. package/dist/mail/save.d.ts.map +1 -1
  158. package/dist/mail/save.js +6 -27
  159. package/dist/mail/save.js.map +1 -1
  160. package/dist/mail/send.d.ts.map +1 -1
  161. package/dist/mail/send.js +1 -0
  162. package/dist/mail/send.js.map +1 -1
  163. package/dist/mail/smtp.d.ts +3 -3
  164. package/dist/mail/smtp.d.ts.map +1 -1
  165. package/dist/mail/smtp.js +72 -36
  166. package/dist/mail/smtp.js.map +1 -1
  167. package/dist/oauth.d.ts +74 -0
  168. package/dist/oauth.d.ts.map +1 -0
  169. package/dist/oauth.js +230 -0
  170. package/dist/oauth.js.map +1 -0
  171. package/dist/program.js +2 -2
  172. package/dist/program.js.map +1 -1
  173. package/dist/providers.d.ts +25 -3
  174. package/dist/providers.d.ts.map +1 -1
  175. package/dist/providers.js +32 -8
  176. package/dist/providers.js.map +1 -1
  177. package/dist/reasons.d.ts.map +1 -1
  178. package/dist/reasons.js +6 -0
  179. package/dist/reasons.js.map +1 -1
  180. package/dist/version.d.ts +1 -1
  181. package/dist/version.js +1 -1
  182. package/package.json +3 -4
  183. package/dist/bundle/first-screen-4PBS6QK5.js +0 -32
  184. package/dist/bundle/server-FMCPE2ZK.js +0 -63
  185. package/dist/bundle/store-maintenance-command-YYR42IT4.js +0 -52
@@ -8,7 +8,7 @@ import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/domain/locator.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/locator.js
12
12
  var SCHEME = "msg:";
13
13
  var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
14
14
  var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
@@ -22,7 +22,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
22
22
  return { provider, account, chat, message };
23
23
  }, "parseLocator");
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/domain/references.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/references.js
26
26
  var SIMPLE_REFERENCES = [
27
27
  "note",
28
28
  "document",
@@ -94,7 +94,7 @@ var folderPath = /* @__PURE__ */ __name((path) => {
94
94
  }, "folderPath");
95
95
  var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
96
96
 
97
- // 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/domain/providers.js
97
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/providers.js
98
98
  var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
99
99
  var PROVIDERS = [
100
100
  { name: "telegram", kind: "messages", aliases: ["tg"] },
@@ -188,7 +188,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
188
188
  var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
189
189
  var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
190
190
 
191
- // 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/domain/counters.js
191
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/counters.js
192
192
  var COUNTER_FIELDS = ["views", "reactions", "comments"];
193
193
  var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
194
194
  var counterValue = /* @__PURE__ */ __name((message, field) => {
@@ -225,7 +225,7 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
225
225
  return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
226
226
  }, "counterFreshness");
227
227
 
228
- // 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/domain/rankings-options.js
228
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
229
229
  var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
230
230
  var AUTHOR_MEASURES = [
231
231
  "messages",
@@ -6,26 +6,26 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  commandAvailability
9
- } from "./chunk-XZGLY2LU.js";
9
+ } from "./chunk-V4TDG4KF.js";
10
10
  import {
11
11
  failureContext
12
- } from "./chunk-PBYDT3CG.js";
12
+ } from "./chunk-73OJJGZE.js";
13
13
  import {
14
14
  callerOf
15
- } from "./chunk-O7VK7CJX.js";
15
+ } from "./chunk-VNJMO5F6.js";
16
16
  import {
17
17
  lentConnection,
18
18
  onlineDeps,
19
19
  refuseLacking,
20
20
  servicesFor,
21
21
  storeModeDeps
22
- } from "./chunk-3KY7DA5A.js";
22
+ } from "./chunk-S4YUR4S3.js";
23
23
  import {
24
24
  MAX_BUFFERED_INPUT
25
- } from "./chunk-P5B7IFOG.js";
25
+ } from "./chunk-BGUMGCUY.js";
26
26
  import {
27
27
  ENTITIES
28
- } from "./chunk-Y7JKWQC2.js";
28
+ } from "./chunk-M2JCUVCJ.js";
29
29
  import {
30
30
  DEFAULT_OUTPUT_BYTES,
31
31
  LOCAL_WRITE,
@@ -43,24 +43,24 @@ import {
43
43
  sealed,
44
44
  startRecording,
45
45
  traceOf
46
- } from "./chunk-6MV2TBDB.js";
46
+ } from "./chunk-R5MML3FC.js";
47
47
  import {
48
48
  authorityAllowed,
49
49
  botApiAllowed,
50
50
  keyForCommand,
51
51
  levelFor,
52
52
  readKeysForCommand
53
- } from "./chunk-J5MYH4L5.js";
53
+ } from "./chunk-VSHJWTX5.js";
54
54
  import {
55
55
  currentCaller,
56
56
  keepsSuccess,
57
57
  runContextOf,
58
58
  withCaller
59
- } from "./chunk-BVIHT7KR.js";
59
+ } from "./chunk-ZNGQ3NZ4.js";
60
60
  import {
61
61
  captureStreams,
62
62
  traceIdOf
63
- } from "./chunk-JLRMSNPX.js";
63
+ } from "./chunk-Q2C3VMSU.js";
64
64
  import {
65
65
  SNAKE_CASE,
66
66
  array,
@@ -107,7 +107,7 @@ import {
107
107
  __name
108
108
  } from "./chunk-ZVVMGPBJ.js";
109
109
 
110
- // 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.js
110
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
111
111
  import { Readable } from "node:stream";
112
112
 
113
113
  // 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/standards/lint.js
@@ -2827,7 +2827,7 @@ var VOCABULARY = defineVocabulary({
2827
2827
  flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
2828
2828
  });
2829
2829
 
2830
- // 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.js
2830
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/agent.js
2831
2831
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
2832
2832
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
2833
2833
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3048,7 +3048,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3048
3048
  }
3049
3049
  }, "runCommandForAgent");
3050
3050
 
3051
- // 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/tool.js
3051
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3052
3052
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3053
3053
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3054
3054
  var message = pipe(
@@ -3307,7 +3307,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3307
3307
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
3308
3308
  }, "failed");
3309
3309
 
3310
- // 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/surface.js
3310
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3311
3311
  import { randomUUID } from "node:crypto";
3312
3312
  var MATCHES = 8;
3313
3313
  var ANSWER = answerSchema();
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/tasks/model.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/tasks/model.js
11
11
  var TASK_KINDS = ["question", "request", "mention", "promise"];
12
12
  var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
13
13
  var CLOSED_STATES = ["done", "dismissed"];
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
22
22
  }
23
23
  __name(closeTask, "closeTask");
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/tasks/priority.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/tasks/priority.js
26
26
  var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
27
27
  var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
28
28
  var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
@@ -51,7 +51,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
51
51
  }, "priorityOf");
52
52
  var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
53
53
 
54
- // 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/tasks/service.js
54
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/tasks/service.js
55
55
  function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
56
56
  async function find(id) {
57
57
  const task = await store.get(id);
@@ -111,13 +111,13 @@ function median(values) {
111
111
  }
112
112
  __name(median, "median");
113
113
 
114
- // 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/tasks/store.js
114
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/tasks/store.js
115
115
  function matches(task, filter) {
116
116
  return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
117
117
  }
118
118
  __name(matches, "matches");
119
119
 
120
- // 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/domain/knowledge.js
120
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
121
121
  var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
122
122
  var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
123
123
  var MEMORY_KINDS = ["summary", "digest", "preference"];
@@ -126,7 +126,7 @@ var MEMORY_SCOPES = ["personal", "work"];
126
126
  var WORK_TASK_TYPES = ["bug", "feature", "chore"];
127
127
  var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
128
128
 
129
- // 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/store/sqlite/link-kinds.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
130
130
  var LINK_KINDS = [
131
131
  "links-to",
132
132
  "blocked-by",
@@ -2,16 +2,16 @@ 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-M2JCUVCJ.js";
6
6
  import {
7
7
  annotate,
8
8
  answerSchema,
9
9
  describeOptions,
10
10
  metaOf
11
- } from "./chunk-6MV2TBDB.js";
11
+ } from "./chunk-R5MML3FC.js";
12
12
  import {
13
13
  keyForCommand
14
- } from "./chunk-J5MYH4L5.js";
14
+ } from "./chunk-VSHJWTX5.js";
15
15
  import {
16
16
  jsonSchemaOf
17
17
  } from "./chunk-NXJLC2WK.js";
@@ -22,7 +22,7 @@ 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.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/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.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/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);
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-TPNC5VCJ.js";
11
+ } from "./chunk-DXGMPMFP.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // 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/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -4,7 +4,7 @@ import {
4
4
  commandPathOf,
5
5
  findCommand,
6
6
  outputOf
7
- } from "./chunk-PHPC72DP.js";
7
+ } from "./chunk-NNIXREJH.js";
8
8
  import {
9
9
  wrapAnsi
10
10
  } from "./chunk-HTQTIKWP.js";
@@ -18,7 +18,7 @@ import {
18
18
  environmentOf,
19
19
  metaOf,
20
20
  takesProfile
21
- } from "./chunk-6MV2TBDB.js";
21
+ } from "./chunk-R5MML3FC.js";
22
22
  import {
23
23
  writes
24
24
  } from "./chunk-NXJLC2WK.js";
@@ -29,7 +29,7 @@ import {
29
29
  __name
30
30
  } from "./chunk-ZVVMGPBJ.js";
31
31
 
32
- // 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/help/sections.js
32
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
33
33
  var SECTIONS = {
34
34
  read: "Read",
35
35
  write: "Write",
@@ -90,7 +90,7 @@ var CORE_SECTIONS = {
90
90
  upgrade: "setup"
91
91
  };
92
92
 
93
- // 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/help/commands-text.js
93
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
94
94
  var DESCRIPTION = 90;
95
95
  var COLUMN = 52;
96
96
  var short = /* @__PURE__ */ __name((text) => {
@@ -129,7 +129,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
129
129
  `;
130
130
  }, "commandsText");
131
131
 
132
- // 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/help/command-help.js
132
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
133
133
  var ARGUMENT_KINDS = {
134
134
  chat: "chat",
135
135
  chats: "chat",
@@ -321,7 +321,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
321
321
  command.addHelpText("after", () => commandHelpText(command));
322
322
  }, "installCommandHelp");
323
323
 
324
- // 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/help/first-screen.js
324
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
325
325
  var WIRECAT_TOOLS = [
326
326
  {
327
327
  command: "tg",
@@ -2220,6 +2220,7 @@ var systemKeyring = {
2220
2220
  };
2221
2221
 
2222
2222
  // 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/credentials.js
2223
+ var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
2223
2224
  var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
2224
2225
  var warnedRuns = /* @__PURE__ */ new WeakSet();
2225
2226
  var Credentials = class {
@@ -2726,6 +2727,7 @@ export {
2726
2727
  pathsAreOverridden,
2727
2728
  isMovedRun,
2728
2729
  configFilePath,
2730
+ keyringService,
2729
2731
  Credentials,
2730
2732
  realSleep,
2731
2733
  defineLogEvents,
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  resolvePaths
5
- } from "./chunk-JLRMSNPX.js";
5
+ } from "./chunk-Q2C3VMSU.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/store/path.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@0.537.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_e3a3074c051d1ca759b7e8b914e3af6d/node_modules/@wirecat/cli-core/dist/store/path.js
11
11
  import { join } from "node:path";
12
12
  var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
13
13
  var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");