@agentcomms/resend 0.7.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/LICENSE +21 -0
- package/README.md +112 -0
- package/THIRD_PARTY_LICENSES +1213 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +3458 -0
- package/dist/coerce-BscjcmYU.mjs +34 -0
- package/dist/dist-COPefvtq-D67MoOnB.mjs +9880 -0
- package/dist/index.d.mts +12309 -0
- package/dist/index.mjs +16 -0
- package/dist/mcp-DXXb3Vv3-Co5BzjYe.mjs +16220 -0
- package/dist/schemas-DiGKNDNq.mjs +5885 -0
- package/dist/send-DeGG4u2p.mjs +20220 -0
- package/dist/server-CRIgeZCh.mjs +405 -0
- package/dist/src-D_zzAWoS-BhK0GFdq-XAvBzdGB.mjs +7806 -0
- package/dist/stdio-BR8R87El.mjs +102 -0
- package/dist/stdio-CHZ2WRcx-5iYMXTdw.mjs +607 -0
- package/dist/stdio-entry-CbYlbcyJ.mjs +21 -0
- package/package.json +98 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as createResendMcpServer } from "./server-CRIgeZCh.mjs";
|
|
2
|
+
//#region src/mcp/stdio-entry.ts
|
|
3
|
+
/**
|
|
4
|
+
* Starting the stdio server. On stdio, **stdout is the protocol**: one stray `console.log` corrupts the stream, so
|
|
5
|
+
* the console is redirected to stderr before the server is built.
|
|
6
|
+
*/
|
|
7
|
+
function redirectConsoleToStderr() {
|
|
8
|
+
const toStderr = (...args) => {
|
|
9
|
+
process.stderr.write(`${args.map((arg) => typeof arg === "string" ? arg : JSON.stringify(arg)).join(" ")}\n`);
|
|
10
|
+
};
|
|
11
|
+
console.log = toStderr;
|
|
12
|
+
console.info = toStderr;
|
|
13
|
+
console.debug = toStderr;
|
|
14
|
+
console.warn = toStderr;
|
|
15
|
+
}
|
|
16
|
+
async function startResendStdioServer(options = {}) {
|
|
17
|
+
redirectConsoleToStderr();
|
|
18
|
+
await (await createResendMcpServer(options)).connectStdio();
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { startResendStdioServer };
|
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentcomms/resend",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Resend for coding agents: read domains, sent and received mail, metrics and suppressions, and send mail that nothing sends without a person's approval of exactly what goes out.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Criss Moldovan",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=22.12.0"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/crissmoldovan/agent-communications.git",
|
|
14
|
+
"directory": "packages/resend"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.mts",
|
|
19
|
+
"import": "./dist/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/index.mjs",
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"agent-resend": "./dist/cli.mjs"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE",
|
|
31
|
+
"THIRD_PARTY_LICENSES"
|
|
32
|
+
],
|
|
33
|
+
"optionalDependencies": {
|
|
34
|
+
"@napi-rs/keyring": "2.1.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@modelcontextprotocol/client": "2.0.0",
|
|
38
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
39
|
+
"commander": "^15.0.0",
|
|
40
|
+
"zod": "^4.6.5",
|
|
41
|
+
"@agentcomms/core": "0.7.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"agentcomms": {
|
|
47
|
+
"contract": 1,
|
|
48
|
+
"channel": "resend",
|
|
49
|
+
"label": "Resend",
|
|
50
|
+
"binary": "agent-resend",
|
|
51
|
+
"server": {
|
|
52
|
+
"defaultName": "resend",
|
|
53
|
+
"npxPackage": "@agentcomms/resend",
|
|
54
|
+
"npxArgs": [
|
|
55
|
+
"mcp"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"accounts": {
|
|
59
|
+
"map": "accounts",
|
|
60
|
+
"noun": "account",
|
|
61
|
+
"modes": [
|
|
62
|
+
"read",
|
|
63
|
+
"send"
|
|
64
|
+
],
|
|
65
|
+
"guarantee": {
|
|
66
|
+
"ceiling": "code",
|
|
67
|
+
"floor": "code",
|
|
68
|
+
"why": "Resend has no read-only key, and a full-access key can also manage domains and keys: read mode, and send mode's limit to sending, are enforced by agent-resend's own code. A sending-access key can only send, and Resend enforces that."
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"narrowing": [
|
|
72
|
+
{
|
|
73
|
+
"option": "account",
|
|
74
|
+
"flag": "--account",
|
|
75
|
+
"kind": "pin"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"rivals": {
|
|
79
|
+
"word": "resend",
|
|
80
|
+
"can": "send mail through Resend"
|
|
81
|
+
},
|
|
82
|
+
"hosts": [
|
|
83
|
+
"api.resend.com",
|
|
84
|
+
"inbound-cdn.resend.com"
|
|
85
|
+
],
|
|
86
|
+
"approve": "agent-resend approve",
|
|
87
|
+
"skills": {
|
|
88
|
+
"prefix": "resend-",
|
|
89
|
+
"contract": "skills/_shared/contract-resend.md"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "tsdown",
|
|
94
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
95
|
+
"test": "node --experimental-strip-types --test --test-timeout=60000 \"test/**/*.test.ts\""
|
|
96
|
+
},
|
|
97
|
+
"gitHead": "34732ca0ffb03feada69e76f97143413ec5398e4"
|
|
98
|
+
}
|