@ghostpaw/email 0.4.1 → 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/README.md +159 -16
- package/dist/cli.js +9977 -9734
- package/dist/mcp-server.js +11 -6
- package/dist/mcp.cjs +10 -5
- package/dist/mcp.d.cts +10 -0
- package/dist/mcp.d.ts +10 -0
- package/dist/mcp.js +10 -5
- package/package.json +15 -5
package/dist/mcp-server.js
CHANGED
|
@@ -10,8 +10,13 @@ import { randomUUID } from 'node:crypto';
|
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __esm = (fn, res) => function __init() {
|
|
14
|
-
|
|
13
|
+
var __esm = (fn, res, err) => function __init() {
|
|
14
|
+
if (err) throw err[0];
|
|
15
|
+
try {
|
|
16
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw err = [e], e;
|
|
19
|
+
}
|
|
15
20
|
};
|
|
16
21
|
var __export = (target, all) => {
|
|
17
22
|
for (var name in all)
|
|
@@ -251,7 +256,7 @@ var init_mcp_stdio = __esm({
|
|
|
251
256
|
var emailVersion;
|
|
252
257
|
var init_version = __esm({
|
|
253
258
|
"src/version.ts"() {
|
|
254
|
-
emailVersion = "0.
|
|
259
|
+
emailVersion = "0.5.0";
|
|
255
260
|
}
|
|
256
261
|
});
|
|
257
262
|
|
|
@@ -6080,13 +6085,13 @@ var init_network = __esm({
|
|
|
6080
6085
|
});
|
|
6081
6086
|
|
|
6082
6087
|
// src/surface/email_surface_tools.ts
|
|
6083
|
-
var
|
|
6088
|
+
var emailMcpTools;
|
|
6084
6089
|
var init_email_surface_tools = __esm({
|
|
6085
6090
|
"src/surface/email_surface_tools.ts"() {
|
|
6086
6091
|
init_read();
|
|
6087
6092
|
init_store();
|
|
6088
6093
|
init_aligned();
|
|
6089
|
-
|
|
6094
|
+
emailMcpTools = emailTools2.map((tool) => ({
|
|
6090
6095
|
...tool,
|
|
6091
6096
|
inputSchema: { ...tool.inputSchema, type: "object" },
|
|
6092
6097
|
async handler(db, input) {
|
|
@@ -6152,7 +6157,7 @@ function emailMcpOptions(context) {
|
|
|
6152
6157
|
version: emailVersion,
|
|
6153
6158
|
title: "Email",
|
|
6154
6159
|
instructions: emailMcpInstructions,
|
|
6155
|
-
tools:
|
|
6160
|
+
tools: emailMcpTools,
|
|
6156
6161
|
context,
|
|
6157
6162
|
annotations: (tool) => ({
|
|
6158
6163
|
readOnlyHint: tool.readOnly ?? false,
|
package/dist/mcp.cjs
CHANGED
|
@@ -33,8 +33,13 @@ var zlib__namespace = /*#__PURE__*/_interopNamespace(zlib);
|
|
|
33
33
|
|
|
34
34
|
var __defProp = Object.defineProperty;
|
|
35
35
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
36
|
-
var __esm = (fn, res) => function __init() {
|
|
37
|
-
|
|
36
|
+
var __esm = (fn, res, err) => function __init() {
|
|
37
|
+
if (err) throw err[0];
|
|
38
|
+
try {
|
|
39
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
40
|
+
} catch (e) {
|
|
41
|
+
throw err = [e], e;
|
|
42
|
+
}
|
|
38
43
|
};
|
|
39
44
|
var __export = (target, all) => {
|
|
40
45
|
for (var name in all)
|
|
@@ -5005,7 +5010,7 @@ var init_network = __esm({
|
|
|
5005
5010
|
});
|
|
5006
5011
|
|
|
5007
5012
|
// src/version.ts
|
|
5008
|
-
var emailVersion = "0.
|
|
5013
|
+
var emailVersion = "0.5.0";
|
|
5009
5014
|
|
|
5010
5015
|
// src/surface/email_mcp_instructions.ts
|
|
5011
5016
|
var emailMcpInstructions = "Read and search cached email offline. Configure live accounts with email account add before network operations. Inspect messages before replying or changing folders. Confirm recipients and content before sending; trash and folder deletion can remove mail. Credentials use the existing email CLI account configuration or EMAIL_* environment variables.";
|
|
@@ -5852,7 +5857,7 @@ var emailTools2 = emailTools.map((tool) => ({
|
|
|
5852
5857
|
}));
|
|
5853
5858
|
|
|
5854
5859
|
// src/surface/email_surface_tools.ts
|
|
5855
|
-
var
|
|
5860
|
+
var emailMcpTools = emailTools2.map((tool) => ({
|
|
5856
5861
|
...tool,
|
|
5857
5862
|
inputSchema: { ...tool.inputSchema, type: "object" },
|
|
5858
5863
|
async handler(db, input) {
|
|
@@ -5916,7 +5921,7 @@ function emailMcpOptions(context) {
|
|
|
5916
5921
|
version: emailVersion,
|
|
5917
5922
|
title: "Email",
|
|
5918
5923
|
instructions: emailMcpInstructions,
|
|
5919
|
-
tools:
|
|
5924
|
+
tools: emailMcpTools,
|
|
5920
5925
|
context,
|
|
5921
5926
|
annotations: (tool) => ({
|
|
5922
5927
|
readOnlyHint: tool.readOnly ?? false,
|
package/dist/mcp.d.cts
CHANGED
|
@@ -19,6 +19,16 @@ interface JsonSchema {
|
|
|
19
19
|
}
|
|
20
20
|
interface SurfaceTool<TCtx> {
|
|
21
21
|
name: string;
|
|
22
|
+
cli?: {
|
|
23
|
+
noun?: string;
|
|
24
|
+
verb: string;
|
|
25
|
+
positionals?: string[];
|
|
26
|
+
action?: {
|
|
27
|
+
property: string;
|
|
28
|
+
verbs?: Record<string, string>;
|
|
29
|
+
positionals?: Record<string, string[]>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
22
32
|
title?: string;
|
|
23
33
|
description: string;
|
|
24
34
|
inputSchema: JsonSchema & {
|
package/dist/mcp.d.ts
CHANGED
|
@@ -19,6 +19,16 @@ interface JsonSchema {
|
|
|
19
19
|
}
|
|
20
20
|
interface SurfaceTool<TCtx> {
|
|
21
21
|
name: string;
|
|
22
|
+
cli?: {
|
|
23
|
+
noun?: string;
|
|
24
|
+
verb: string;
|
|
25
|
+
positionals?: string[];
|
|
26
|
+
action?: {
|
|
27
|
+
property: string;
|
|
28
|
+
verbs?: Record<string, string>;
|
|
29
|
+
positionals?: Record<string, string[]>;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
22
32
|
title?: string;
|
|
23
33
|
description: string;
|
|
24
34
|
inputSchema: JsonSchema & {
|
package/dist/mcp.js
CHANGED
|
@@ -9,8 +9,13 @@ import { randomUUID } from 'node:crypto';
|
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __esm = (fn, res) => function __init() {
|
|
13
|
-
|
|
12
|
+
var __esm = (fn, res, err) => function __init() {
|
|
13
|
+
if (err) throw err[0];
|
|
14
|
+
try {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw err = [e], e;
|
|
18
|
+
}
|
|
14
19
|
};
|
|
15
20
|
var __export = (target, all) => {
|
|
16
21
|
for (var name in all)
|
|
@@ -4981,7 +4986,7 @@ var init_network = __esm({
|
|
|
4981
4986
|
});
|
|
4982
4987
|
|
|
4983
4988
|
// src/version.ts
|
|
4984
|
-
var emailVersion = "0.
|
|
4989
|
+
var emailVersion = "0.5.0";
|
|
4985
4990
|
|
|
4986
4991
|
// src/surface/email_mcp_instructions.ts
|
|
4987
4992
|
var emailMcpInstructions = "Read and search cached email offline. Configure live accounts with email account add before network operations. Inspect messages before replying or changing folders. Confirm recipients and content before sending; trash and folder deletion can remove mail. Credentials use the existing email CLI account configuration or EMAIL_* environment variables.";
|
|
@@ -5828,7 +5833,7 @@ var emailTools2 = emailTools.map((tool) => ({
|
|
|
5828
5833
|
}));
|
|
5829
5834
|
|
|
5830
5835
|
// src/surface/email_surface_tools.ts
|
|
5831
|
-
var
|
|
5836
|
+
var emailMcpTools = emailTools2.map((tool) => ({
|
|
5832
5837
|
...tool,
|
|
5833
5838
|
inputSchema: { ...tool.inputSchema, type: "object" },
|
|
5834
5839
|
async handler(db, input) {
|
|
@@ -5892,7 +5897,7 @@ function emailMcpOptions(context) {
|
|
|
5892
5897
|
version: emailVersion,
|
|
5893
5898
|
title: "Email",
|
|
5894
5899
|
instructions: emailMcpInstructions,
|
|
5895
|
-
tools:
|
|
5900
|
+
tools: emailMcpTools,
|
|
5896
5901
|
context,
|
|
5897
5902
|
annotations: (tool) => ({
|
|
5898
5903
|
readOnlyHint: tool.readOnly ?? false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostpaw/email",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Standalone IMAP/SMTP email engine for Node.js — SQLite local cache, threading, sync, zero dependencies, with a built-in LLM tool facade",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -66,7 +66,10 @@
|
|
|
66
66
|
"check:api": "node scripts/guard/api.mjs",
|
|
67
67
|
"check:consumer": "node scripts/guard/consumer.mjs",
|
|
68
68
|
"check:startup": "node scripts/guard/startup.mjs",
|
|
69
|
-
"mcpb": "node scripts/mcpb/build.mjs"
|
|
69
|
+
"mcpb": "node scripts/mcpb/build.mjs",
|
|
70
|
+
"sea": "node scripts/sea/build.mjs",
|
|
71
|
+
"sea:smoke": "node scripts/sea/smoke.mjs",
|
|
72
|
+
"sea:bench": "node scripts/sea/bench.mjs"
|
|
70
73
|
},
|
|
71
74
|
"engines": {
|
|
72
75
|
"node": ">=24"
|
|
@@ -99,7 +102,11 @@
|
|
|
99
102
|
"mcp-server",
|
|
100
103
|
"model-context-protocol",
|
|
101
104
|
"agent-skills",
|
|
102
|
-
"cli"
|
|
105
|
+
"cli",
|
|
106
|
+
"ghostpaw",
|
|
107
|
+
"ai-agents",
|
|
108
|
+
"llm-tools",
|
|
109
|
+
"node-sqlite"
|
|
103
110
|
],
|
|
104
111
|
"license": "MIT",
|
|
105
112
|
"repository": {
|
|
@@ -126,10 +133,13 @@
|
|
|
126
133
|
"@biomejs/biome": "2.4.4",
|
|
127
134
|
"@types/node": "^25.3.0",
|
|
128
135
|
"citty": "^0.1.6",
|
|
129
|
-
"esbuild": "^0.
|
|
136
|
+
"esbuild": "^0.28.1",
|
|
130
137
|
"fflate": "0.8.3",
|
|
131
138
|
"tsup": "^8.4.0",
|
|
132
139
|
"typescript": "^5.9.3"
|
|
133
140
|
},
|
|
134
|
-
"mcpName": "io.github.GhostPawJS/email"
|
|
141
|
+
"mcpName": "io.github.GhostPawJS/email",
|
|
142
|
+
"overrides": {
|
|
143
|
+
"esbuild": "$esbuild"
|
|
144
|
+
}
|
|
135
145
|
}
|