@wirecat/mail-cli 0.31.0 → 0.32.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 (98) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-XL62TNUO.js → all-profiles-OTCWJSJS.js} +6 -6
  4. package/dist/bundle/{anthropic-3MSWVYCE.js → anthropic-GUXHDK32.js} +2 -2
  5. package/dist/bundle/{app-server-RRNR5XFA.js → app-server-GX7DOE4O.js} +43 -43
  6. package/dist/bundle/{bun-E3F3PEQQ.js → bun-V5QLYBZU.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-UOFN77LO.js → bun-sqlite-AXD5CCO3.js} +3 -3
  8. package/dist/bundle/{chunk-UFMR2TB3.js → chunk-2IYAZRTC.js} +2 -2
  9. package/dist/bundle/{chunk-GXBNTKJW.js → chunk-2UMEZY6D.js} +2 -2
  10. package/dist/bundle/{chunk-DPDS6IZJ.js → chunk-3URYKAJP.js} +1 -1
  11. package/dist/bundle/{chunk-FRXDSR45.js → chunk-4YNUQGDP.js} +1 -1
  12. package/dist/bundle/{chunk-H2QTUZ3C.js → chunk-6SJ7HHAE.js} +1 -1
  13. package/dist/bundle/{chunk-JLIVJSCF.js → chunk-6TRKNME5.js} +1 -1
  14. package/dist/bundle/{chunk-I5Y6Y7Q5.js → chunk-6XNTELM5.js} +1 -1
  15. package/dist/bundle/{chunk-D6D6JLXG.js → chunk-7GW4D3OW.js} +18 -17
  16. package/dist/bundle/{chunk-NEJU74O4.js → chunk-AJY2IT25.js} +6 -6
  17. package/dist/bundle/{chunk-7E7YXQ52.js → chunk-ANYADN3S.js} +17 -17
  18. package/dist/bundle/{chunk-ITU6K7LU.js → chunk-CAQ5GW3A.js} +1 -1
  19. package/dist/bundle/{chunk-DZSS2IUK.js → chunk-CD3TAITM.js} +2 -2
  20. package/dist/bundle/{chunk-BNP7WLDQ.js → chunk-FA3B2DHZ.js} +1 -1
  21. package/dist/bundle/{chunk-DWBY7DMF.js → chunk-GDDCKTBR.js} +1 -1
  22. package/dist/bundle/{chunk-QVGCHTTU.js → chunk-GPOTPA3S.js} +10 -10
  23. package/dist/bundle/{chunk-DCR3IWC7.js → chunk-GSXCMQWV.js} +31 -30
  24. package/dist/bundle/{chunk-THZHNCJP.js → chunk-HFA6AZWA.js} +3 -3
  25. package/dist/bundle/{chunk-NYQPKZWL.js → chunk-HUWQ7LXZ.js} +254 -264
  26. package/dist/bundle/{chunk-EMVLCION.js → chunk-IBCGCYRU.js} +1 -1
  27. package/dist/bundle/{chunk-HZCINHHS.js → chunk-IVD3JTN5.js} +1 -1
  28. package/dist/bundle/{chunk-3CJ4C6BB.js → chunk-JRGPPS6H.js} +12 -12
  29. package/dist/bundle/{chunk-LGDJDD5J.js → chunk-JUS4Y4BW.js} +3 -3
  30. package/dist/bundle/{chunk-EV5SR3OC.js → chunk-KLFF54AF.js} +7 -7
  31. package/dist/bundle/{chunk-JYGFEMTR.js → chunk-KLGZX6QT.js} +1 -1
  32. package/dist/bundle/{chunk-QANXOKYQ.js → chunk-LVFI3TCG.js} +5 -5
  33. package/dist/bundle/{chunk-PIXFZZUZ.js → chunk-LVJWN2PR.js} +6 -6
  34. package/dist/bundle/{chunk-NUN7DBR4.js → chunk-MENP3FF5.js} +11 -12
  35. package/dist/bundle/{chunk-P6CYVOL6.js → chunk-MHXZ62CU.js} +1 -1
  36. package/dist/bundle/{chunk-BXMLIKUM.js → chunk-MSK7RNOM.js} +149 -148
  37. package/dist/bundle/{chunk-I3BQ2QIY.js → chunk-MT2WDBG2.js} +12 -12
  38. package/dist/bundle/{chunk-KPFB2VUY.js → chunk-MVMNZ3Q3.js} +56 -56
  39. package/dist/bundle/{chunk-3V6J7VPF.js → chunk-NMN5JUYL.js} +3 -3
  40. package/dist/bundle/{chunk-5YRR52NH.js → chunk-O7OP5NQO.js} +1 -1
  41. package/dist/bundle/{chunk-WZGFC7D5.js → chunk-OUM4ZO53.js} +1 -1
  42. package/dist/bundle/{chunk-GZLCZU5B.js → chunk-PALY5PGE.js} +5 -5
  43. package/dist/bundle/{chunk-QSXJ2BVQ.js → chunk-PCMQYGEM.js} +4 -4
  44. package/dist/bundle/{chunk-MS5XYEYW.js → chunk-PCWAZVAD.js} +25 -4
  45. package/dist/bundle/{chunk-OP5ZLH53.js → chunk-QHXOXYAT.js} +52 -52
  46. package/dist/bundle/{chunk-BS6WYCNZ.js → chunk-RNBG75HW.js} +22 -22
  47. package/dist/bundle/{chunk-NV3WPD3B.js → chunk-SDAYOJLL.js} +5 -5
  48. package/dist/bundle/{chunk-DDCDOBZS.js → chunk-SEJBS7SI.js} +1 -1
  49. package/dist/bundle/{chunk-4BW5JACS.js → chunk-SWXKS7JK.js} +16 -16
  50. package/dist/bundle/{chunk-S2QO6KUI.js → chunk-SZZJOSIS.js} +2 -2
  51. package/dist/bundle/{chunk-PZL7DHVJ.js → chunk-T577U52I.js} +7 -7
  52. package/dist/bundle/{chunk-OXHQNEXU.js → chunk-TDTCCHAI.js} +3 -3
  53. package/dist/bundle/{chunk-GWKGZOSO.js → chunk-TWHIZJAZ.js} +2 -2
  54. package/dist/bundle/{chunk-T72DWT37.js → chunk-U346WBJ5.js} +4 -4
  55. package/dist/bundle/{chunk-4ME2NHNJ.js → chunk-U57QRUP7.js} +2 -2
  56. package/dist/bundle/{chunk-FYP2M6IT.js → chunk-U7RLFLTM.js} +23 -23
  57. package/dist/bundle/{chunk-BKRIIZPV.js → chunk-WNGMI6AZ.js} +2 -2
  58. package/dist/bundle/{chunk-SQA5JI7Q.js → chunk-WQOGHND4.js} +1 -1
  59. package/dist/bundle/{chunk-HZL3X4XR.js → chunk-XXXVVNGI.js} +18 -15
  60. package/dist/bundle/{chunk-TUXNILKR.js → chunk-Z6OKVD3R.js} +7 -7
  61. package/dist/bundle/{chunk-6UOUDIXL.js → chunk-ZAD7K4TI.js} +361 -361
  62. package/dist/bundle/{chunk-E3IOR37T.js → chunk-ZDP6A2VL.js} +2 -2
  63. package/dist/bundle/{command-contract-YRNKDQDL.js → command-contract-DZ6XRIOI.js} +15 -15
  64. package/dist/bundle/{command-server-entry-A3FCP24M.js → command-server-entry-BVXOPKXH.js} +21 -21
  65. package/dist/bundle/{decode-FI2ISRNZ.js → decode-STN3EHT7.js} +2 -2
  66. package/dist/bundle/{dist-NLOOZJ64.js → dist-B2JWWTNN.js} +11 -11
  67. package/dist/bundle/{echarts-PMAJUJFE.js → echarts-QIXLXS3G.js} +2 -2
  68. package/dist/bundle/{embed-OIMT6SAX.js → embed-4NC4ELYP.js} +3 -3
  69. package/dist/bundle/{embedder-Q5IF5WIM.js → embedder-HBRDIFQC.js} +6 -6
  70. package/dist/bundle/{first-run-4L53QWOT.js → first-run-6QF67AAZ.js} +6 -6
  71. package/dist/bundle/first-screen-LXSZMK2P.js +34 -0
  72. package/dist/bundle/{instructions-ZJGGGXOA.js → instructions-MD2RZT5Z.js} +1 -1
  73. package/dist/bundle/mail.js +2 -2
  74. package/dist/bundle/{node-DCSOHRD6.js → node-IEVT2FSJ.js} +2 -2
  75. package/dist/bundle/{node-sqlite-7F77K5JA.js → node-sqlite-EOTTDMOG.js} +4 -4
  76. package/dist/bundle/{oauth-LVPMEN6M.js → oauth-A5BEFGCI.js} +4 -4
  77. package/dist/bundle/{open-XM5LWEN6.js → open-HWN2EZYG.js} +2 -2
  78. package/dist/bundle/{openai-H2LCGK22.js → openai-PJKJ4CIU.js} +12 -12
  79. package/dist/bundle/{process-MFC5VSPT.js → process-6Q23D3TO.js} +1 -1
  80. package/dist/bundle/{program-ZQ43ZYKZ.js → program-WR43NPAV.js} +403 -381
  81. package/dist/bundle/{prompt-3LZAZNQ4.js → prompt-E7Q2662O.js} +2 -2
  82. package/dist/bundle/{recognize-GYQMHFY2.js → recognize-4F4PIL4B.js} +1 -1
  83. package/dist/bundle/{remote-P2MD5G64.js → remote-RGJXO7XK.js} +6 -6
  84. package/dist/bundle/{rerank-A5X6THV6.js → rerank-EDY7PHMG.js} +4 -4
  85. package/dist/bundle/{serve-IEC3EUKS.js → serve-Q4XF6ID2.js} +6 -6
  86. package/dist/bundle/server-2Y5NSP2U.js +67 -0
  87. package/dist/bundle/{server-3REPXFNI.js → server-5I72DSDF.js} +35 -35
  88. package/dist/bundle/{sqlite-runtime-AOLQGC5J.js → sqlite-runtime-PU3Z2H7C.js} +3 -3
  89. package/dist/bundle/{state-D3P5IXXA.js → state-CWSXJBU2.js} +3 -3
  90. package/dist/bundle/{store-MZCQXBVW.js → store-KQPKS3PX.js} +15 -15
  91. package/dist/bundle/{store-DIN6OY3K.js → store-ZAMKKM2A.js} +13 -13
  92. package/dist/bundle/store-maintenance-command-PMTTDR6J.js +58 -0
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +2 -2
  96. package/dist/bundle/first-screen-ZPQLAAIS.js +0 -34
  97. package/dist/bundle/server-E2QTFURI.js +0 -67
  98. package/dist/bundle/store-maintenance-command-UMVFI6M6.js +0 -58
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.32.0 — 14.11.2026
6
+
7
+ ### Changed — may break callers
8
+
9
+ - **A `readonly` level no longer stops `mail sync`** (cli-core 0.662.0, was 0.661.0). A command that only fetches
10
+ mail into the local store runs at `readonly`; `deny` still refuses it. Commands
11
+ that write the owner's files or call another service stay blocked by `readonly`. A profile that used `readonly`
12
+ to stop syncing sets the key to `deny`.
13
+
5
14
  ## 0.31.0 — 14.11.2026
6
15
 
7
16
  ### Fixed
package/dist/bin/mail.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.31.0\n")
12
+ process.stdout.write("0.32.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-XL62TNUO.js","../bundle/anthropic-3MSWVYCE.js","../bundle/app-server-RRNR5XFA.js","../bundle/bun-E3F3PEQQ.js","../bundle/bun-sqlite-UOFN77LO.js","../bundle/decode-FI2ISRNZ.js","../bundle/dispatch-DSVN7MNG.js","../bundle/dist-HFUVURJG.js","../bundle/dist-NLOOZJ64.js","../bundle/echarts-PMAJUJFE.js","../bundle/embed-OIMT6SAX.js","../bundle/embedder-Q5IF5WIM.js","../bundle/failure-COTPFUP4.js","../bundle/first-screen-ZPQLAAIS.js","../bundle/instructions-ZJGGGXOA.js","../bundle/mcp-TDKGDB4V.js","../bundle/node-DCSOHRD6.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-7F77K5JA.js","../bundle/oauth-LVPMEN6M.js","../bundle/open-XM5LWEN6.js","../bundle/openai-H2LCGK22.js","../bundle/process-MFC5VSPT.js","../bundle/program-ZQ43ZYKZ.js","../bundle/prompt-3LZAZNQ4.js","../bundle/recognize-GYQMHFY2.js","../bundle/remote-P2MD5G64.js","../bundle/rerank-A5X6THV6.js","../bundle/serve-IEC3EUKS.js","../bundle/server-3REPXFNI.js","../bundle/server-E2QTFURI.js","../bundle/sqlite-runtime-AOLQGC5J.js","../bundle/state-D3P5IXXA.js","../bundle/store-DIN6OY3K.js","../bundle/store-MZCQXBVW.js","../bundle/store-maintenance-command-UMVFI6M6.js"]
31
+ const chunks = ["../bundle/all-profiles-OTCWJSJS.js","../bundle/anthropic-GUXHDK32.js","../bundle/app-server-GX7DOE4O.js","../bundle/bun-V5QLYBZU.js","../bundle/bun-sqlite-AXD5CCO3.js","../bundle/decode-STN3EHT7.js","../bundle/dispatch-DSVN7MNG.js","../bundle/dist-B2JWWTNN.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-QIXLXS3G.js","../bundle/embed-4NC4ELYP.js","../bundle/embedder-HBRDIFQC.js","../bundle/failure-COTPFUP4.js","../bundle/first-screen-LXSZMK2P.js","../bundle/instructions-MD2RZT5Z.js","../bundle/mcp-TDKGDB4V.js","../bundle/node-IEVT2FSJ.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-EOTTDMOG.js","../bundle/oauth-A5BEFGCI.js","../bundle/open-HWN2EZYG.js","../bundle/openai-PJKJ4CIU.js","../bundle/process-6Q23D3TO.js","../bundle/program-WR43NPAV.js","../bundle/prompt-E7Q2662O.js","../bundle/recognize-4F4PIL4B.js","../bundle/remote-RGJXO7XK.js","../bundle/rerank-EDY7PHMG.js","../bundle/serve-Q4XF6ID2.js","../bundle/server-2Y5NSP2U.js","../bundle/server-5I72DSDF.js","../bundle/sqlite-runtime-PU3Z2H7C.js","../bundle/state-CWSXJBU2.js","../bundle/store-KQPKS3PX.js","../bundle/store-ZAMKKM2A.js","../bundle/store-maintenance-command-PMTTDR6J.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -7,13 +7,13 @@ import {
7
7
  answeredWire,
8
8
  callerOf,
9
9
  serveStdio
10
- } from "./chunk-OXHQNEXU.js";
10
+ } from "./chunk-TDTCCHAI.js";
11
11
  import {
12
12
  McpServer
13
13
  } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-TUXNILKR.js";
15
- import "./chunk-5YRR52NH.js";
16
- import "./chunk-H2QTUZ3C.js";
14
+ import "./chunk-Z6OKVD3R.js";
15
+ import "./chunk-O7OP5NQO.js";
16
+ import "./chunk-6SJ7HHAE.js";
17
17
  import "./chunk-XWBPP2HX.js";
18
18
  import "./chunk-7MEVD5PI.js";
19
19
  import {
@@ -28,7 +28,7 @@ import {
28
28
  __name
29
29
  } from "./chunk-ZVVMGPBJ.js";
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
32
32
  import { spawn } from "node:child_process";
33
33
  import { randomUUID } from "node:crypto";
34
34
  var PROTOCOL = "2025-06-18";
@@ -249,7 +249,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
249
249
  }, "serveAllProfilesOverStdio");
250
250
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
251
251
  const { build, close } = allProfilesServer(options);
252
- const { serveOverHttp } = await import("./serve-IEC3EUKS.js");
252
+ const { serveOverHttp } = await import("./serve-Q4XF6ID2.js");
253
253
  const listening = await serveOverHttp(build, {
254
254
  ...http,
255
255
  appName: options.command,
@@ -8,7 +8,7 @@ import {
8
8
  checkedOptions,
9
9
  messagesFor,
10
10
  systemFor
11
- } from "./chunk-E3IOR37T.js";
11
+ } from "./chunk-ZDP6A2VL.js";
12
12
  import "./chunk-7MEVD5PI.js";
13
13
  import {
14
14
  array,
@@ -26,7 +26,7 @@ import {
26
26
  __name
27
27
  } from "./chunk-ZVVMGPBJ.js";
28
28
 
29
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/models/anthropic.js
29
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/models/anthropic.js
30
30
  var options = strictObject({
31
31
  stop_sequences: optional(array(string())),
32
32
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
@@ -3,45 +3,45 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-DCR3IWC7.js";
6
+ } from "./chunk-GSXCMQWV.js";
7
7
  import {
8
8
  mcpUrlOf
9
- } from "./chunk-BS6WYCNZ.js";
10
- import "./chunk-P6CYVOL6.js";
9
+ } from "./chunk-RNBG75HW.js";
10
+ import "./chunk-MHXZ62CU.js";
11
11
  import {
12
12
  answered,
13
13
  failed,
14
14
  registerCommands,
15
15
  runCommandForAgent,
16
16
  toolsFromCommands
17
- } from "./chunk-D6D6JLXG.js";
17
+ } from "./chunk-7GW4D3OW.js";
18
18
  import {
19
19
  agentJson,
20
20
  skillResource
21
- } from "./chunk-NUN7DBR4.js";
22
- import "./chunk-DZSS2IUK.js";
21
+ } from "./chunk-MENP3FF5.js";
22
+ import "./chunk-CD3TAITM.js";
23
23
  import {
24
24
  appInstructions
25
- } from "./chunk-ITU6K7LU.js";
25
+ } from "./chunk-CAQ5GW3A.js";
26
26
  import {
27
27
  StdioServerTransport,
28
28
  answeredWire,
29
29
  serveStdio
30
- } from "./chunk-OXHQNEXU.js";
30
+ } from "./chunk-TDTCCHAI.js";
31
31
  import {
32
32
  McpServer
33
33
  } from "./chunk-5D4AEUVA.js";
34
34
  import {
35
35
  mcpHttpMarker
36
- } from "./chunk-T72DWT37.js";
37
- import "./chunk-HZL3X4XR.js";
38
- import "./chunk-NYQPKZWL.js";
39
- import "./chunk-3CJ4C6BB.js";
40
- import "./chunk-PIXFZZUZ.js";
41
- import "./chunk-E3IOR37T.js";
42
- import "./chunk-GXBNTKJW.js";
43
- import "./chunk-HZCINHHS.js";
44
- import "./chunk-3V6J7VPF.js";
36
+ } from "./chunk-U346WBJ5.js";
37
+ import "./chunk-XXXVVNGI.js";
38
+ import "./chunk-HUWQ7LXZ.js";
39
+ import "./chunk-JRGPPS6H.js";
40
+ import "./chunk-LVJWN2PR.js";
41
+ import "./chunk-ZDP6A2VL.js";
42
+ import "./chunk-2UMEZY6D.js";
43
+ import "./chunk-IVD3JTN5.js";
44
+ import "./chunk-NMN5JUYL.js";
45
45
  import {
46
46
  DEFAULT_OUTPUT_BYTES,
47
47
  changesAuthorityAt,
@@ -52,34 +52,34 @@ import {
52
52
  readOnlyLockOf,
53
53
  readsOverMcpAt,
54
54
  rootOf2 as rootOf
55
- } from "./chunk-BXMLIKUM.js";
56
- import "./chunk-MS5XYEYW.js";
57
- import "./chunk-TUXNILKR.js";
58
- import "./chunk-SQA5JI7Q.js";
55
+ } from "./chunk-MSK7RNOM.js";
56
+ import "./chunk-PCWAZVAD.js";
57
+ import "./chunk-Z6OKVD3R.js";
58
+ import "./chunk-WQOGHND4.js";
59
59
  import "./chunk-7C6FGWDH.js";
60
60
  import "./chunk-FIVFP53N.js";
61
- import "./chunk-4ME2NHNJ.js";
62
- import "./chunk-4BW5JACS.js";
63
- import "./chunk-BKRIIZPV.js";
64
- import "./chunk-6UOUDIXL.js";
65
- import "./chunk-7E7YXQ52.js";
66
- import "./chunk-FYP2M6IT.js";
67
- import "./chunk-KPFB2VUY.js";
68
- import "./chunk-5YRR52NH.js";
69
- import "./chunk-H2QTUZ3C.js";
70
- import "./chunk-EV5SR3OC.js";
71
- import "./chunk-FRXDSR45.js";
72
- import "./chunk-PZL7DHVJ.js";
73
- import "./chunk-DWBY7DMF.js";
74
- import "./chunk-GZLCZU5B.js";
75
- import "./chunk-QANXOKYQ.js";
76
- import "./chunk-LGDJDD5J.js";
61
+ import "./chunk-U57QRUP7.js";
62
+ import "./chunk-SWXKS7JK.js";
63
+ import "./chunk-WNGMI6AZ.js";
64
+ import "./chunk-ZAD7K4TI.js";
65
+ import "./chunk-ANYADN3S.js";
66
+ import "./chunk-U7RLFLTM.js";
67
+ import "./chunk-MVMNZ3Q3.js";
68
+ import "./chunk-O7OP5NQO.js";
69
+ import "./chunk-6SJ7HHAE.js";
70
+ import "./chunk-KLFF54AF.js";
71
+ import "./chunk-4YNUQGDP.js";
72
+ import "./chunk-T577U52I.js";
73
+ import "./chunk-GDDCKTBR.js";
74
+ import "./chunk-PALY5PGE.js";
75
+ import "./chunk-LVFI3TCG.js";
76
+ import "./chunk-JUS4Y4BW.js";
77
77
  import "./chunk-M4OP5ASJ.js";
78
78
  import "./chunk-XWBPP2HX.js";
79
79
  import "./chunk-D72URWJE.js";
80
- import "./chunk-BNP7WLDQ.js";
81
- import "./chunk-NV3WPD3B.js";
82
- import "./chunk-WZGFC7D5.js";
80
+ import "./chunk-FA3B2DHZ.js";
81
+ import "./chunk-SDAYOJLL.js";
82
+ import "./chunk-OUM4ZO53.js";
83
83
  import "./chunk-7MEVD5PI.js";
84
84
  import {
85
85
  mcpErrorResult
@@ -88,12 +88,12 @@ import "./chunk-Y5E2WNWB.js";
88
88
  import {
89
89
  CliError
90
90
  } from "./chunk-7KCBPAQS.js";
91
- import "./chunk-DPDS6IZJ.js";
91
+ import "./chunk-3URYKAJP.js";
92
92
  import {
93
93
  __name
94
94
  } from "./chunk-ZVVMGPBJ.js";
95
95
 
96
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
96
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
97
97
  var EXCLUDED = [["mcp"]];
98
98
  var aliasesOf = /* @__PURE__ */ __name((root, path) => {
99
99
  let at = root;
@@ -210,7 +210,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
210
210
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
211
211
  const { app } = options;
212
212
  const { build } = createAppServer(command, context, options);
213
- const { serveOverHttp } = await import("./serve-IEC3EUKS.js");
213
+ const { serveOverHttp } = await import("./serve-Q4XF6ID2.js");
214
214
  const listening = await serveOverHttp(build, {
215
215
  ...http,
216
216
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-DPDS6IZJ.js";
21
+ } from "./chunk-3URYKAJP.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-EMVLCION.js";
6
+ } from "./chunk-IBCGCYRU.js";
7
7
  import {
8
8
  refuseOwnerStoreInTests
9
- } from "./chunk-BNP7WLDQ.js";
9
+ } from "./chunk-FA3B2DHZ.js";
10
10
  import "./chunk-7MEVD5PI.js";
11
11
  import "./chunk-ECZSYLSL.js";
12
12
  import {
@@ -17,7 +17,7 @@ import {
17
17
  __name
18
18
  } from "./chunk-ZVVMGPBJ.js";
19
19
 
20
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
20
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
21
21
  var customised = false;
22
22
  var ownLibrary = /* @__PURE__ */ __name(async () => {
23
23
  try {
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-T72DWT37.js";
11
+ } from "./chunk-U346WBJ5.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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";
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  alive
5
- } from "./chunk-SQA5JI7Q.js";
5
+ } from "./chunk-WQOGHND4.js";
6
6
  import {
7
7
  resolvePaths,
8
8
  writeSecurely
@@ -11,7 +11,7 @@ import {
11
11
  __name
12
12
  } from "./chunk-ZVVMGPBJ.js";
13
13
 
14
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/background/lock.js
14
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/background/lock.js
15
15
  import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join } from "node:path";
17
17
  var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/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) {
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/normalize.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/store/normalize.js
8
8
  var NORMALIZER_VERSION = 1;
9
9
  var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
10
10
  var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/secrets.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/runs/secrets.js
8
8
  var SECRET_WORDS = /* @__PURE__ */ new Set([
9
9
  "authorization",
10
10
  "cookie",
@@ -58,7 +58,7 @@ var ENTRIES = [
58
58
  var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
59
59
 
60
60
  // dist/version.js
61
- var VERSION = "0.31.0";
61
+ var VERSION = "0.32.0";
62
62
 
63
63
  // dist/identity.js
64
64
  var PACKAGE = "@wirecat/mail-cli";
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
6
 
7
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/http/listen.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/http/listen.js
8
8
  import { createServer } from "node:http";
9
9
  import { Readable } from "node:stream";
10
10
  var MAX_BODY = 4 * 1024 * 1024;
@@ -6,13 +6,13 @@ import {
6
6
  agentArguments,
7
7
  agentJson,
8
8
  commandAvailability
9
- } from "./chunk-NUN7DBR4.js";
9
+ } from "./chunk-MENP3FF5.js";
10
10
  import {
11
11
  failureContext
12
- } from "./chunk-DZSS2IUK.js";
12
+ } from "./chunk-CD3TAITM.js";
13
13
  import {
14
14
  callerOf
15
- } from "./chunk-OXHQNEXU.js";
15
+ } from "./chunk-TDTCCHAI.js";
16
16
  import {
17
17
  QUERY_ARGUMENT,
18
18
  lentConnection,
@@ -20,10 +20,10 @@ import {
20
20
  refuseLacking,
21
21
  servicesFor,
22
22
  storeModeDeps
23
- } from "./chunk-NYQPKZWL.js";
23
+ } from "./chunk-HUWQ7LXZ.js";
24
24
  import {
25
25
  MAX_BUFFERED_INPUT
26
- } from "./chunk-HZCINHHS.js";
26
+ } from "./chunk-IVD3JTN5.js";
27
27
  import {
28
28
  DEFAULT_OUTPUT_BYTES,
29
29
  ENTITIES,
@@ -38,32 +38,33 @@ import {
38
38
  refuseStoreChange,
39
39
  sealed,
40
40
  startRecording
41
- } from "./chunk-BXMLIKUM.js";
41
+ } from "./chunk-MSK7RNOM.js";
42
42
  import {
43
43
  authorityAllowed,
44
44
  botApiAllowed,
45
+ fetchesAt,
45
46
  keyForCommand,
46
47
  levelFor,
47
48
  readKeysForCommand
48
- } from "./chunk-MS5XYEYW.js";
49
+ } from "./chunk-PCWAZVAD.js";
49
50
  import {
50
51
  currentCaller,
51
52
  keepsSuccess,
52
53
  runContextOf,
53
54
  withCaller
54
- } from "./chunk-TUXNILKR.js";
55
+ } from "./chunk-Z6OKVD3R.js";
55
56
  import {
56
57
  enclosingTraceId,
57
58
  inRun,
58
59
  newRunId,
59
60
  traceOf
60
- } from "./chunk-FYP2M6IT.js";
61
+ } from "./chunk-U7RLFLTM.js";
61
62
  import {
62
63
  queryDescription
63
- } from "./chunk-KPFB2VUY.js";
64
+ } from "./chunk-MVMNZ3Q3.js";
64
65
  import {
65
66
  storeDamaged
66
- } from "./chunk-5YRR52NH.js";
67
+ } from "./chunk-O7OP5NQO.js";
67
68
  import {
68
69
  captureStreams,
69
70
  traceIdOf
@@ -115,7 +116,7 @@ import {
115
116
  __name
116
117
  } from "./chunk-ZVVMGPBJ.js";
117
118
 
118
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
119
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/agent.js
119
120
  import { Readable } from "node:stream";
120
121
 
121
122
  // node_modules/.pnpm/@wirecat+cli-base@0.99.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
@@ -3287,7 +3288,7 @@ var VOCABULARY = defineVocabulary({
3287
3288
  ]
3288
3289
  });
3289
3290
 
3290
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3291
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/agent.js
3291
3292
  var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
3292
3293
  var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
3293
3294
  var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
@@ -3514,7 +3515,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
3514
3515
  }
3515
3516
  }, "runCommandForAgent");
3516
3517
 
3517
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3518
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/tool.js
3518
3519
  var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
3519
3520
  var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
3520
3521
  var message = pipe(
@@ -3568,8 +3569,8 @@ var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== vo
3568
3569
  var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
3569
3570
  var syncAllowedFor = /* @__PURE__ */ __name((key2, defaults) => {
3570
3571
  const permissions = defaults.settings.permissions ?? {};
3571
- const shared = defaults.syncAllowed ?? levelFor(permissions, "messages.sync-first").level === "allow";
3572
- return shared && (!key2.startsWith("stats_") || levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level === "allow");
3572
+ const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
3573
+ return shared && (!key2.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key2.replaceAll("_", ".")}.sync-first`).level));
3573
3574
  }, "syncAllowedFor");
3574
3575
  var entryRunner = /* @__PURE__ */ __name((registration) => {
3575
3576
  const run = callRunner(registration);
@@ -3773,7 +3774,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
3773
3774
  return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
3774
3775
  }, "failed");
3775
3776
 
3776
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3777
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/mcp/surface.js
3777
3778
  import { randomUUID } from "node:crypto";
3778
3779
  var MATCHES = 8;
3779
3780
  var ANSWER = answerSchema();
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  stdinFieldOf
5
- } from "./chunk-P6CYVOL6.js";
5
+ } from "./chunk-MHXZ62CU.js";
6
6
  import {
7
7
  commandPathOf
8
- } from "./chunk-3V6J7VPF.js";
8
+ } from "./chunk-NMN5JUYL.js";
9
9
  import {
10
10
  commandServerRequest,
11
11
  metaOf
12
- } from "./chunk-BXMLIKUM.js";
12
+ } from "./chunk-MSK7RNOM.js";
13
13
  import {
14
14
  errorObjectOf,
15
15
  renderError
@@ -21,14 +21,14 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/command-server.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-server.js
25
25
  import { createInterface } from "node:readline";
26
26
 
27
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
27
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
28
28
  var COMMAND_SERVER_ARGV = ["commands", "--serve"];
29
29
  var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
30
30
 
31
- // node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/command-server.js
31
+ // node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/cli/command-server.js
32
32
  var COMMAND_SERVER_PROTOCOL = 1;
33
33
  var COMMAND_SERVER_IDLE_MS = 10 * 6e4;
34
34
  var COMMAND_SERVER_CONCURRENT = 8;