@wirecat/mail-cli 0.12.0 → 0.14.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 +38 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
- package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
- package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
- package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
- package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
- package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
- package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
- package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
- package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
- package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
- package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
- package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
- package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
- package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
- package/dist/bundle/chunk-DIP3ENSY.js +34 -0
- package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
- package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
- package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
- package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
- package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
- package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
- package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
- package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
- package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
- package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
- package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
- package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
- package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
- package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
- package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
- package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
- package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
- package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
- package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
- package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
- package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
- package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
- package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
- package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
- package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
- package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
- package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
- package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
- package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
- package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
- package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
- package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
- package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
- package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
- package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
- package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
- package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
- package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
- package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
- package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
- package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
- package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
- package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
- package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
- package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
- package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
- package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
- package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
- package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
- package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
- package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
- package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
- package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +12 -7
- package/dist/commands/status.js.map +1 -1
- package/dist/config.d.ts +2 -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-MDIRW3AT.js +0 -18
- package/dist/bundle/command-contract-TW44FY47.js +0 -33
- package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
- package/dist/bundle/server-XHWSCXVX.js +0 -62
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
- /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CCHHEMPM.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -1245,7 +1245,7 @@ function unwrap(schema) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
__name(unwrap, "unwrap");
|
|
1247
1247
|
|
|
1248
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1248
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1249
1249
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1250
1250
|
var effectsSchema = strictObject({
|
|
1251
1251
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1882,7 +1882,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1884
1884
|
|
|
1885
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1885
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1886
1886
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1887
1887
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1888
1888
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1924,7 +1924,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1924
1924
|
return String(value);
|
|
1925
1925
|
}), "fill");
|
|
1926
1926
|
|
|
1927
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1927
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1928
1928
|
var MAX_NEXT_STEPS = 2;
|
|
1929
1929
|
var COMPACT_FLAG = "--compact";
|
|
1930
1930
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2000,6 +2000,17 @@ var metaSchema = strictObject({
|
|
|
2000
2000
|
now_local: optional(localTime),
|
|
2001
2001
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
|
|
2002
2002
|
});
|
|
2003
|
+
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
2004
|
+
const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
|
|
2005
|
+
return name === "GMT" ? "+00:00" : name.slice(3);
|
|
2006
|
+
}, "offsetOf");
|
|
2007
|
+
var clockMeta = /* @__PURE__ */ __name((at, zone) => {
|
|
2008
|
+
const offset = offsetOf(at, zone);
|
|
2009
|
+
const sign = offset.startsWith("-") ? -1 : 1;
|
|
2010
|
+
const [hours = 0, minutes = 0] = offset.slice(1).split(":").map(Number);
|
|
2011
|
+
const wall = new Date(at + sign * (hours * 60 + minutes) * 6e4).toISOString().slice(0, -1);
|
|
2012
|
+
return { now: new Date(at).toISOString(), now_local: `${wall}${offset}`, timezone: zone };
|
|
2013
|
+
}, "clockMeta");
|
|
2003
2014
|
var nextSteps = optional(pipe(array(nextStepSchema), maxLength(MAX_NEXT_STEPS)));
|
|
2004
2015
|
var listEnvelopeSchema = /* @__PURE__ */ __name((item) => strictObject({
|
|
2005
2016
|
items: array(item),
|
|
@@ -2025,7 +2036,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2025
2036
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2026
2037
|
].join("\n"), "jsonlOf");
|
|
2027
2038
|
|
|
2028
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2039
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2029
2040
|
var CRASH_CODE = "internal_error";
|
|
2030
2041
|
var CRASH_REASON = "command.crashed";
|
|
2031
2042
|
var errorObjectSchema = strictObject({
|
|
@@ -2112,7 +2123,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2112
2123
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2113
2124
|
]);
|
|
2114
2125
|
|
|
2115
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2126
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2116
2127
|
var SAME_COMMAND = "*";
|
|
2117
2128
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2118
2129
|
var stepSchema = union([
|
|
@@ -2191,7 +2202,7 @@ var STEPS = defineSteps([
|
|
|
2191
2202
|
}
|
|
2192
2203
|
]);
|
|
2193
2204
|
|
|
2194
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2205
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2195
2206
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2196
2207
|
if (isCliError(failure))
|
|
2197
2208
|
return failure;
|
|
@@ -2402,6 +2413,7 @@ export {
|
|
|
2402
2413
|
isoTime,
|
|
2403
2414
|
reference,
|
|
2404
2415
|
pageSchema,
|
|
2416
|
+
clockMeta,
|
|
2405
2417
|
listEnvelopeSchema,
|
|
2406
2418
|
itemEnvelopeSchema,
|
|
2407
2419
|
jsonlOf,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H7OQ4YZV.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,23 +34,23 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FTGCXIQA.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-P62Z3Q35.js";
|
|
42
42
|
import {
|
|
43
43
|
instructions
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZCPUKUST.js";
|
|
45
45
|
import {
|
|
46
46
|
answeredWire
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-KQ5P5NLL.js";
|
|
48
48
|
import {
|
|
49
49
|
StdioServerTransport,
|
|
50
50
|
callerOf,
|
|
51
51
|
callingAgent,
|
|
52
52
|
serveStdio
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-VERSKGJV.js";
|
|
54
54
|
import {
|
|
55
55
|
McpServer,
|
|
56
56
|
ResourceTemplate
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
connectedFor,
|
|
60
60
|
guardFor
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IPKXRW6W.js";
|
|
62
62
|
import {
|
|
63
63
|
capability,
|
|
64
64
|
dateWindow,
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
servicesFor,
|
|
68
68
|
storedDeps,
|
|
69
69
|
wholeList
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-WVWNKZI4.js";
|
|
71
71
|
import {
|
|
72
72
|
findCommand
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-DPKHVBP3.js";
|
|
74
74
|
import {
|
|
75
75
|
DEFAULT_OUTPUT_BYTES,
|
|
76
76
|
changesAuthorityAt,
|
|
@@ -85,28 +85,28 @@ import {
|
|
|
85
85
|
sealed,
|
|
86
86
|
snakeKeys,
|
|
87
87
|
typedCommand
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YG4OI3HJ.js";
|
|
89
89
|
import {
|
|
90
90
|
levelFor,
|
|
91
91
|
readKeysForCommand
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7LDC275M.js";
|
|
93
93
|
import {
|
|
94
94
|
isCliFailure,
|
|
95
95
|
withCaller
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-2KVR7FF3.js";
|
|
97
97
|
import {
|
|
98
98
|
mcpHttpMarker
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-5C74F7XX.js";
|
|
100
100
|
import {
|
|
101
101
|
warmEmbedders
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-OGK7LMYT.js";
|
|
103
103
|
import {
|
|
104
104
|
openStore,
|
|
105
105
|
pdfPreviewLimits
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-KLLKDOO2.js";
|
|
107
107
|
import {
|
|
108
108
|
timezoneOf
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-UHHARH5X.js";
|
|
110
110
|
import {
|
|
111
111
|
description,
|
|
112
112
|
integer,
|
|
@@ -122,19 +122,19 @@ import {
|
|
|
122
122
|
regex,
|
|
123
123
|
strictObject,
|
|
124
124
|
string
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-IVDUR5Y4.js";
|
|
126
126
|
import {
|
|
127
127
|
CliError,
|
|
128
128
|
visibleControls
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-CCHHEMPM.js";
|
|
130
130
|
import {
|
|
131
131
|
__name
|
|
132
132
|
} from "./chunk-ZVVMGPBJ.js";
|
|
133
133
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
135
135
|
import { randomUUID } from "node:crypto";
|
|
136
136
|
|
|
137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
138
138
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
139
139
|
let held;
|
|
140
140
|
return {
|
|
@@ -153,7 +153,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
153
153
|
};
|
|
154
154
|
}, "agentLog");
|
|
155
155
|
|
|
156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
157
157
|
var LISTED = 100;
|
|
158
158
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
159
159
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -191,7 +191,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
191
191
|
});
|
|
192
192
|
}, "registerResources");
|
|
193
193
|
|
|
194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
195
195
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
196
196
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
197
197
|
var MessengerSession = class {
|
|
@@ -266,7 +266,7 @@ var MessengerSession = class {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
270
270
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
271
271
|
const _command = messenger.app.command;
|
|
272
272
|
return {
|
|
@@ -320,7 +320,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
320
320
|
};
|
|
321
321
|
}, "attachmentsTools");
|
|
322
322
|
|
|
323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
324
324
|
var PHOTO_LIMIT = 512 * 1024;
|
|
325
325
|
var IMAGE_TYPES = [
|
|
326
326
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -374,7 +374,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
374
374
|
return new Uint8Array(Buffer.concat(chunks));
|
|
375
375
|
}, "readUpTo");
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
378
378
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
379
379
|
stats_charts: tool({
|
|
380
380
|
title: "A chart from a chat's statistics",
|
|
@@ -411,14 +411,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
411
411
|
})
|
|
412
412
|
}), "statsTools");
|
|
413
413
|
|
|
414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
415
415
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
416
416
|
...messagesPhotoTools(messenger),
|
|
417
417
|
...attachmentsTools(messenger),
|
|
418
418
|
...statsTools(messenger)
|
|
419
419
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
420
420
|
|
|
421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
422
422
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
423
423
|
"streams",
|
|
424
424
|
"stdin",
|
|
@@ -742,12 +742,13 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
742
742
|
}, "serveOverStdio");
|
|
743
743
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
744
744
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
745
|
-
const { serveOverHttp } = await import("./serve-
|
|
745
|
+
const { serveOverHttp } = await import("./serve-HO3WME4G.js");
|
|
746
746
|
const appName = messenger.app.command;
|
|
747
747
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
748
748
|
const listening = await serveOverHttp(build, {
|
|
749
749
|
...http,
|
|
750
750
|
appName,
|
|
751
|
+
reaches: "your messages",
|
|
751
752
|
// In the background its log is a file; the code goes only to the lock that `mcp server status` reads.
|
|
752
753
|
onCode: /* @__PURE__ */ __name((code, expires) => context.renderer.note(context.env[mcpHttpMarker(appEnvPrefix)] === void 0 ? `login code for a new browser app: ${code} (until ${expires.toTimeString().slice(0, 5)}; a new one after each login)` : `a new login code for a browser app: \`${appName} ${context.settings.profile} mcp server status\``), "onCode"),
|
|
753
754
|
onError: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onError")
|