@wirecat/mail-cli 0.23.1 → 0.25.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 (117) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-FJHJCGRU.js → all-profiles-QEV2PSOR.js} +11 -11
  4. package/dist/bundle/{anthropic-AFL7NKVZ.js → anthropic-5NKQXIHM.js} +28 -12
  5. package/dist/bundle/{app-server-WKCBJMHI.js → app-server-G2CJNT4R.js} +62 -50
  6. package/dist/bundle/{bun-HQATAQJQ.js → bun-6HBYWQIX.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-4ECAV7OU.js → bun-sqlite-DXIQ7BVR.js} +9 -5
  8. package/dist/bundle/{chunk-MUDHCYN4.js → chunk-37F6QYTO.js} +6 -6
  9. package/dist/bundle/{chunk-NMGF3UOZ.js → chunk-3XVR2ROR.js} +50 -46
  10. package/dist/bundle/{chunk-QUKD5SO2.js → chunk-434YOD6A.js} +4 -4
  11. package/dist/bundle/{chunk-7SWWVDEZ.js → chunk-4W4EVVL4.js} +61 -21
  12. package/dist/bundle/{chunk-CCYHBNRL.js → chunk-5QYK3LWS.js} +326 -56
  13. package/dist/bundle/{chunk-7YRKUEYE.js → chunk-5ZYFV6FD.js} +694 -228
  14. package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
  15. package/dist/bundle/{chunk-NOA6E6MM.js → chunk-A6BPOX5O.js} +38841 -24161
  16. package/dist/bundle/{chunk-34743C4C.js → chunk-ADKMBXY4.js} +1 -1
  17. package/dist/bundle/{chunk-2HXHAFRP.js → chunk-B7SWTH5O.js} +2 -2
  18. package/dist/bundle/{chunk-NKBAZ4VC.js → chunk-BC7PFQL7.js} +2 -2
  19. package/dist/bundle/{chunk-ROKTS7WM.js → chunk-CBYBZCQP.js} +1 -1
  20. package/dist/bundle/chunk-CIWWNBVW.js +188 -0
  21. package/dist/bundle/{chunk-SBGXKM4U.js → chunk-DIA56CS7.js} +8 -7
  22. package/dist/bundle/{chunk-VYHIX3OP.js → chunk-EXVY76VO.js} +61 -607
  23. package/dist/bundle/{chunk-BVJQBAGL.js → chunk-FZZD4AFY.js} +14 -14
  24. package/dist/bundle/{chunk-VFKX5UMJ.js → chunk-G5LHHAW2.js} +6 -6
  25. package/dist/bundle/{chunk-QV3M2MHG.js → chunk-GJRYZXBN.js} +13 -136
  26. package/dist/bundle/{chunk-GJNFNC76.js → chunk-GY4XCLCO.js} +10 -15
  27. package/dist/bundle/{chunk-V7CFZ773.js → chunk-HEIDAHRC.js} +2 -2
  28. package/dist/bundle/{chunk-AGNAT7CM.js → chunk-HEYVMAAQ.js} +2 -2
  29. package/dist/bundle/{chunk-HOKGIYUO.js → chunk-HJSJBNCJ.js} +119 -9
  30. package/dist/bundle/{chunk-KKGX7JMX.js → chunk-HLXVUMZJ.js} +2 -2
  31. package/dist/bundle/{chunk-OU5CWCG2.js → chunk-IACWKZWS.js} +1 -1
  32. package/dist/bundle/{chunk-QR7JZM3D.js → chunk-IXO4SCKE.js} +1 -1
  33. package/dist/bundle/{chunk-GOMJNH56.js → chunk-IZOYW4Z4.js} +32 -8
  34. package/dist/bundle/{chunk-WN4HP7IZ.js → chunk-J4OYK4WL.js} +14 -14
  35. package/dist/bundle/{chunk-76RTQYJQ.js → chunk-JG4MNYG2.js} +1 -1
  36. package/dist/bundle/{chunk-VAMCRP47.js → chunk-K2OGF7KC.js} +2 -2
  37. package/dist/bundle/chunk-K6HR6HCO.js +32 -0
  38. package/dist/bundle/{chunk-B6QMMRIM.js → chunk-KFB2X6KE.js} +1530 -1525
  39. package/dist/bundle/{chunk-3UFD76IR.js → chunk-KK4HD3SI.js} +6 -6
  40. package/dist/bundle/{chunk-3QVGB2CI.js → chunk-L4QVOEOB.js} +4 -4
  41. package/dist/bundle/chunk-LGZPKKBN.js +53 -0
  42. package/dist/bundle/chunk-LVGX7VTD.js +138 -0
  43. package/dist/bundle/chunk-MBFPFWCO.js +1243 -0
  44. package/dist/bundle/{chunk-3DQYO7FB.js → chunk-MCPOZNWG.js} +1 -1
  45. package/dist/bundle/{chunk-SR3ADLGX.js → chunk-MWGH3M46.js} +3 -3
  46. package/dist/bundle/{chunk-OJCUSHZG.js → chunk-ND5H5ADM.js} +4 -4
  47. package/dist/bundle/chunk-NMZQTYKJ.js +18 -0
  48. package/dist/bundle/{chunk-4YJJQNNJ.js → chunk-OLKCJBZY.js} +5 -5
  49. package/dist/bundle/{chunk-E7ZVKQHG.js → chunk-OLLIWNFG.js} +3 -3
  50. package/dist/bundle/{chunk-R5MYOLQP.js → chunk-P6GXNT7Z.js} +13 -13
  51. package/dist/bundle/{chunk-M7RGG3UU.js → chunk-PGC5TRH6.js} +3 -3
  52. package/dist/bundle/{chunk-3OZKDC6Y.js → chunk-PHHH2NQP.js} +15 -9
  53. package/dist/bundle/{chunk-S5OTP7XS.js → chunk-PP3YOAWG.js} +3 -3
  54. package/dist/bundle/{chunk-4IFX4HV2.js → chunk-PQMJ5BXH.js} +4 -4
  55. package/dist/bundle/{chunk-ZXIPJF3Y.js → chunk-QB3DP2TN.js} +2 -2
  56. package/dist/bundle/{chunk-4IWJARFA.js → chunk-QQUY4MZY.js} +1 -1
  57. package/dist/bundle/{chunk-UHC5I3JV.js → chunk-RX5CJ55S.js} +1 -1
  58. package/dist/bundle/{chunk-CYQVWITQ.js → chunk-S2QRAKQI.js} +99 -42
  59. package/dist/bundle/{chunk-V3TDQUXD.js → chunk-SMTBV62X.js} +44 -60
  60. package/dist/bundle/{chunk-SNTLN2QT.js → chunk-T27IMG6X.js} +3 -1
  61. package/dist/bundle/{chunk-LLYVBO3R.js → chunk-TY644DKQ.js} +19 -19
  62. package/dist/bundle/{chunk-R554W7ZO.js → chunk-U6IQ6YQ2.js} +2 -2
  63. package/dist/bundle/{chunk-MBKNL5TX.js → chunk-VFU7PVPQ.js} +373 -133
  64. package/dist/bundle/{chunk-UMXVQIGD.js → chunk-VL6H2BND.js} +377 -12
  65. package/dist/bundle/{chunk-DALBYUPC.js → chunk-VUBZFMGP.js} +2 -2
  66. package/dist/bundle/{chunk-VYIIX6VN.js → chunk-WOAYHCM2.js} +1 -1
  67. package/dist/bundle/{chunk-LQDMUMA2.js → chunk-WX6OYVCH.js} +5370 -3700
  68. package/dist/bundle/chunk-XMDEM6BZ.js +2094 -0
  69. package/dist/bundle/{chunk-CUOCDJFI.js → chunk-XQYKIZMG.js} +13 -9
  70. package/dist/bundle/{chunk-PMIKRELC.js → chunk-YNS2YVUR.js} +69 -6
  71. package/dist/bundle/{chunk-CBWA2T3N.js → chunk-Z5T6OW3V.js} +14 -5
  72. package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
  73. package/dist/bundle/command-server-entry-XMSSY5ID.js +165 -0
  74. package/dist/bundle/{decode-QXKTMOTH.js → decode-RYGB4PGT.js} +5 -5
  75. package/dist/bundle/{dispatch-G4CYFWQ2.js → dispatch-PLQOIZG5.js} +10 -10
  76. package/dist/bundle/{dist-5FX36DAW.js → dist-GY2AQETI.js} +79 -46
  77. package/dist/bundle/{echarts-HHUM43TU.js → echarts-7CM2MCMW.js} +2 -2
  78. package/dist/bundle/{embed-SRZSDZVI.js → embed-FTBDPOPT.js} +6 -6
  79. package/dist/bundle/{embedder-WZIZCWLX.js → embedder-B43WGNBD.js} +9 -9
  80. package/dist/bundle/{failure-FFPK2WYB.js → failure-XP5QYV2T.js} +2 -2
  81. package/dist/bundle/{first-run-6DVWZ3JQ.js → first-run-XIIUARNM.js} +12 -11
  82. package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
  83. package/dist/bundle/{instructions-UWONE6UT.js → instructions-R7OHVAWH.js} +1 -1
  84. package/dist/bundle/mail.js +37 -13
  85. package/dist/bundle/{mcp-CFVG2OUS.js → mcp-7KQUJNFN.js} +2 -2
  86. package/dist/bundle/{node-HLAOYJDB.js → node-3N2JGZ7V.js} +2 -2
  87. package/dist/bundle/{node-sqlite-RO66I7W6.js → node-sqlite-WFJXW3CZ.js} +10 -6
  88. package/dist/bundle/{oauth-VNLB2TET.js → oauth-SVJLQTWV.js} +7 -7
  89. package/dist/bundle/{open-QQSG343L.js → open-ZDONVKSX.js} +5 -5
  90. package/dist/bundle/{openai-JTFC7OGF.js → openai-XVEW6XOU.js} +21 -38
  91. package/dist/bundle/{process-3CZAXR6P.js → process-YAHHUFR5.js} +1 -1
  92. package/dist/bundle/{program-XTOS4RAM.js → program-HU2UVMJE.js} +7071 -5421
  93. package/dist/bundle/{prompt-HGQ6GPYL.js → prompt-JAJ2CUJI.js} +5 -5
  94. package/dist/bundle/{recognize-2SHMNEIZ.js → recognize-UFBWUNFR.js} +4 -4
  95. package/dist/bundle/{remote-GBQC3433.js → remote-2GFOVLCR.js} +9 -7
  96. package/dist/bundle/{rerank-FQHQXFNR.js → rerank-BGPSMXTL.js} +7 -7
  97. package/dist/bundle/{serve-THU67QUZ.js → serve-CB3XJTH3.js} +9 -9
  98. package/dist/bundle/server-34GEF22R.js +68 -0
  99. package/dist/bundle/{server-LOT3CLYX.js → server-M7FQY7TX.js} +42 -40
  100. package/dist/bundle/{sqlite-runtime-NOOUMBC4.js → sqlite-runtime-AEV6PGDR.js} +6 -6
  101. package/dist/bundle/{state-KSKZCV2U.js → state-YLBEQLBI.js} +6 -6
  102. package/dist/bundle/{store-BAKSHTKF.js → store-CDUL3HKK.js} +19 -16
  103. package/dist/bundle/{store-OHNZOQ7U.js → store-EKWKY6GG.js} +49 -20
  104. package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
  105. package/dist/config.d.ts +4 -0
  106. package/dist/config.d.ts.map +1 -1
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +3 -3
  110. package/dist/bundle/chunk-5UKBUI4I.js +0 -35
  111. package/dist/bundle/chunk-EXPR6QAX.js +0 -394
  112. package/dist/bundle/chunk-FWFNUJQD.js +0 -12172
  113. package/dist/bundle/command-contract-IIHBNF7J.js +0 -35
  114. package/dist/bundle/first-screen-SRZ7NYHZ.js +0 -33
  115. package/dist/bundle/server-VKMUX7ZT.js +0 -65
  116. package/dist/bundle/store-maintenance-command-ROQHJVEA.js +0 -54
  117. /package/dist/bundle/{chunk-QZLK2ISN.js → chunk-YVNHQFLC.js} +0 -0
@@ -1,5 +1,21 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ CHART_KINDS,
5
+ CHART_SIZE,
6
+ chartAnswer,
7
+ chartPng,
8
+ chartRenderer,
9
+ chatChart,
10
+ keepRefreshedRefs,
11
+ mcpUrlOf,
12
+ refuseWriteBeforeConnecting,
13
+ registerPrompts,
14
+ syncsFirst
15
+ } from "./chunk-SMTBV62X.js";
16
+ import {
17
+ stdinFieldOf
18
+ } from "./chunk-NMZQTYKJ.js";
3
19
  import {
4
20
  BinaryResource,
5
21
  Picture,
@@ -20,60 +36,46 @@ import {
20
36
  tool,
21
37
  toolKey,
22
38
  toolsFromCommands
23
- } from "./chunk-CCYHBNRL.js";
24
- import {
25
- CHART_KINDS,
26
- CHART_SIZE,
27
- chartAnswer,
28
- chartPng,
29
- chartRenderer,
30
- chatChart,
31
- keepRefreshedRefs,
32
- mcpUrlOf,
33
- refuseWriteBeforeConnecting,
34
- registerPrompts,
35
- stdinFieldOf,
36
- syncsFirst
37
- } from "./chunk-V3TDQUXD.js";
39
+ } from "./chunk-5QYK3LWS.js";
38
40
  import {
39
41
  agentJson,
40
42
  skillResource
41
- } from "./chunk-BVJQBAGL.js";
43
+ } from "./chunk-FZZD4AFY.js";
42
44
  import {
43
45
  instructions
44
- } from "./chunk-VYIIX6VN.js";
46
+ } from "./chunk-WOAYHCM2.js";
45
47
  import {
46
48
  answeredWire
47
- } from "./chunk-4IWJARFA.js";
49
+ } from "./chunk-QQUY4MZY.js";
48
50
  import {
49
51
  StdioServerTransport,
50
52
  callerOf,
51
53
  callingAgent,
52
54
  serveStdio
53
- } from "./chunk-KKGX7JMX.js";
55
+ } from "./chunk-HLXVUMZJ.js";
54
56
  import {
55
57
  McpServer,
56
58
  ResourceTemplate
57
59
  } from "./chunk-5D4AEUVA.js";
58
60
  import {
59
61
  mcpHttpMarker
60
- } from "./chunk-4IFX4HV2.js";
62
+ } from "./chunk-PQMJ5BXH.js";
61
63
  import {
62
- connectedFor,
63
- guardFor
64
- } from "./chunk-VYHIX3OP.js";
64
+ connectedFor
65
+ } from "./chunk-EXVY76VO.js";
65
66
  import {
66
67
  capability,
67
68
  dateWindow,
69
+ guardFor,
68
70
  imageSize,
69
71
  lackedNeed,
70
72
  servicesFor,
71
73
  storedDeps,
72
74
  wholeList
73
- } from "./chunk-LQDMUMA2.js";
75
+ } from "./chunk-WX6OYVCH.js";
74
76
  import {
75
77
  findCommand
76
- } from "./chunk-4YJJQNNJ.js";
78
+ } from "./chunk-OLKCJBZY.js";
77
79
  import {
78
80
  DEFAULT_OUTPUT_BYTES,
79
81
  changesAuthorityAt,
@@ -86,29 +88,31 @@ import {
86
88
  recalledAccount,
87
89
  rootOf2 as rootOf,
88
90
  sealed,
89
- snakeKeys,
90
- typedCommand
91
- } from "./chunk-B6QMMRIM.js";
91
+ snakeKeys
92
+ } from "./chunk-KFB2X6KE.js";
92
93
  import {
93
94
  levelFor,
94
95
  readKeysForCommand
95
- } from "./chunk-SBGXKM4U.js";
96
+ } from "./chunk-DIA56CS7.js";
96
97
  import {
97
98
  withCaller
98
- } from "./chunk-CUOCDJFI.js";
99
+ } from "./chunk-XQYKIZMG.js";
99
100
  import {
100
101
  openStore,
101
102
  pdfPreviewLimits
102
- } from "./chunk-NOA6E6MM.js";
103
+ } from "./chunk-A6BPOX5O.js";
104
+ import {
105
+ typedCommand
106
+ } from "./chunk-MBFPFWCO.js";
103
107
  import {
104
108
  timezoneOf
105
- } from "./chunk-7YRKUEYE.js";
109
+ } from "./chunk-5ZYFV6FD.js";
106
110
  import {
107
111
  isCliFailure
108
- } from "./chunk-R554W7ZO.js";
112
+ } from "./chunk-U6IQ6YQ2.js";
109
113
  import {
110
114
  warmEmbedders
111
- } from "./chunk-VFKX5UMJ.js";
115
+ } from "./chunk-G5LHHAW2.js";
112
116
  import {
113
117
  description,
114
118
  integer,
@@ -124,19 +128,19 @@ import {
124
128
  regex,
125
129
  strictObject,
126
130
  string
127
- } from "./chunk-GOMJNH56.js";
131
+ } from "./chunk-IZOYW4Z4.js";
128
132
  import {
129
133
  CliError,
130
134
  visibleControls
131
- } from "./chunk-DALBYUPC.js";
135
+ } from "./chunk-VUBZFMGP.js";
132
136
  import {
133
137
  __name
134
138
  } from "./chunk-ZVVMGPBJ.js";
135
139
 
136
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/server.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/server.js
137
141
  import { randomUUID } from "node:crypto";
138
142
 
139
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
143
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
140
144
  var agentLog = /* @__PURE__ */ __name((open) => {
141
145
  let held;
142
146
  return {
@@ -155,7 +159,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
155
159
  };
156
160
  }, "agentLog");
157
161
 
158
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/resources.js
162
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/resources.js
159
163
  var LISTED = 100;
160
164
  var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
161
165
  server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
@@ -193,7 +197,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
193
197
  });
194
198
  }, "registerResources");
195
199
 
196
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/session.js
200
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/session.js
197
201
  var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
198
202
  var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
199
203
  var MessengerSession = class {
@@ -268,7 +272,7 @@ var MessengerSession = class {
268
272
  }
269
273
  };
270
274
 
271
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
275
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
272
276
  var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
273
277
  const _command = messenger.app.command;
274
278
  return {
@@ -322,7 +326,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
322
326
  };
323
327
  }, "attachmentsTools");
324
328
 
325
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
329
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
326
330
  var PHOTO_LIMIT = 512 * 1024;
327
331
  var IMAGE_TYPES = [
328
332
  ["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
@@ -376,7 +380,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
376
380
  return new Uint8Array(Buffer.concat(chunks));
377
381
  }, "readUpTo");
378
382
 
379
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
383
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
380
384
  var statsTools = /* @__PURE__ */ __name((messenger) => ({
381
385
  stats_charts: tool({
382
386
  title: "A chart from a chat's statistics",
@@ -413,14 +417,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
413
417
  })
414
418
  }), "statsTools");
415
419
 
416
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/tools.js
420
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/tools.js
417
421
  var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
418
422
  ...messagesPhotoTools(messenger),
419
423
  ...attachmentsTools(messenger),
420
424
  ...statsTools(messenger)
421
425
  }).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
422
426
 
423
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/mcp/server.js
427
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/server.js
424
428
  var PER_RUN = /* @__PURE__ */ new Set([
425
429
  "streams",
426
430
  "stdin",
@@ -744,7 +748,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
744
748
  }, "serveOverStdio");
745
749
  var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
746
750
  const { session, embedders, build, log } = createServer(command, context, messenger, options);
747
- const { serveOverHttp } = await import("./serve-THU67QUZ.js");
751
+ const { serveOverHttp } = await import("./serve-CB3XJTH3.js");
748
752
  const appName = messenger.app.command;
749
753
  const appEnvPrefix = messenger.app.envPrefix;
750
754
  const listening = await serveOverHttp(build, {
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  wirecatDirectory
5
- } from "./chunk-5UKBUI4I.js";
5
+ } from "./chunk-LGZPKKBN.js";
6
6
  import {
7
7
  CliError
8
- } from "./chunk-DALBYUPC.js";
8
+ } from "./chunk-VUBZFMGP.js";
9
9
  import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/speech/models.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/models.js
14
14
  var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
15
15
  var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
16
16
  var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
137
137
  return model;
138
138
  }, "speechModel");
139
139
 
140
- // node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_89df442a19027064da492ef27322716d/node_modules/@wirecat/cli-core/dist/speech/install.js
140
+ // node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/speech/install.js
141
141
  import { createHash, randomUUID } from "node:crypto";
142
142
  import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
143
143
  import { rename, rm } from "node:fs/promises";
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  singleLine
5
- } from "./chunk-DALBYUPC.js";
5
+ } from "./chunk-VUBZFMGP.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
10
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
11
11
  var FIRST_PARTY_TOOLS = [
12
12
  { name: "tg", package: "@wirecat/tg-cli" },
13
13
  { name: "max", package: "@wirecat/max-cli" },
@@ -28,17 +28,31 @@ var RESERVED_NAMES = [
28
28
  var TOOL_NAME = /^[a-z][a-z0-9-]{0,39}$/;
29
29
  var PROGRAM_PREFIX = "wcat-";
30
30
  var DESCRIBE_FLAG = "--wcat-describe";
31
+ var DESCRIBE_MAX_BYTES = 64 * 1024;
31
32
  var DISPATCH_FLAG = "--wcat-dispatch";
32
33
 
33
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
34
35
  var DESCRIBE_FORMAT = 1;
35
- var describeAnswer = /* @__PURE__ */ __name((tool) => ({
36
- wcat_describe: DESCRIBE_FORMAT,
37
- name: tool.command,
38
- version: tool.version,
39
- description: tool.description,
40
- ...tool.docs ? { docs_url: tool.docs } : {}
41
- }), "describeAnswer");
36
+ var DESCRIBE_MANIFEST_FORMAT = 2;
37
+ var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
38
+ const answer = {
39
+ wcat_describe: DESCRIBE_FORMAT,
40
+ name: tool.command,
41
+ version: tool.version,
42
+ description: tool.description,
43
+ ...tool.docs ? { docs_url: tool.docs } : {}
44
+ };
45
+ if (!manifest)
46
+ return answer;
47
+ const full = {
48
+ ...answer,
49
+ wcat_describe: DESCRIBE_MANIFEST_FORMAT,
50
+ desktop: manifest.desktop,
51
+ manifest_sha256: manifest.sha256
52
+ };
53
+ return Buffer.byteLength(`${JSON.stringify(full)}
54
+ `) > DESCRIBE_MAX_BYTES ? answer : full;
55
+ }, "describeAnswer");
42
56
  var MAX_TEXT = 200;
43
57
  var clean = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? singleLine(value.trim()).slice(0, MAX_TEXT) : void 0, "clean");
44
58
  var parseDescribe = /* @__PURE__ */ __name((text) => {
@@ -50,25 +64,48 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
50
64
  }
51
65
  if (typeof answer !== "object" || answer === null || !("wcat_describe" in answer))
52
66
  return void 0;
53
- const { version, description, docs_url: docs } = answer;
67
+ const { version, description, docs_url: docs, manifest_sha256: sha } = answer;
54
68
  const url = clean(docs);
55
69
  return {
56
70
  version: clean(version) ?? "",
57
71
  description: clean(description) ?? "",
58
- ...url && /^https?:\/\//.test(url) ? { docs: url } : {}
72
+ ...url && /^https?:\/\//.test(url) ? { docs: url } : {},
73
+ ...typeof sha === "string" && /^[0-9a-f]{64}$/.test(sha) ? { manifestSha256: sha } : {}
59
74
  };
60
75
  }, "parseDescribe");
61
76
 
62
- // node_modules/.pnpm/@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
77
+ // node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
63
78
  import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
64
79
  import { join } from "node:path";
65
- var SHIM_FORMAT = 1;
80
+ var SHIM_FORMAT = 2;
66
81
  var MARK = /^(?:#|REM) wirecat-shim (\d+) (launcher|shortcut) (\S+)\r?$/m;
67
82
  var NOTE = {
68
83
  launcher: "Written by @wirecat/cli-base. Any WireCat tool rewrites it when it breaks; it is safe to delete.",
69
84
  shortcut: "Made by `wcat shortcuts add`; `wcat shortcuts remove` takes it out."
70
85
  };
71
86
  var shellQuote = /* @__PURE__ */ __name((text) => `'${text.replaceAll("'", `'\\''`)}'`, "shellQuote");
87
+ var launcherBody = /* @__PURE__ */ __name((dir, target, name) => [
88
+ 'ok() { [ -f "$1" ] && [ -x "$1" ]; }',
89
+ `dir=${shellQuote(dir)}`,
90
+ `target=${shellQuote(join(dir, target))}`,
91
+ 'if ! ok "$target"; then',
92
+ ' for t in "$dir"/wcat-*; do',
93
+ ' if ok "$t"; then target=$t; break; fi',
94
+ " done",
95
+ "fi",
96
+ `if ok "$target"; then exec "$target" ${DISPATCH_FLAG} "$@"; fi`,
97
+ 'if [ -z "$WIRECAT_LAUNCHER_SKIP" ]; then',
98
+ " WIRECAT_LAUNCHER_SKIP=1; export WIRECAT_LAUNCHER_SKIP",
99
+ " set -f; oldifs=$IFS; IFS=:",
100
+ " for d in $PATH; do",
101
+ ` if [ -n "$d" ] && [ "$d" != "$dir" ] && ok "$d/${name}"; then IFS=$oldifs; exec "$d/${name}" "$@"; fi`,
102
+ " done",
103
+ " IFS=$oldifs; set +f",
104
+ "fi",
105
+ `printf '%s\\n' "${name}: $target is missing and no other ${name}-* program was found in $dir or on PATH." \\`,
106
+ ` "This launcher is safe to delete: $dir/${name}" >&2`,
107
+ "exit 127"
108
+ ], "launcherBody");
72
109
  var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) => {
73
110
  const mark = `wirecat-shim ${SHIM_FORMAT} ${kind} ${target}`;
74
111
  const extra = kind === "launcher" ? ` ${DISPATCH_FLAG}` : "";
@@ -76,11 +113,13 @@ var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) =
76
113
  return [
77
114
  {
78
115
  path: join(dir, name),
79
- text: `#!/bin/sh
80
- # ${mark}
81
- # ${NOTE[kind]}
82
- exec ${shellQuote(join(dir, target))}${extra} "$@"
83
- `
116
+ text: [
117
+ "#!/bin/sh",
118
+ `# ${mark}`,
119
+ `# ${NOTE[kind]}`,
120
+ ...kind === "launcher" ? launcherBody(dir, target, name) : [`exec ${shellQuote(join(dir, target))} "$@"`],
121
+ ""
122
+ ].join("\n")
84
123
  }
85
124
  ];
86
125
  return [
@@ -150,14 +189,15 @@ var writeShim = /* @__PURE__ */ __name(({ path, text }) => {
150
189
  }, "writeShim");
151
190
 
152
191
  export {
153
- describeAnswer,
154
- parseDescribe,
155
192
  FIRST_PARTY_TOOLS,
156
193
  BUILT_IN_COMMANDS,
157
194
  TOOL_NAME,
158
195
  PROGRAM_PREFIX,
159
196
  DESCRIBE_FLAG,
197
+ DESCRIBE_MAX_BYTES,
160
198
  DISPATCH_FLAG,
199
+ describeAnswer,
200
+ parseDescribe,
161
201
  SHIM_FORMAT,
162
202
  shimFiles,
163
203
  fileState,