@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.
- package/CHANGELOG.md +23 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-FJHJCGRU.js → all-profiles-QEV2PSOR.js} +11 -11
- package/dist/bundle/{anthropic-AFL7NKVZ.js → anthropic-5NKQXIHM.js} +28 -12
- package/dist/bundle/{app-server-WKCBJMHI.js → app-server-G2CJNT4R.js} +62 -50
- package/dist/bundle/{bun-HQATAQJQ.js → bun-6HBYWQIX.js} +2 -2
- package/dist/bundle/{bun-sqlite-4ECAV7OU.js → bun-sqlite-DXIQ7BVR.js} +9 -5
- package/dist/bundle/{chunk-MUDHCYN4.js → chunk-37F6QYTO.js} +6 -6
- package/dist/bundle/{chunk-NMGF3UOZ.js → chunk-3XVR2ROR.js} +50 -46
- package/dist/bundle/{chunk-QUKD5SO2.js → chunk-434YOD6A.js} +4 -4
- package/dist/bundle/{chunk-7SWWVDEZ.js → chunk-4W4EVVL4.js} +61 -21
- package/dist/bundle/{chunk-CCYHBNRL.js → chunk-5QYK3LWS.js} +326 -56
- package/dist/bundle/{chunk-7YRKUEYE.js → chunk-5ZYFV6FD.js} +694 -228
- package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
- package/dist/bundle/{chunk-NOA6E6MM.js → chunk-A6BPOX5O.js} +38841 -24161
- package/dist/bundle/{chunk-34743C4C.js → chunk-ADKMBXY4.js} +1 -1
- package/dist/bundle/{chunk-2HXHAFRP.js → chunk-B7SWTH5O.js} +2 -2
- package/dist/bundle/{chunk-NKBAZ4VC.js → chunk-BC7PFQL7.js} +2 -2
- package/dist/bundle/{chunk-ROKTS7WM.js → chunk-CBYBZCQP.js} +1 -1
- package/dist/bundle/chunk-CIWWNBVW.js +188 -0
- package/dist/bundle/{chunk-SBGXKM4U.js → chunk-DIA56CS7.js} +8 -7
- package/dist/bundle/{chunk-VYHIX3OP.js → chunk-EXVY76VO.js} +61 -607
- package/dist/bundle/{chunk-BVJQBAGL.js → chunk-FZZD4AFY.js} +14 -14
- package/dist/bundle/{chunk-VFKX5UMJ.js → chunk-G5LHHAW2.js} +6 -6
- package/dist/bundle/{chunk-QV3M2MHG.js → chunk-GJRYZXBN.js} +13 -136
- package/dist/bundle/{chunk-GJNFNC76.js → chunk-GY4XCLCO.js} +10 -15
- package/dist/bundle/{chunk-V7CFZ773.js → chunk-HEIDAHRC.js} +2 -2
- package/dist/bundle/{chunk-AGNAT7CM.js → chunk-HEYVMAAQ.js} +2 -2
- package/dist/bundle/{chunk-HOKGIYUO.js → chunk-HJSJBNCJ.js} +119 -9
- package/dist/bundle/{chunk-KKGX7JMX.js → chunk-HLXVUMZJ.js} +2 -2
- package/dist/bundle/{chunk-OU5CWCG2.js → chunk-IACWKZWS.js} +1 -1
- package/dist/bundle/{chunk-QR7JZM3D.js → chunk-IXO4SCKE.js} +1 -1
- package/dist/bundle/{chunk-GOMJNH56.js → chunk-IZOYW4Z4.js} +32 -8
- package/dist/bundle/{chunk-WN4HP7IZ.js → chunk-J4OYK4WL.js} +14 -14
- package/dist/bundle/{chunk-76RTQYJQ.js → chunk-JG4MNYG2.js} +1 -1
- package/dist/bundle/{chunk-VAMCRP47.js → chunk-K2OGF7KC.js} +2 -2
- package/dist/bundle/chunk-K6HR6HCO.js +32 -0
- package/dist/bundle/{chunk-B6QMMRIM.js → chunk-KFB2X6KE.js} +1530 -1525
- package/dist/bundle/{chunk-3UFD76IR.js → chunk-KK4HD3SI.js} +6 -6
- package/dist/bundle/{chunk-3QVGB2CI.js → chunk-L4QVOEOB.js} +4 -4
- package/dist/bundle/chunk-LGZPKKBN.js +53 -0
- package/dist/bundle/chunk-LVGX7VTD.js +138 -0
- package/dist/bundle/chunk-MBFPFWCO.js +1243 -0
- package/dist/bundle/{chunk-3DQYO7FB.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-SR3ADLGX.js → chunk-MWGH3M46.js} +3 -3
- package/dist/bundle/{chunk-OJCUSHZG.js → chunk-ND5H5ADM.js} +4 -4
- package/dist/bundle/chunk-NMZQTYKJ.js +18 -0
- package/dist/bundle/{chunk-4YJJQNNJ.js → chunk-OLKCJBZY.js} +5 -5
- package/dist/bundle/{chunk-E7ZVKQHG.js → chunk-OLLIWNFG.js} +3 -3
- package/dist/bundle/{chunk-R5MYOLQP.js → chunk-P6GXNT7Z.js} +13 -13
- package/dist/bundle/{chunk-M7RGG3UU.js → chunk-PGC5TRH6.js} +3 -3
- package/dist/bundle/{chunk-3OZKDC6Y.js → chunk-PHHH2NQP.js} +15 -9
- package/dist/bundle/{chunk-S5OTP7XS.js → chunk-PP3YOAWG.js} +3 -3
- package/dist/bundle/{chunk-4IFX4HV2.js → chunk-PQMJ5BXH.js} +4 -4
- package/dist/bundle/{chunk-ZXIPJF3Y.js → chunk-QB3DP2TN.js} +2 -2
- package/dist/bundle/{chunk-4IWJARFA.js → chunk-QQUY4MZY.js} +1 -1
- package/dist/bundle/{chunk-UHC5I3JV.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-CYQVWITQ.js → chunk-S2QRAKQI.js} +99 -42
- package/dist/bundle/{chunk-V3TDQUXD.js → chunk-SMTBV62X.js} +44 -60
- package/dist/bundle/{chunk-SNTLN2QT.js → chunk-T27IMG6X.js} +3 -1
- package/dist/bundle/{chunk-LLYVBO3R.js → chunk-TY644DKQ.js} +19 -19
- package/dist/bundle/{chunk-R554W7ZO.js → chunk-U6IQ6YQ2.js} +2 -2
- package/dist/bundle/{chunk-MBKNL5TX.js → chunk-VFU7PVPQ.js} +373 -133
- package/dist/bundle/{chunk-UMXVQIGD.js → chunk-VL6H2BND.js} +377 -12
- package/dist/bundle/{chunk-DALBYUPC.js → chunk-VUBZFMGP.js} +2 -2
- package/dist/bundle/{chunk-VYIIX6VN.js → chunk-WOAYHCM2.js} +1 -1
- package/dist/bundle/{chunk-LQDMUMA2.js → chunk-WX6OYVCH.js} +5370 -3700
- package/dist/bundle/chunk-XMDEM6BZ.js +2094 -0
- package/dist/bundle/{chunk-CUOCDJFI.js → chunk-XQYKIZMG.js} +13 -9
- package/dist/bundle/{chunk-PMIKRELC.js → chunk-YNS2YVUR.js} +69 -6
- package/dist/bundle/{chunk-CBWA2T3N.js → chunk-Z5T6OW3V.js} +14 -5
- package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
- package/dist/bundle/command-server-entry-XMSSY5ID.js +165 -0
- package/dist/bundle/{decode-QXKTMOTH.js → decode-RYGB4PGT.js} +5 -5
- package/dist/bundle/{dispatch-G4CYFWQ2.js → dispatch-PLQOIZG5.js} +10 -10
- package/dist/bundle/{dist-5FX36DAW.js → dist-GY2AQETI.js} +79 -46
- package/dist/bundle/{echarts-HHUM43TU.js → echarts-7CM2MCMW.js} +2 -2
- package/dist/bundle/{embed-SRZSDZVI.js → embed-FTBDPOPT.js} +6 -6
- package/dist/bundle/{embedder-WZIZCWLX.js → embedder-B43WGNBD.js} +9 -9
- package/dist/bundle/{failure-FFPK2WYB.js → failure-XP5QYV2T.js} +2 -2
- package/dist/bundle/{first-run-6DVWZ3JQ.js → first-run-XIIUARNM.js} +12 -11
- package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
- package/dist/bundle/{instructions-UWONE6UT.js → instructions-R7OHVAWH.js} +1 -1
- package/dist/bundle/mail.js +37 -13
- package/dist/bundle/{mcp-CFVG2OUS.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-HLAOYJDB.js → node-3N2JGZ7V.js} +2 -2
- package/dist/bundle/{node-sqlite-RO66I7W6.js → node-sqlite-WFJXW3CZ.js} +10 -6
- package/dist/bundle/{oauth-VNLB2TET.js → oauth-SVJLQTWV.js} +7 -7
- package/dist/bundle/{open-QQSG343L.js → open-ZDONVKSX.js} +5 -5
- package/dist/bundle/{openai-JTFC7OGF.js → openai-XVEW6XOU.js} +21 -38
- package/dist/bundle/{process-3CZAXR6P.js → process-YAHHUFR5.js} +1 -1
- package/dist/bundle/{program-XTOS4RAM.js → program-HU2UVMJE.js} +7071 -5421
- package/dist/bundle/{prompt-HGQ6GPYL.js → prompt-JAJ2CUJI.js} +5 -5
- package/dist/bundle/{recognize-2SHMNEIZ.js → recognize-UFBWUNFR.js} +4 -4
- package/dist/bundle/{remote-GBQC3433.js → remote-2GFOVLCR.js} +9 -7
- package/dist/bundle/{rerank-FQHQXFNR.js → rerank-BGPSMXTL.js} +7 -7
- package/dist/bundle/{serve-THU67QUZ.js → serve-CB3XJTH3.js} +9 -9
- package/dist/bundle/server-34GEF22R.js +68 -0
- package/dist/bundle/{server-LOT3CLYX.js → server-M7FQY7TX.js} +42 -40
- package/dist/bundle/{sqlite-runtime-NOOUMBC4.js → sqlite-runtime-AEV6PGDR.js} +6 -6
- package/dist/bundle/{state-KSKZCV2U.js → state-YLBEQLBI.js} +6 -6
- package/dist/bundle/{store-BAKSHTKF.js → store-CDUL3HKK.js} +19 -16
- package/dist/bundle/{store-OHNZOQ7U.js → store-EKWKY6GG.js} +49 -20
- package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-5UKBUI4I.js +0 -35
- package/dist/bundle/chunk-EXPR6QAX.js +0 -394
- package/dist/bundle/chunk-FWFNUJQD.js +0 -12172
- package/dist/bundle/command-contract-IIHBNF7J.js +0 -35
- package/dist/bundle/first-screen-SRZ7NYHZ.js +0 -33
- package/dist/bundle/server-VKMUX7ZT.js +0 -65
- package/dist/bundle/store-maintenance-command-ROQHJVEA.js +0 -54
- /package/dist/bundle/{chunk-QZLK2ISN.js → chunk-YVNHQFLC.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.25.0 — 13.11.2026
|
|
6
|
+
|
|
7
|
+
### Changed — may break callers
|
|
8
|
+
|
|
9
|
+
- **Built on cli-core 0.647.0** (was 0.630.0). The store moves to a newer version on first open (additive). Lists
|
|
10
|
+
read from cli-core are `ListResult`s, `doctor reports show` and `doctor reports create` write a problem report to
|
|
11
|
+
send, and a `crm.<provider>:<account>.activities` setting is offered. What changed in between is in
|
|
12
|
+
[cli-core's changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).
|
|
13
|
+
- **Model calls stay on this computer when you ask.** With the local-only switch on (`memo models local-only set on`),
|
|
14
|
+
every model call cli-core makes for mail, remote embeddings included, refuses an address that is not this computer
|
|
15
|
+
before anything is sent. Plain `http://` is now accepted only to this computer, so records never cross the network
|
|
16
|
+
unencrypted; use https or run the model locally.
|
|
17
|
+
|
|
18
|
+
## 0.24.0 — 10.11.2026
|
|
19
|
+
|
|
20
|
+
### Changed — may break callers
|
|
21
|
+
|
|
22
|
+
- **Built on cli-core 0.630.0** (was 0.618.0). The store moves to version 63 on first open. A mailbox you connect
|
|
23
|
+
under another person's name is no longer joined to you: it waits for you as a proposal. What changed in between is
|
|
24
|
+
in [cli-core's changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).
|
|
25
|
+
- **`schedule pause <name>` and `schedule resume <name>`** take a schedule off its timer and keep it; `schedule run`
|
|
26
|
+
still runs it. `--at` repeats: `--at 08:30 --at 18:00` runs twice a day.
|
|
27
|
+
|
|
5
28
|
## 0.23.1 — 08.11.2026
|
|
6
29
|
|
|
7
30
|
### 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.
|
|
12
|
+
process.stdout.write("0.25.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-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-QEV2PSOR.js","../bundle/anthropic-5NKQXIHM.js","../bundle/app-server-G2CJNT4R.js","../bundle/bun-6HBYWQIX.js","../bundle/bun-sqlite-DXIQ7BVR.js","../bundle/decode-RYGB4PGT.js","../bundle/dispatch-PLQOIZG5.js","../bundle/dist-GY2AQETI.js","../bundle/dist-HFUVURJG.js","../bundle/echarts-7CM2MCMW.js","../bundle/embed-FTBDPOPT.js","../bundle/embedder-B43WGNBD.js","../bundle/failure-XP5QYV2T.js","../bundle/first-screen-Z7HC6PQU.js","../bundle/instructions-R7OHVAWH.js","../bundle/mcp-7KQUJNFN.js","../bundle/node-3N2JGZ7V.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-WFJXW3CZ.js","../bundle/oauth-SVJLQTWV.js","../bundle/open-ZDONVKSX.js","../bundle/openai-XVEW6XOU.js","../bundle/process-YAHHUFR5.js","../bundle/program-HU2UVMJE.js","../bundle/prompt-JAJ2CUJI.js","../bundle/recognize-UFBWUNFR.js","../bundle/remote-2GFOVLCR.js","../bundle/rerank-BGPSMXTL.js","../bundle/serve-CB3XJTH3.js","../bundle/server-34GEF22R.js","../bundle/server-M7FQY7TX.js","../bundle/sqlite-runtime-AEV6PGDR.js","../bundle/state-YLBEQLBI.js","../bundle/store-CDUL3HKK.js","../bundle/store-EKWKY6GG.js","../bundle/store-maintenance-command-XH2JUM5F.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-
|
|
5
|
+
} from "./chunk-QQUY4MZY.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-
|
|
12
|
+
} from "./chunk-HLXVUMZJ.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XQYKIZMG.js";
|
|
17
|
+
import "./chunk-U6IQ6YQ2.js";
|
|
18
|
+
import "./chunk-CBYBZCQP.js";
|
|
19
|
+
import "./chunk-YVNHQFLC.js";
|
|
20
|
+
import "./chunk-TY644DKQ.js";
|
|
21
|
+
import "./chunk-IZOYW4Z4.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
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.
|
|
28
|
+
// 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/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-
|
|
262
|
+
const { serveOverHttp } = await import("./serve-CB3XJTH3.js");
|
|
263
263
|
const listening = await serveOverHttp(build, {
|
|
264
264
|
...http,
|
|
265
265
|
appName: options.command,
|
|
@@ -4,26 +4,36 @@ import {
|
|
|
4
4
|
Anthropic
|
|
5
5
|
} from "./chunk-XQUUANA2.js";
|
|
6
6
|
import {
|
|
7
|
+
EmptyAnswer,
|
|
7
8
|
checkedOptions,
|
|
8
9
|
messagesFor,
|
|
9
10
|
systemFor
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-Z5T6OW3V.js";
|
|
12
|
+
import "./chunk-TY644DKQ.js";
|
|
12
13
|
import {
|
|
13
14
|
array,
|
|
15
|
+
literal,
|
|
14
16
|
optional,
|
|
17
|
+
picklist,
|
|
18
|
+
record,
|
|
15
19
|
strictObject,
|
|
16
|
-
string
|
|
17
|
-
|
|
20
|
+
string,
|
|
21
|
+
unknown
|
|
22
|
+
} from "./chunk-IZOYW4Z4.js";
|
|
18
23
|
import "./chunk-Y5E2WNWB.js";
|
|
19
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VUBZFMGP.js";
|
|
20
25
|
import {
|
|
21
26
|
__name
|
|
22
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
28
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// 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/models/anthropic.js
|
|
25
30
|
var options = strictObject({
|
|
26
|
-
stop_sequences: optional(array(string()))
|
|
31
|
+
stop_sequences: optional(array(string())),
|
|
32
|
+
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
33
|
+
output_config: optional(strictObject({
|
|
34
|
+
effort: optional(picklist(["low", "medium", "high"])),
|
|
35
|
+
format: optional(strictObject({ type: literal("json_schema"), schema: record(string(), unknown()) }))
|
|
36
|
+
}))
|
|
27
37
|
});
|
|
28
38
|
var anthropic = {
|
|
29
39
|
images: true,
|
|
@@ -48,10 +58,13 @@ var anthropic = {
|
|
|
48
58
|
...request.images === void 0 ? [] : [
|
|
49
59
|
{
|
|
50
60
|
role: "user",
|
|
51
|
-
content:
|
|
52
|
-
type: "
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
content: [
|
|
62
|
+
{ type: "text", text: request.prompt },
|
|
63
|
+
...request.images.map((image) => ({
|
|
64
|
+
type: "image",
|
|
65
|
+
source: { type: "base64", media_type: image.mimeType, data: image.data }
|
|
66
|
+
}))
|
|
67
|
+
]
|
|
55
68
|
}
|
|
56
69
|
]
|
|
57
70
|
],
|
|
@@ -59,8 +72,11 @@ var anthropic = {
|
|
|
59
72
|
}).finalMessage();
|
|
60
73
|
if (response.stop_reason !== "end_turn")
|
|
61
74
|
throw new Error("incomplete response");
|
|
75
|
+
const text = response.content.filter((block) => block.type === "text").map((block) => block.text).join("");
|
|
76
|
+
if (text.trim() === "")
|
|
77
|
+
throw new EmptyAnswer();
|
|
62
78
|
return {
|
|
63
|
-
text
|
|
79
|
+
text,
|
|
64
80
|
usage: {
|
|
65
81
|
input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
|
|
66
82
|
output: response.usage.output_tokens
|
|
@@ -3,46 +3,47 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3XVR2ROR.js";
|
|
7
|
+
import {
|
|
8
|
+
mcpUrlOf
|
|
9
|
+
} from "./chunk-SMTBV62X.js";
|
|
10
|
+
import "./chunk-NMZQTYKJ.js";
|
|
7
11
|
import {
|
|
8
12
|
answered,
|
|
9
13
|
failed,
|
|
10
14
|
registerCommands,
|
|
11
15
|
runCommandForAgent,
|
|
12
16
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
mcpUrlOf
|
|
16
|
-
} from "./chunk-V3TDQUXD.js";
|
|
17
|
+
} from "./chunk-5QYK3LWS.js";
|
|
17
18
|
import {
|
|
18
19
|
agentJson,
|
|
19
20
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-FZZD4AFY.js";
|
|
22
|
+
import "./chunk-HJSJBNCJ.js";
|
|
22
23
|
import {
|
|
23
24
|
appInstructions
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WOAYHCM2.js";
|
|
25
26
|
import {
|
|
26
27
|
answeredWire
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QQUY4MZY.js";
|
|
28
29
|
import {
|
|
29
30
|
StdioServerTransport,
|
|
30
31
|
serveStdio
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HLXVUMZJ.js";
|
|
32
33
|
import {
|
|
33
34
|
McpServer
|
|
34
35
|
} from "./chunk-5D4AEUVA.js";
|
|
35
36
|
import {
|
|
36
37
|
mcpHttpMarker
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-PQMJ5BXH.js";
|
|
39
|
+
import "./chunk-EXVY76VO.js";
|
|
40
|
+
import "./chunk-WX6OYVCH.js";
|
|
41
|
+
import "./chunk-P6GXNT7Z.js";
|
|
42
|
+
import "./chunk-GJRYZXBN.js";
|
|
43
|
+
import "./chunk-Z5T6OW3V.js";
|
|
44
|
+
import "./chunk-PGC5TRH6.js";
|
|
45
|
+
import "./chunk-QB3DP2TN.js";
|
|
46
|
+
import "./chunk-OLKCJBZY.js";
|
|
46
47
|
import {
|
|
47
48
|
DEFAULT_OUTPUT_BYTES,
|
|
48
49
|
changesAuthorityAt,
|
|
@@ -52,47 +53,56 @@ import {
|
|
|
52
53
|
readOnlyLockOf,
|
|
53
54
|
readsOverMcpAt,
|
|
54
55
|
rootOf2 as rootOf
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-KFB2X6KE.js";
|
|
57
|
+
import "./chunk-DIA56CS7.js";
|
|
58
|
+
import "./chunk-XQYKIZMG.js";
|
|
59
|
+
import "./chunk-IACWKZWS.js";
|
|
60
|
+
import "./chunk-L4QVOEOB.js";
|
|
61
|
+
import "./chunk-MCPOZNWG.js";
|
|
62
|
+
import "./chunk-MWGH3M46.js";
|
|
63
|
+
import "./chunk-S2QRAKQI.js";
|
|
64
|
+
import "./chunk-OLLIWNFG.js";
|
|
65
|
+
import "./chunk-A6BPOX5O.js";
|
|
66
|
+
import "./chunk-XMDEM6BZ.js";
|
|
67
|
+
import "./chunk-MBFPFWCO.js";
|
|
68
|
+
import "./chunk-5ZYFV6FD.js";
|
|
69
|
+
import "./chunk-U6IQ6YQ2.js";
|
|
70
|
+
import "./chunk-CBYBZCQP.js";
|
|
71
|
+
import "./chunk-GY4XCLCO.js";
|
|
72
|
+
import "./chunk-7GLJSJ7M.js";
|
|
73
|
+
import "./chunk-YNS2YVUR.js";
|
|
74
|
+
import "./chunk-K6HR6HCO.js";
|
|
75
|
+
import "./chunk-KK4HD3SI.js";
|
|
76
|
+
import "./chunk-G5LHHAW2.js";
|
|
77
|
+
import "./chunk-434YOD6A.js";
|
|
78
|
+
import "./chunk-RX5CJ55S.js";
|
|
79
|
+
import "./chunk-YVNHQFLC.js";
|
|
78
80
|
import "./chunk-D72URWJE.js";
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-LGZPKKBN.js";
|
|
82
|
+
import "./chunk-37F6QYTO.js";
|
|
83
|
+
import "./chunk-T27IMG6X.js";
|
|
84
|
+
import "./chunk-TY644DKQ.js";
|
|
82
85
|
import {
|
|
83
86
|
mcpErrorResult
|
|
84
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-IZOYW4Z4.js";
|
|
85
88
|
import "./chunk-Y5E2WNWB.js";
|
|
86
89
|
import {
|
|
87
90
|
CliError
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import "./chunk-
|
|
91
|
+
} from "./chunk-VUBZFMGP.js";
|
|
92
|
+
import "./chunk-IXO4SCKE.js";
|
|
90
93
|
import {
|
|
91
94
|
__name
|
|
92
95
|
} from "./chunk-ZVVMGPBJ.js";
|
|
93
96
|
|
|
94
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// 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/app-server.js
|
|
95
98
|
var EXCLUDED = [["mcp"]];
|
|
99
|
+
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
100
|
+
let at = root;
|
|
101
|
+
for (const name of path)
|
|
102
|
+
at = at?.commands.find((child) => child.name() === name);
|
|
103
|
+
const aliases = at?.aliases() ?? [];
|
|
104
|
+
return aliases.length > 0 ? { aliases } : {};
|
|
105
|
+
}, "aliasesOf");
|
|
96
106
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
97
107
|
const { app } = options;
|
|
98
108
|
const root = rootOf(command);
|
|
@@ -129,6 +139,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
129
139
|
{
|
|
130
140
|
title: one.title,
|
|
131
141
|
description: one.description,
|
|
142
|
+
...one.keywords ? { keywords: one.keywords } : {},
|
|
143
|
+
...aliasesOf(root, one.path),
|
|
132
144
|
writes: one.writes,
|
|
133
145
|
availability: availability(one),
|
|
134
146
|
input: one.input,
|
|
@@ -209,7 +221,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
209
221
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
210
222
|
const { app } = options;
|
|
211
223
|
const { build } = createAppServer(command, context, options);
|
|
212
|
-
const { serveOverHttp } = await import("./serve-
|
|
224
|
+
const { serveOverHttp } = await import("./serve-CB3XJTH3.js");
|
|
213
225
|
const listening = await serveOverHttp(build, {
|
|
214
226
|
...http,
|
|
215
227
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IXO4SCKE.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// 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/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,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
} from "./chunk-K2OGF7KC.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-LGZPKKBN.js";
|
|
10
|
+
import "./chunk-TY644DKQ.js";
|
|
11
|
+
import "./chunk-IZOYW4Z4.js";
|
|
9
12
|
import {
|
|
10
13
|
importFrom
|
|
11
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VUBZFMGP.js";
|
|
13
16
|
import {
|
|
14
17
|
__name
|
|
15
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
19
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// 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/store/drivers/bun-sqlite.js
|
|
18
21
|
var customised = false;
|
|
19
22
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
20
23
|
try {
|
|
@@ -37,6 +40,7 @@ var bunDatabase = /* @__PURE__ */ __name(async () => {
|
|
|
37
40
|
}, "bunDatabase");
|
|
38
41
|
var openWithBunSqlite = /* @__PURE__ */ __name(async (path) => cacheOverBunSqlite(await bunClient(path)), "openWithBunSqlite");
|
|
39
42
|
var bunClient = /* @__PURE__ */ __name(async (path, options) => {
|
|
43
|
+
refuseOwnerStoreInTests(path);
|
|
40
44
|
const Database = await bunDatabase();
|
|
41
45
|
const extension = await vectorExtension();
|
|
42
46
|
const client = options ? new Database(path, options) : new Database(path);
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PRAGMAS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-T27IMG6X.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
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.
|
|
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/store/sqlite-warning.js
|
|
14
14
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
15
15
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
16
16
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -31,7 +31,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
31
31
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
32
32
|
}, "isSqliteWarning");
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// 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/store/open.js
|
|
35
35
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
36
36
|
const database = await openFile(path);
|
|
37
37
|
try {
|
|
@@ -44,12 +44,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
44
44
|
}, "openCache");
|
|
45
45
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
46
46
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
47
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
47
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-DXIQ7BVR.js");
|
|
48
48
|
return await openWithBunSqlite(path);
|
|
49
49
|
}, "openUnderBun");
|
|
50
50
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
51
51
|
quietSqliteWarning();
|
|
52
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
52
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-WFJXW3CZ.js");
|
|
53
53
|
return openWithNodeSqlite(path);
|
|
54
54
|
}, "openUnderNode");
|
|
55
55
|
var runtime = /* @__PURE__ */ __name(() => {
|