@wirecat/mail-cli 0.23.1 → 0.24.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 (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/bin/mail.js +2 -2
  3. package/dist/bundle/{all-profiles-FJHJCGRU.js → all-profiles-VS7P6DJY.js} +11 -11
  4. package/dist/bundle/{anthropic-AFL7NKVZ.js → anthropic-C5JXKGBS.js} +16 -7
  5. package/dist/bundle/{app-server-WKCBJMHI.js → app-server-HU3LVU42.js} +51 -50
  6. package/dist/bundle/{bun-HQATAQJQ.js → bun-QLFX47WZ.js} +2 -2
  7. package/dist/bundle/{bun-sqlite-4ECAV7OU.js → bun-sqlite-W4PGAKVY.js} +5 -5
  8. package/dist/bundle/{chunk-3UFD76IR.js → chunk-3FD3IATT.js} +6 -6
  9. package/dist/bundle/{chunk-R554W7ZO.js → chunk-3KSK5BBB.js} +2 -2
  10. package/dist/bundle/{chunk-AGNAT7CM.js → chunk-4QNHAM3J.js} +2 -2
  11. package/dist/bundle/{chunk-7SWWVDEZ.js → chunk-4W4EVVL4.js} +61 -21
  12. package/dist/bundle/{chunk-NMGF3UOZ.js → chunk-5NLHDK7P.js} +50 -46
  13. package/dist/bundle/{chunk-VFKX5UMJ.js → chunk-5X3GU5LI.js} +6 -6
  14. package/dist/bundle/{chunk-NKBAZ4VC.js → chunk-64ZG5ERD.js} +2 -2
  15. package/dist/bundle/{chunk-WN4HP7IZ.js → chunk-6PWCQKMD.js} +12 -12
  16. package/dist/bundle/{chunk-V3TDQUXD.js → chunk-6VV7J2TN.js} +36 -57
  17. package/dist/bundle/{chunk-SNTLN2QT.js → chunk-A6J4MPTI.js} +3 -1
  18. package/dist/bundle/{chunk-CUOCDJFI.js → chunk-AUTX2MLF.js} +11 -9
  19. package/dist/bundle/{chunk-5UKBUI4I.js → chunk-B72343TK.js} +2 -2
  20. package/dist/bundle/{chunk-4IWJARFA.js → chunk-BFQQV22T.js} +1 -1
  21. package/dist/bundle/chunk-C3NYJW6B.js +1542 -0
  22. package/dist/bundle/{chunk-OJCUSHZG.js → chunk-C5BMCLCQ.js} +4 -4
  23. package/dist/bundle/{chunk-OU5CWCG2.js → chunk-DW3F6DUW.js} +1 -1
  24. package/dist/bundle/chunk-EKGRNFYQ.js +18 -0
  25. package/dist/bundle/{chunk-B6QMMRIM.js → chunk-FKWUUCX2.js} +1340 -1542
  26. package/dist/bundle/{chunk-LLYVBO3R.js → chunk-FNLUKODV.js} +19 -19
  27. package/dist/bundle/{chunk-KKGX7JMX.js → chunk-H5FJTHVA.js} +2 -2
  28. package/dist/bundle/{chunk-3QVGB2CI.js → chunk-HBZAJINU.js} +4 -4
  29. package/dist/bundle/{chunk-V7CFZ773.js → chunk-IRUN4XOV.js} +2 -2
  30. package/dist/bundle/{chunk-VAMCRP47.js → chunk-JMLIKXFO.js} +2 -2
  31. package/dist/bundle/{chunk-QR7JZM3D.js → chunk-JOQGJUFT.js} +1 -1
  32. package/dist/bundle/{chunk-CBWA2T3N.js → chunk-JWMLMAHP.js} +4 -4
  33. package/dist/bundle/{chunk-S5OTP7XS.js → chunk-KGOVFEWZ.js} +3 -3
  34. package/dist/bundle/{chunk-PMIKRELC.js → chunk-KV4VTKF3.js} +3 -3
  35. package/dist/bundle/chunk-LVGX7VTD.js +138 -0
  36. package/dist/bundle/{chunk-3DQYO7FB.js → chunk-MCPOZNWG.js} +1 -1
  37. package/dist/bundle/{chunk-E7ZVKQHG.js → chunk-MTO6YVMN.js} +3 -3
  38. package/dist/bundle/{chunk-CCYHBNRL.js → chunk-NCRSE647.js} +286 -48
  39. package/dist/bundle/{chunk-GJNFNC76.js → chunk-NSIN5IM4.js} +8 -8
  40. package/dist/bundle/{chunk-ZXIPJF3Y.js → chunk-NWKKPDZV.js} +2 -2
  41. package/dist/bundle/chunk-O373QEAJ.js +1243 -0
  42. package/dist/bundle/{chunk-VYIIX6VN.js → chunk-OQW6GHUA.js} +1 -1
  43. package/dist/bundle/{chunk-2HXHAFRP.js → chunk-PRQ2U7HF.js} +2 -2
  44. package/dist/bundle/{chunk-MBKNL5TX.js → chunk-PT6MF2VU.js} +87 -77
  45. package/dist/bundle/{chunk-SBGXKM4U.js → chunk-Q4OKEN3B.js} +7 -7
  46. package/dist/bundle/{chunk-ROKTS7WM.js → chunk-Q6K2XUGU.js} +1 -1
  47. package/dist/bundle/{chunk-VYHIX3OP.js → chunk-QI3PXUOJ.js} +43 -595
  48. package/dist/bundle/{chunk-UMXVQIGD.js → chunk-QVMOEB3I.js} +377 -12
  49. package/dist/bundle/{chunk-HOKGIYUO.js → chunk-RLQZFZLK.js} +62 -7
  50. package/dist/bundle/{chunk-3OZKDC6Y.js → chunk-RN7OI5KL.js} +8 -8
  51. package/dist/bundle/{chunk-BVJQBAGL.js → chunk-RNZKQMFY.js} +14 -14
  52. package/dist/bundle/{chunk-4YJJQNNJ.js → chunk-RUASZW3M.js} +5 -5
  53. package/dist/bundle/{chunk-UHC5I3JV.js → chunk-RX5CJ55S.js} +1 -1
  54. package/dist/bundle/{chunk-SR3ADLGX.js → chunk-SWKQ6IAR.js} +3 -3
  55. package/dist/bundle/{chunk-QUKD5SO2.js → chunk-TI7ZIPA2.js} +4 -4
  56. package/dist/bundle/{chunk-LQDMUMA2.js → chunk-TLEBSMC7.js} +1997 -768
  57. package/dist/bundle/{chunk-MUDHCYN4.js → chunk-U6MMQNNK.js} +6 -6
  58. package/dist/bundle/{chunk-CYQVWITQ.js → chunk-VNKWSCN7.js} +99 -42
  59. package/dist/bundle/{chunk-DALBYUPC.js → chunk-VUBZFMGP.js} +2 -2
  60. package/dist/bundle/{chunk-34743C4C.js → chunk-VVL4MKYH.js} +1 -1
  61. package/dist/bundle/{chunk-7YRKUEYE.js → chunk-WOX7FZJP.js} +667 -222
  62. package/dist/bundle/{chunk-R5MYOLQP.js → chunk-X47BL4M5.js} +13 -13
  63. package/dist/bundle/{chunk-GOMJNH56.js → chunk-X7J3TTDO.js} +8 -8
  64. package/dist/bundle/{chunk-NOA6E6MM.js → chunk-XBEO472U.js} +29202 -16302
  65. package/dist/bundle/{chunk-4IFX4HV2.js → chunk-YA45XV6G.js} +4 -4
  66. package/dist/bundle/{chunk-M7RGG3UU.js → chunk-YBQ5AYLZ.js} +3 -3
  67. package/dist/bundle/{chunk-QV3M2MHG.js → chunk-YI544LHI.js} +13 -136
  68. package/dist/bundle/chunk-ZO4MQWIK.js +188 -0
  69. package/dist/bundle/{chunk-76RTQYJQ.js → chunk-ZR2BDNGG.js} +1 -1
  70. package/dist/bundle/command-contract-ERYYPAD2.js +35 -0
  71. package/dist/bundle/command-server-entry-5E3PPDE5.js +164 -0
  72. package/dist/bundle/{decode-QXKTMOTH.js → decode-AVWV7SVZ.js} +5 -5
  73. package/dist/bundle/{dispatch-G4CYFWQ2.js → dispatch-BXPHSNK5.js} +10 -10
  74. package/dist/bundle/{dist-5FX36DAW.js → dist-PIOOKBWT.js} +70 -44
  75. package/dist/bundle/{echarts-HHUM43TU.js → echarts-7K6YQV52.js} +2 -2
  76. package/dist/bundle/{embed-SRZSDZVI.js → embed-4NT76GJK.js} +6 -6
  77. package/dist/bundle/{embedder-WZIZCWLX.js → embedder-ITQFF7EN.js} +9 -9
  78. package/dist/bundle/{failure-FFPK2WYB.js → failure-3Q65JOPD.js} +2 -2
  79. package/dist/bundle/{first-run-6DVWZ3JQ.js → first-run-PM74YU4X.js} +11 -11
  80. package/dist/bundle/first-screen-WBVGVSMY.js +33 -0
  81. package/dist/bundle/{instructions-UWONE6UT.js → instructions-JDSITYHV.js} +1 -1
  82. package/dist/bundle/mail.js +37 -13
  83. package/dist/bundle/{mcp-CFVG2OUS.js → mcp-7KQUJNFN.js} +2 -2
  84. package/dist/bundle/{node-HLAOYJDB.js → node-D6YIJOJI.js} +2 -2
  85. package/dist/bundle/{node-sqlite-RO66I7W6.js → node-sqlite-PJOHHB4X.js} +6 -6
  86. package/dist/bundle/{oauth-VNLB2TET.js → oauth-BOWJ3IBT.js} +7 -7
  87. package/dist/bundle/{open-QQSG343L.js → open-FIAKKZMW.js} +5 -5
  88. package/dist/bundle/{openai-JTFC7OGF.js → openai-QL54VVLC.js} +16 -37
  89. package/dist/bundle/{process-3CZAXR6P.js → process-AYHK7WRC.js} +1 -1
  90. package/dist/bundle/{program-XTOS4RAM.js → program-6FKWOTBK.js} +2267 -1351
  91. package/dist/bundle/{prompt-HGQ6GPYL.js → prompt-XJZCBELC.js} +5 -5
  92. package/dist/bundle/{recognize-2SHMNEIZ.js → recognize-OQKWAHBY.js} +4 -4
  93. package/dist/bundle/{remote-GBQC3433.js → remote-NLVUZ5WK.js} +7 -7
  94. package/dist/bundle/{rerank-FQHQXFNR.js → rerank-NRPZDTJ7.js} +7 -7
  95. package/dist/bundle/{serve-THU67QUZ.js → serve-O4YUI7F6.js} +9 -9
  96. package/dist/bundle/server-6OT5ZEWL.js +66 -0
  97. package/dist/bundle/{server-LOT3CLYX.js → server-WAL3M4OO.js} +40 -40
  98. package/dist/bundle/{sqlite-runtime-NOOUMBC4.js → sqlite-runtime-5YHGI4D4.js} +6 -6
  99. package/dist/bundle/{state-KSKZCV2U.js → state-WYYOJ7KK.js} +6 -6
  100. package/dist/bundle/{store-BAKSHTKF.js → store-6BJO3F2J.js} +16 -16
  101. package/dist/bundle/{store-OHNZOQ7U.js → store-X72GOJHD.js} +44 -20
  102. package/dist/bundle/store-maintenance-command-ASS7RBYC.js +54 -0
  103. package/dist/config.d.ts +4 -0
  104. package/dist/config.d.ts.map +1 -1
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +3 -3
  108. package/dist/bundle/chunk-EXPR6QAX.js +0 -394
  109. package/dist/bundle/chunk-FWFNUJQD.js +0 -12172
  110. package/dist/bundle/command-contract-IIHBNF7J.js +0 -35
  111. package/dist/bundle/first-screen-SRZ7NYHZ.js +0 -33
  112. package/dist/bundle/server-VKMUX7ZT.js +0 -65
  113. package/dist/bundle/store-maintenance-command-ROQHJVEA.js +0 -54
  114. /package/dist/bundle/{chunk-QZLK2ISN.js → chunk-YVNHQFLC.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.24.0 — 10.11.2026
6
+
7
+ ### Changed — may break callers
8
+
9
+ - **Built on cli-core 0.630.0** (was 0.618.0). The store moves to version 63 on first open. A mailbox you connect
10
+ under another person's name is no longer joined to you: it waits for you as a proposal. What changed in between is
11
+ in [cli-core's changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).
12
+ - **`schedule pause <name>` and `schedule resume <name>`** take a schedule off its timer and keep it; `schedule run`
13
+ still runs it. `--at` repeats: `--at 08:30 --at 18:00` runs twice a day.
14
+
5
15
  ## 0.23.1 — 08.11.2026
6
16
 
7
17
  ### Added
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.23.1\n")
12
+ process.stdout.write("0.24.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-FJHJCGRU.js","../bundle/anthropic-AFL7NKVZ.js","../bundle/app-server-WKCBJMHI.js","../bundle/bun-HQATAQJQ.js","../bundle/bun-sqlite-4ECAV7OU.js","../bundle/decode-QXKTMOTH.js","../bundle/dispatch-G4CYFWQ2.js","../bundle/dist-5FX36DAW.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-HHUM43TU.js","../bundle/embed-SRZSDZVI.js","../bundle/embedder-WZIZCWLX.js","../bundle/failure-FFPK2WYB.js","../bundle/first-screen-SRZ7NYHZ.js","../bundle/instructions-UWONE6UT.js","../bundle/mcp-CFVG2OUS.js","../bundle/node-HLAOYJDB.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-RO66I7W6.js","../bundle/oauth-VNLB2TET.js","../bundle/open-QQSG343L.js","../bundle/openai-JTFC7OGF.js","../bundle/process-3CZAXR6P.js","../bundle/program-XTOS4RAM.js","../bundle/prompt-HGQ6GPYL.js","../bundle/recognize-2SHMNEIZ.js","../bundle/remote-GBQC3433.js","../bundle/rerank-FQHQXFNR.js","../bundle/serve-THU67QUZ.js","../bundle/server-LOT3CLYX.js","../bundle/server-VKMUX7ZT.js","../bundle/sqlite-runtime-NOOUMBC4.js","../bundle/state-KSKZCV2U.js","../bundle/store-BAKSHTKF.js","../bundle/store-OHNZOQ7U.js","../bundle/store-maintenance-command-ROQHJVEA.js"]
31
+ const chunks = ["../bundle/all-profiles-VS7P6DJY.js","../bundle/anthropic-C5JXKGBS.js","../bundle/app-server-HU3LVU42.js","../bundle/bun-QLFX47WZ.js","../bundle/bun-sqlite-W4PGAKVY.js","../bundle/decode-AVWV7SVZ.js","../bundle/dispatch-BXPHSNK5.js","../bundle/dist-HFUVURJG.js","../bundle/dist-PIOOKBWT.js","../bundle/echarts-7K6YQV52.js","../bundle/embed-4NT76GJK.js","../bundle/embedder-ITQFF7EN.js","../bundle/failure-3Q65JOPD.js","../bundle/first-screen-WBVGVSMY.js","../bundle/instructions-JDSITYHV.js","../bundle/mcp-7KQUJNFN.js","../bundle/node-D6YIJOJI.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-PJOHHB4X.js","../bundle/oauth-BOWJ3IBT.js","../bundle/open-FIAKKZMW.js","../bundle/openai-QL54VVLC.js","../bundle/process-AYHK7WRC.js","../bundle/program-6FKWOTBK.js","../bundle/prompt-XJZCBELC.js","../bundle/recognize-OQKWAHBY.js","../bundle/remote-NLVUZ5WK.js","../bundle/rerank-NRPZDTJ7.js","../bundle/serve-O4YUI7F6.js","../bundle/server-6OT5ZEWL.js","../bundle/server-WAL3M4OO.js","../bundle/sqlite-runtime-5YHGI4D4.js","../bundle/state-WYYOJ7KK.js","../bundle/store-6BJO3F2J.js","../bundle/store-X72GOJHD.js","../bundle/store-maintenance-command-ASS7RBYC.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -2,30 +2,30 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answeredWire
5
- } from "./chunk-4IWJARFA.js";
5
+ } from "./chunk-BFQQV22T.js";
6
6
  import {
7
7
  CALLER_META_KEY,
8
8
  PROXY_CLIENT_NAME,
9
9
  StdioServerTransport,
10
10
  callerOf,
11
11
  serveStdio
12
- } from "./chunk-KKGX7JMX.js";
12
+ } from "./chunk-H5FJTHVA.js";
13
13
  import {
14
14
  McpServer
15
15
  } from "./chunk-5D4AEUVA.js";
16
- import "./chunk-CUOCDJFI.js";
17
- import "./chunk-R554W7ZO.js";
18
- import "./chunk-ROKTS7WM.js";
19
- import "./chunk-QZLK2ISN.js";
20
- import "./chunk-LLYVBO3R.js";
21
- import "./chunk-GOMJNH56.js";
16
+ import "./chunk-AUTX2MLF.js";
17
+ import "./chunk-3KSK5BBB.js";
18
+ import "./chunk-Q6K2XUGU.js";
19
+ import "./chunk-YVNHQFLC.js";
20
+ import "./chunk-FNLUKODV.js";
21
+ import "./chunk-X7J3TTDO.js";
22
22
  import "./chunk-Y5E2WNWB.js";
23
- import "./chunk-DALBYUPC.js";
23
+ import "./chunk-VUBZFMGP.js";
24
24
  import {
25
25
  __name
26
26
  } from "./chunk-ZVVMGPBJ.js";
27
27
 
28
- // 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/all-profiles.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
29
29
  import { spawn } from "node:child_process";
30
30
  import { randomUUID } from "node:crypto";
31
31
  var PROTOCOL = "2025-06-18";
@@ -259,7 +259,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
259
259
  }, "serveAllProfilesOverStdio");
260
260
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
261
261
  const { build, close } = allProfilesServer(options);
262
- const { serveOverHttp } = await import("./serve-THU67QUZ.js");
262
+ const { serveOverHttp } = await import("./serve-O4YUI7F6.js");
263
263
  const listening = await serveOverHttp(build, {
264
264
  ...http,
265
265
  appName: options.command,
@@ -7,23 +7,32 @@ import {
7
7
  checkedOptions,
8
8
  messagesFor,
9
9
  systemFor
10
- } from "./chunk-CBWA2T3N.js";
11
- import "./chunk-LLYVBO3R.js";
10
+ } from "./chunk-JWMLMAHP.js";
11
+ import "./chunk-FNLUKODV.js";
12
12
  import {
13
13
  array,
14
+ literal,
14
15
  optional,
16
+ picklist,
17
+ record,
15
18
  strictObject,
16
- string
17
- } from "./chunk-GOMJNH56.js";
19
+ string,
20
+ unknown
21
+ } from "./chunk-X7J3TTDO.js";
18
22
  import "./chunk-Y5E2WNWB.js";
19
- import "./chunk-DALBYUPC.js";
23
+ import "./chunk-VUBZFMGP.js";
20
24
  import {
21
25
  __name
22
26
  } from "./chunk-ZVVMGPBJ.js";
23
27
 
24
- // 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/models/anthropic.js
28
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/models/anthropic.js
25
29
  var options = strictObject({
26
- stop_sequences: optional(array(string()))
30
+ stop_sequences: optional(array(string())),
31
+ thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
32
+ output_config: optional(strictObject({
33
+ effort: optional(picklist(["low", "medium", "high"])),
34
+ format: optional(strictObject({ type: literal("json_schema"), schema: record(string(), unknown()) }))
35
+ }))
27
36
  });
28
37
  var anthropic = {
29
38
  images: true,
@@ -3,46 +3,47 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-NMGF3UOZ.js";
6
+ } from "./chunk-5NLHDK7P.js";
7
+ import {
8
+ mcpUrlOf
9
+ } from "./chunk-6VV7J2TN.js";
10
+ import "./chunk-EKGRNFYQ.js";
7
11
  import {
8
12
  answered,
9
13
  failed,
10
14
  registerCommands,
11
15
  runCommandForAgent,
12
16
  toolsFromCommands
13
- } from "./chunk-CCYHBNRL.js";
14
- import {
15
- mcpUrlOf
16
- } from "./chunk-V3TDQUXD.js";
17
+ } from "./chunk-NCRSE647.js";
17
18
  import {
18
19
  agentJson,
19
20
  skillResource
20
- } from "./chunk-BVJQBAGL.js";
21
- import "./chunk-HOKGIYUO.js";
21
+ } from "./chunk-RNZKQMFY.js";
22
+ import "./chunk-RLQZFZLK.js";
22
23
  import {
23
24
  appInstructions
24
- } from "./chunk-VYIIX6VN.js";
25
+ } from "./chunk-OQW6GHUA.js";
25
26
  import {
26
27
  answeredWire
27
- } from "./chunk-4IWJARFA.js";
28
+ } from "./chunk-BFQQV22T.js";
28
29
  import {
29
30
  StdioServerTransport,
30
31
  serveStdio
31
- } from "./chunk-KKGX7JMX.js";
32
+ } from "./chunk-H5FJTHVA.js";
32
33
  import {
33
34
  McpServer
34
35
  } from "./chunk-5D4AEUVA.js";
35
36
  import {
36
37
  mcpHttpMarker
37
- } from "./chunk-4IFX4HV2.js";
38
- import "./chunk-VYHIX3OP.js";
39
- import "./chunk-LQDMUMA2.js";
40
- import "./chunk-R5MYOLQP.js";
41
- import "./chunk-QV3M2MHG.js";
42
- import "./chunk-CBWA2T3N.js";
43
- import "./chunk-M7RGG3UU.js";
44
- import "./chunk-ZXIPJF3Y.js";
45
- import "./chunk-4YJJQNNJ.js";
38
+ } from "./chunk-YA45XV6G.js";
39
+ import "./chunk-QI3PXUOJ.js";
40
+ import "./chunk-TLEBSMC7.js";
41
+ import "./chunk-X47BL4M5.js";
42
+ import "./chunk-YI544LHI.js";
43
+ import "./chunk-JWMLMAHP.js";
44
+ import "./chunk-YBQ5AYLZ.js";
45
+ import "./chunk-NWKKPDZV.js";
46
+ import "./chunk-RUASZW3M.js";
46
47
  import {
47
48
  DEFAULT_OUTPUT_BYTES,
48
49
  changesAuthorityAt,
@@ -52,46 +53,46 @@ import {
52
53
  readOnlyLockOf,
53
54
  readsOverMcpAt,
54
55
  rootOf2 as rootOf
55
- } from "./chunk-B6QMMRIM.js";
56
- import "./chunk-SBGXKM4U.js";
57
- import "./chunk-CUOCDJFI.js";
58
- import "./chunk-OU5CWCG2.js";
59
- import "./chunk-3QVGB2CI.js";
60
- import "./chunk-3DQYO7FB.js";
61
- import "./chunk-SR3ADLGX.js";
62
- import "./chunk-CYQVWITQ.js";
63
- import "./chunk-E7ZVKQHG.js";
64
- import "./chunk-NOA6E6MM.js";
65
- import "./chunk-FWFNUJQD.js";
66
- import "./chunk-EXPR6QAX.js";
67
- import "./chunk-7YRKUEYE.js";
68
- import "./chunk-R554W7ZO.js";
69
- import "./chunk-ROKTS7WM.js";
70
- import "./chunk-GJNFNC76.js";
71
- import "./chunk-3UFD76IR.js";
72
- import "./chunk-PMIKRELC.js";
73
- import "./chunk-VFKX5UMJ.js";
74
- import "./chunk-QUKD5SO2.js";
75
- import "./chunk-5UKBUI4I.js";
76
- import "./chunk-UHC5I3JV.js";
77
- import "./chunk-QZLK2ISN.js";
56
+ } from "./chunk-FKWUUCX2.js";
57
+ import "./chunk-Q4OKEN3B.js";
58
+ import "./chunk-AUTX2MLF.js";
59
+ import "./chunk-DW3F6DUW.js";
60
+ import "./chunk-HBZAJINU.js";
61
+ import "./chunk-MCPOZNWG.js";
62
+ import "./chunk-SWKQ6IAR.js";
63
+ import "./chunk-VNKWSCN7.js";
64
+ import "./chunk-MTO6YVMN.js";
65
+ import "./chunk-XBEO472U.js";
66
+ import "./chunk-C3NYJW6B.js";
67
+ import "./chunk-O373QEAJ.js";
68
+ import "./chunk-WOX7FZJP.js";
69
+ import "./chunk-3KSK5BBB.js";
70
+ import "./chunk-Q6K2XUGU.js";
71
+ import "./chunk-NSIN5IM4.js";
72
+ import "./chunk-3FD3IATT.js";
73
+ import "./chunk-KV4VTKF3.js";
74
+ import "./chunk-5X3GU5LI.js";
75
+ import "./chunk-TI7ZIPA2.js";
76
+ import "./chunk-B72343TK.js";
77
+ import "./chunk-RX5CJ55S.js";
78
+ import "./chunk-YVNHQFLC.js";
78
79
  import "./chunk-D72URWJE.js";
79
- import "./chunk-MUDHCYN4.js";
80
- import "./chunk-SNTLN2QT.js";
81
- import "./chunk-LLYVBO3R.js";
80
+ import "./chunk-U6MMQNNK.js";
81
+ import "./chunk-A6J4MPTI.js";
82
+ import "./chunk-FNLUKODV.js";
82
83
  import {
83
84
  mcpErrorResult
84
- } from "./chunk-GOMJNH56.js";
85
+ } from "./chunk-X7J3TTDO.js";
85
86
  import "./chunk-Y5E2WNWB.js";
86
87
  import {
87
88
  CliError
88
- } from "./chunk-DALBYUPC.js";
89
- import "./chunk-QR7JZM3D.js";
89
+ } from "./chunk-VUBZFMGP.js";
90
+ import "./chunk-JOQGJUFT.js";
90
91
  import {
91
92
  __name
92
93
  } from "./chunk-ZVVMGPBJ.js";
93
94
 
94
- // 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/app-server.js
95
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
95
96
  var EXCLUDED = [["mcp"]];
96
97
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
97
98
  const { app } = options;
@@ -209,7 +210,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
209
210
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
210
211
  const { app } = options;
211
212
  const { build } = createAppServer(command, context, options);
212
- const { serveOverHttp } = await import("./serve-THU67QUZ.js");
213
+ const { serveOverHttp } = await import("./serve-O4YUI7F6.js");
213
214
  const listening = await serveOverHttp(build, {
214
215
  ...http,
215
216
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-QR7JZM3D.js";
21
+ } from "./chunk-JOQGJUFT.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/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,18 +3,18 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-VAMCRP47.js";
7
- import "./chunk-LLYVBO3R.js";
8
- import "./chunk-GOMJNH56.js";
6
+ } from "./chunk-JMLIKXFO.js";
7
+ import "./chunk-FNLUKODV.js";
8
+ import "./chunk-X7J3TTDO.js";
9
9
  import {
10
10
  importFrom
11
11
  } from "./chunk-Y5E2WNWB.js";
12
- import "./chunk-DALBYUPC.js";
12
+ import "./chunk-VUBZFMGP.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/store/drivers/bun-sqlite.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
18
18
  var customised = false;
19
19
  var ownLibrary = /* @__PURE__ */ __name(async () => {
20
20
  try {
@@ -2,23 +2,23 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-5UKBUI4I.js";
5
+ } from "./chunk-B72343TK.js";
6
6
  import {
7
7
  resolvePaths
8
- } from "./chunk-LLYVBO3R.js";
8
+ } from "./chunk-FNLUKODV.js";
9
9
  import {
10
10
  CliError,
11
11
  singleLine
12
- } from "./chunk-DALBYUPC.js";
12
+ } from "./chunk-VUBZFMGP.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-ZVVMGPBJ.js";
16
16
 
17
- // 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/store/shared-config.js
17
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/store/shared-config.js
18
18
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
19
19
  import { dirname, join, resolve } from "node:path";
20
20
 
21
- // 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/domain/task-categories.js
21
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
22
22
  var DEFAULT_TASK_CATEGORIES = [
23
23
  {
24
24
  name: "taxes",
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
773
773
  }
774
774
  }, "storedTaskCategories");
775
775
 
776
- // 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/store/shared-config.js
776
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/store/shared-config.js
777
777
  var SECTION = "task_categories";
778
778
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
779
779
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  CliError,
5
5
  errorCodes
6
- } from "./chunk-DALBYUPC.js";
6
+ } from "./chunk-VUBZFMGP.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-ZVVMGPBJ.js";
10
10
 
11
- // 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/errors/failures.js
11
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/errors/failures.js
12
12
  var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
13
13
  var isCommanderFailure = /* @__PURE__ */ __name((value) => {
14
14
  const { code, exitCode } = value ?? {};
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  singleLine,
9
9
  visibleControls
10
- } from "./chunk-DALBYUPC.js";
10
+ } from "./chunk-VUBZFMGP.js";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/render/messages.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.630.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_4dc2b7e09a64a37f199c7e635efe1b87/node_modules/@wirecat/cli-core/dist/render/messages.js
16
16
  import { styleText } from "node:util";
17
17
  var TIME_WIDTH = 8;
18
18
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -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,