@wirecat/mail-cli 0.4.0 → 0.5.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 +8 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-55XPXQHY.js → all-profiles-GR5JXYEQ.js} +5 -5
- package/dist/bundle/{anthropic-K5B6I4LB.js → anthropic-REBXE65F.js} +3 -3
- package/dist/bundle/{app-server-VWWLQLTZ.js → app-server-QJ7ICQXZ.js} +39 -39
- package/dist/bundle/{bun-EO7AI6YP.js → bun-WAX4QHW5.js} +2 -2
- package/dist/bundle/{bun-sqlite-F24A4IOP.js → bun-sqlite-5S7TQ4SG.js} +2 -2
- package/dist/bundle/{chunk-5RUTHKXZ.js → chunk-2FXVBCA3.js} +3 -3
- package/dist/bundle/{chunk-UO7X2VW4.js → chunk-2MRECWJZ.js} +5 -5
- package/dist/bundle/{chunk-BHKI5OCD.js → chunk-2U4IANVV.js} +1 -1
- package/dist/bundle/{chunk-6BNMEOVS.js → chunk-2YQNBIDQ.js} +3 -3
- package/dist/bundle/{chunk-HORM6VRV.js → chunk-4BMNP2FT.js} +1 -1
- package/dist/bundle/{chunk-M4NTQ247.js → chunk-4XJ4AM3K.js} +10 -10
- package/dist/bundle/{chunk-X7AXH2IC.js → chunk-5CXAH4Y6.js} +195 -195
- package/dist/bundle/{chunk-YYTWV5GU.js → chunk-5FK6RD4M.js} +42 -42
- package/dist/bundle/{chunk-VWHRIGYJ.js → chunk-5INWLYBD.js} +2 -2
- package/dist/bundle/{chunk-EDKV6D6T.js → chunk-6EO7GVYJ.js} +1 -1
- package/dist/bundle/{chunk-IIO6NXCA.js → chunk-6GE3EADU.js} +2 -2
- package/dist/bundle/{chunk-RLSGMMGC.js → chunk-6TY3DGCC.js} +4 -4
- package/dist/bundle/{chunk-JKHI3PH7.js → chunk-7A7BHABA.js} +1 -1
- package/dist/bundle/{chunk-SY3SP7EI.js → chunk-7F3NDIYL.js} +5 -5
- package/dist/bundle/{chunk-ANRI6EZY.js → chunk-7JCRQX56.js} +7 -7
- package/dist/bundle/{chunk-MGBGE2Y4.js → chunk-7XNPSIWD.js} +2 -2
- package/dist/bundle/{chunk-7IYDIU4P.js → chunk-AFCGOZR7.js} +5 -5
- package/dist/bundle/{chunk-ID24SLH3.js → chunk-B5WSIWY5.js} +16 -16
- package/dist/bundle/{chunk-HJEMHZRU.js → chunk-BFJV4FWJ.js} +1 -1
- package/dist/bundle/{chunk-LKDK5YMI.js → chunk-BLS5YG77.js} +1 -1
- package/dist/bundle/{chunk-UJYCKCFR.js → chunk-CEAANMJ2.js} +2 -2
- package/dist/bundle/{chunk-7QQ4EMYF.js → chunk-DXDQOZ2P.js} +2 -2
- package/dist/bundle/{chunk-NL5LNYGX.js → chunk-EB3R2PV3.js} +21 -21
- package/dist/bundle/{chunk-VWXCEEUH.js → chunk-EL554DV2.js} +2 -2
- package/dist/bundle/{chunk-JZFIHVRB.js → chunk-ESNNQA7D.js} +26 -26
- package/dist/bundle/{chunk-ZAR67WKR.js → chunk-F3NYA4KN.js} +5 -5
- package/dist/bundle/{chunk-QYWDC7NP.js → chunk-FSUNGHRI.js} +43 -43
- package/dist/bundle/{chunk-EOEYP7CJ.js → chunk-HCMUGUAG.js} +2 -2
- package/dist/bundle/{chunk-HUB42T2Z.js → chunk-IBYTYIYO.js} +46 -46
- package/dist/bundle/{chunk-CCNHVZ3G.js → chunk-IWDOGGMY.js} +246 -246
- package/dist/bundle/{chunk-WFBTPZK3.js → chunk-JJBQPA7D.js} +3 -3
- package/dist/bundle/{chunk-7X64JS6S.js → chunk-KIDF77MA.js} +1 -1
- package/dist/bundle/{chunk-2ADB5DSG.js → chunk-LFRHIXCF.js} +2 -2
- package/dist/bundle/{chunk-FFKNUVVD.js → chunk-LNS27BTB.js} +1 -1
- package/dist/bundle/{chunk-F7KAJNNK.js → chunk-LOA4X6JW.js} +4 -4
- package/dist/bundle/{chunk-4KLJN3LK.js → chunk-M6BDHZON.js} +11 -11
- package/dist/bundle/{chunk-F6JTOQIK.js → chunk-MMDCL42A.js} +4 -4
- package/dist/bundle/{chunk-SWRNMYDL.js → chunk-MQUJEQTU.js} +1 -1
- package/dist/bundle/{chunk-CSI73XJ5.js → chunk-PJCTWPJB.js} +6 -6
- package/dist/bundle/{chunk-CADRRSQK.js → chunk-QXOSGGKS.js} +1 -1
- package/dist/bundle/{chunk-VP5GCMHM.js → chunk-S677WGOQ.js} +5 -5
- package/dist/bundle/{chunk-2NZGUKYK.js → chunk-SQ7KOBRA.js} +6 -6
- package/dist/bundle/{chunk-UZDHK26H.js → chunk-SWJAG5IE.js} +1 -1
- package/dist/bundle/{chunk-OM4ZBLT7.js → chunk-VDAIJM5L.js} +13 -13
- package/dist/bundle/{chunk-ORYYYM5Y.js → chunk-VXAZZGXE.js} +21 -21
- package/dist/bundle/{chunk-2LP46EUH.js → chunk-WNCCYHRV.js} +91 -91
- package/dist/bundle/{chunk-H7K2DN3R.js → chunk-WNI5BZFB.js} +7 -7
- package/dist/bundle/{chunk-XJ5TBPCK.js → chunk-YD5WV757.js} +1 -1
- package/dist/bundle/{chunk-YSSMDVT3.js → chunk-YKPBC3NL.js} +1 -1
- package/dist/bundle/{chunk-6BR6JMCR.js → chunk-YRGBZZUW.js} +9 -9
- package/dist/bundle/{command-contract-L65UZ7AF.js → command-contract-GPUED3GT.js} +13 -13
- package/dist/bundle/{decode-ON4KBMEX.js → decode-D7BDVIVB.js} +2 -2
- package/dist/bundle/{dist-FMN7UZ7R.js → dist-KJOAJ6NF.js} +14 -14
- package/dist/bundle/{echarts-XPA226QR.js → echarts-IVRX7XHP.js} +2 -2
- package/dist/bundle/{embed-QERDAB73.js → embed-X527RBTG.js} +3 -3
- package/dist/bundle/{embedder-I76YT3E5.js → embedder-F4PSJS6S.js} +6 -6
- package/dist/bundle/{first-run-KZJFR55N.js → first-run-M5CIX6NA.js} +5 -5
- package/dist/bundle/{first-screen-EORANEAK.js → first-screen-M7MT776O.js} +14 -14
- package/dist/bundle/{instructions-NN3BCFIM.js → instructions-UX36BT5F.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-2S75QJ6B.js → node-OXT7WE2T.js} +2 -2
- package/dist/bundle/{node-sqlite-RC7WM3EG.js → node-sqlite-X2PSEHA4.js} +2 -2
- package/dist/bundle/{oauth-FUHLZCKV.js → oauth-MYK4BSYN.js} +4 -4
- package/dist/bundle/{open-JOKT7LKY.js → open-GONIP2DH.js} +1 -1
- package/dist/bundle/{openai-U3IMQ6UI.js → openai-YJFNUOQT.js} +10 -10
- package/dist/bundle/{process-LKODK722.js → process-7IEUUSRK.js} +1 -1
- package/dist/bundle/{program-RMLIQXCA.js → program-Q73TTG3E.js} +291 -288
- package/dist/bundle/{prompt-23VYMNNB.js → prompt-SKQ72KN7.js} +2 -2
- package/dist/bundle/{recognize-TXO3462R.js → recognize-GC7CU2DB.js} +1 -1
- package/dist/bundle/{remote-5F4ZOASM.js → remote-UEXFZP2I.js} +4 -4
- package/dist/bundle/{rerank-TXSDPEFE.js → rerank-2U2NDEZP.js} +4 -4
- package/dist/bundle/{serve-TWYECYWM.js → serve-OOGKFEWL.js} +6 -6
- package/dist/bundle/server-4JMHDHZ7.js +63 -0
- package/dist/bundle/{server-3S3BKE6D.js → server-FZ3LFQTF.js} +31 -31
- package/dist/bundle/{sqlite-runtime-BEOBGC6K.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
- package/dist/bundle/{state-ERWIUTQQ.js → state-EMFXPQVZ.js} +3 -3
- package/dist/bundle/{store-4RY5UMOP.js → store-BDU4UPNK.js} +11 -11
- package/dist/bundle/{store-2JO4JGQL.js → store-LDI62AUG.js} +9 -9
- package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/server-2GEAXKX2.js +0 -63
- package/dist/bundle/store-maintenance-command-T7D4OTN7.js +0 -52
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.5.0 — 01.11.2026
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **A scheduled sync runs from its timer.** The timer starts `mail schedule exec <file>` with no profile, and mail refused it
|
|
10
|
+
with "name a profile" before reading the schedule, so no timed run worked in 0.3.0 and 0.4.0. `schedule exec` now needs
|
|
11
|
+
no profile; the schedule's own environment names it (cli-core 0.521.0).
|
|
12
|
+
|
|
5
13
|
## 0.4.0 — 01.11.2026
|
|
6
14
|
|
|
7
15
|
### 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.5.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -29,7 +29,7 @@ if (
|
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
31
|
const running = import("../bundle/mail.js")
|
|
32
|
-
const chunks = ["../bundle/all-profiles-
|
|
32
|
+
const chunks = ["../bundle/all-profiles-GR5JXYEQ.js","../bundle/anthropic-REBXE65F.js","../bundle/app-server-QJ7ICQXZ.js","../bundle/bun-WAX4QHW5.js","../bundle/bun-sqlite-5S7TQ4SG.js","../bundle/decode-D7BDVIVB.js","../bundle/dispatch-EUKKT3PD.js","../bundle/dist-HFUVURJG.js","../bundle/dist-KJOAJ6NF.js","../bundle/echarts-IVRX7XHP.js","../bundle/embed-X527RBTG.js","../bundle/embedder-F4PSJS6S.js","../bundle/failure-OAIC5VAP.js","../bundle/first-screen-M7MT776O.js","../bundle/instructions-UX36BT5F.js","../bundle/mcp-L7SRVDRN.js","../bundle/node-KM3CUABH.js","../bundle/node-OXT7WE2T.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-X2PSEHA4.js","../bundle/oauth-MYK4BSYN.js","../bundle/open-GONIP2DH.js","../bundle/openai-YJFNUOQT.js","../bundle/process-7IEUUSRK.js","../bundle/program-Q73TTG3E.js","../bundle/prompt-SKQ72KN7.js","../bundle/recognize-GC7CU2DB.js","../bundle/remote-UEXFZP2I.js","../bundle/rerank-2U2NDEZP.js","../bundle/serve-OOGKFEWL.js","../bundle/server-4JMHDHZ7.js","../bundle/server-FZ3LFQTF.js","../bundle/sqlite-runtime-GIQSW6LJ.js","../bundle/state-EMFXPQVZ.js","../bundle/store-BDU4UPNK.js","../bundle/store-LDI62AUG.js","../bundle/store-maintenance-command-OFRPORN2.js"]
|
|
33
33
|
// After the server answers its first request, so it starts no later.
|
|
34
34
|
if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
|
|
35
35
|
await running
|
|
@@ -2,18 +2,18 @@ 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-7A7BHABA.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-7XNPSIWD.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WNI5BZFB.js";
|
|
17
17
|
import "./chunk-NPGVOZVK.js";
|
|
18
18
|
import "./chunk-J3QXTBD2.js";
|
|
19
19
|
import "./chunk-LQ37ALDJ.js";
|
|
@@ -23,7 +23,7 @@ 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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import { randomUUID } from "node:crypto";
|
|
29
29
|
var PROTOCOL = "2025-06-18";
|
|
@@ -257,7 +257,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
257
257
|
}, "serveAllProfilesOverStdio");
|
|
258
258
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
259
259
|
const { build, close } = allProfilesServer(options);
|
|
260
|
-
const { serveOverHttp } = await import("./serve-
|
|
260
|
+
const { serveOverHttp } = await import("./serve-OOGKFEWL.js");
|
|
261
261
|
const listening = await serveOverHttp(build, {
|
|
262
262
|
...http,
|
|
263
263
|
appName: options.command,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "./chunk-XQUUANA2.js";
|
|
6
6
|
import {
|
|
7
7
|
checkedOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LNS27BTB.js";
|
|
9
9
|
import {
|
|
10
10
|
messagesFor,
|
|
11
11
|
systemFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2U4IANVV.js";
|
|
13
13
|
import "./chunk-J3QXTBD2.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
@@ -23,7 +23,7 @@ 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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
27
27
|
var options = strictObject({
|
|
28
28
|
stop_sequences: optional(array(string()))
|
|
29
29
|
});
|
|
@@ -3,43 +3,43 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESNNQA7D.js";
|
|
7
7
|
import {
|
|
8
8
|
answered,
|
|
9
9
|
failed,
|
|
10
10
|
registerCommands,
|
|
11
11
|
runCommandForAgent,
|
|
12
12
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VDAIJM5L.js";
|
|
14
14
|
import {
|
|
15
15
|
mcpUrlOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VXAZZGXE.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-YRGBZZUW.js";
|
|
21
|
+
import "./chunk-5INWLYBD.js";
|
|
22
22
|
import {
|
|
23
23
|
appInstructions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6EO7GVYJ.js";
|
|
25
25
|
import {
|
|
26
26
|
answeredWire
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7A7BHABA.js";
|
|
28
28
|
import {
|
|
29
29
|
StdioServerTransport,
|
|
30
30
|
serveStdio
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7XNPSIWD.js";
|
|
32
32
|
import {
|
|
33
33
|
McpServer
|
|
34
34
|
} from "./chunk-5D4AEUVA.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-EB3R2PV3.js";
|
|
36
|
+
import "./chunk-5CXAH4Y6.js";
|
|
37
|
+
import "./chunk-M6BDHZON.js";
|
|
38
|
+
import "./chunk-S677WGOQ.js";
|
|
39
|
+
import "./chunk-2U4IANVV.js";
|
|
40
|
+
import "./chunk-BFJV4FWJ.js";
|
|
41
|
+
import "./chunk-AFCGOZR7.js";
|
|
42
|
+
import "./chunk-WNCCYHRV.js";
|
|
43
43
|
import {
|
|
44
44
|
DEFAULT_OUTPUT_BYTES,
|
|
45
45
|
changesAuthorityAt,
|
|
@@ -49,34 +49,34 @@ import {
|
|
|
49
49
|
judgedTargets,
|
|
50
50
|
readOnlyLockOf,
|
|
51
51
|
rootOf2 as rootOf
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-IBYTYIYO.js";
|
|
53
|
+
import "./chunk-MMDCL42A.js";
|
|
54
|
+
import "./chunk-WNI5BZFB.js";
|
|
55
55
|
import "./chunk-ZD3WUGR2.js";
|
|
56
56
|
import "./chunk-P7P5MNAU.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-EL554DV2.js";
|
|
58
58
|
import {
|
|
59
59
|
mcpHttpMarker
|
|
60
|
-
} from "./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-
|
|
60
|
+
} from "./chunk-6TY3DGCC.js";
|
|
61
|
+
import "./chunk-HCMUGUAG.js";
|
|
62
|
+
import "./chunk-QXOSGGKS.js";
|
|
63
|
+
import "./chunk-CEAANMJ2.js";
|
|
64
|
+
import "./chunk-B5WSIWY5.js";
|
|
65
|
+
import "./chunk-2FXVBCA3.js";
|
|
66
|
+
import "./chunk-IWDOGGMY.js";
|
|
67
|
+
import "./chunk-7F3NDIYL.js";
|
|
68
|
+
import "./chunk-SQ7KOBRA.js";
|
|
69
|
+
import "./chunk-5FK6RD4M.js";
|
|
70
70
|
import "./chunk-NPGVOZVK.js";
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-7JCRQX56.js";
|
|
72
|
+
import "./chunk-LOA4X6JW.js";
|
|
73
|
+
import "./chunk-2MRECWJZ.js";
|
|
74
|
+
import "./chunk-KIDF77MA.js";
|
|
75
75
|
import "./chunk-QX7RCLRS.js";
|
|
76
76
|
import "./chunk-D72URWJE.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-F3NYA4KN.js";
|
|
78
|
+
import "./chunk-JJBQPA7D.js";
|
|
79
|
+
import "./chunk-SWJAG5IE.js";
|
|
80
80
|
import "./chunk-J3QXTBD2.js";
|
|
81
81
|
import {
|
|
82
82
|
mcpErrorResult
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
__name
|
|
90
90
|
} from "./chunk-ZVVMGPBJ.js";
|
|
91
91
|
|
|
92
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
92
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
93
93
|
var EXCLUDED = [["mcp"]];
|
|
94
94
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
95
95
|
const { app } = options;
|
|
@@ -204,7 +204,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
204
204
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
205
205
|
const { app } = options;
|
|
206
206
|
const { build } = createAppServer(command, context, options);
|
|
207
|
-
const { serveOverHttp } = await import("./serve-
|
|
207
|
+
const { serveOverHttp } = await import("./serve-OOGKFEWL.js");
|
|
208
208
|
const listening = await serveOverHttp(build, {
|
|
209
209
|
...http,
|
|
210
210
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KIDF77MA.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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MQUJEQTU.js";
|
|
7
7
|
import "./chunk-J3QXTBD2.js";
|
|
8
8
|
import "./chunk-LQ37ALDJ.js";
|
|
9
9
|
import {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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 {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
unknown
|
|
21
21
|
} from "./chunk-LQ37ALDJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
24
24
|
var text = string();
|
|
25
25
|
var id = pipe(string(), minLength(1));
|
|
26
26
|
var time = isoTime;
|
|
@@ -44,7 +44,7 @@ var author = strictObject({
|
|
|
44
44
|
name: nullable(text)
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
48
48
|
var organization = strictObject({
|
|
49
49
|
id,
|
|
50
50
|
ref: reference,
|
|
@@ -74,7 +74,7 @@ var reminder = strictObject({
|
|
|
74
74
|
receipt: nullable(text)
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
78
78
|
var link = {
|
|
79
79
|
target_text: nullable(text),
|
|
80
80
|
kind: text,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-5S7TQ4SG.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-X2PSEHA4.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -10,10 +10,10 @@ 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.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/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;
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EL554DV2.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7JCRQX56.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LOA4X6JW.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
21
|
} from "./chunk-QX7RCLRS.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SWJAG5IE.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-LDI62AUG.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-GONIP2DH.js"),
|
|
117
|
+
import("./store-maintenance-command-OFRPORN2.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-M7MT776O.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-SKQ72KN7.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|