@agentcomms/resend 0.8.0 → 0.10.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/dist/cli.mjs +40 -5
- package/dist/index.d.mts +146 -5
- package/dist/index.mjs +2 -2
- package/dist/{send-BpwXJL8C.mjs → send-Ba1caJ6x.mjs} +5052 -3064
- package/dist/{server-C3PKeQSN.mjs → server-BHHLf1lV.mjs} +15 -3
- package/dist/{stdio-entry-CVMfmkCS.mjs → stdio-entry-CKC1hDbG.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as CHANGE_POLICIES, C as policyChange, E as removeAccountChange, G as checkForUpdates, I as CommsError, M as SEND_POLICIES, O as showAccount, P as strictToolArguments, R as SEND_LOOKUP, S as policyApprovalRefusal, T as policyWanted, W as changeToolResult, X as gatedChange, _ as runDoctor, _t as VERSION, b as listAccounts, c as downloadReceived, ct as toCommsError, d as listReceived, dt as updateToolGate, f as listScheduled, g as showSentEmail, h as showReceived, i as prepareSend, j as MODES, k as ResendContext, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, p as listSentEmails, s as cancelScheduledChange, tt as refuseUnclaimedApproval, u as listDomains, w as policyReport } from "./send-Ba1caJ6x.mjs";
|
|
2
2
|
import { S as union, c as boolean, g as object, h as number, s as array, x as string } from "./schemas-DiGKNDNq.mjs";
|
|
3
3
|
import { t as McpServer } from "./mcp-DXXb3Vv3-Co5BzjYe.mjs";
|
|
4
4
|
//#region src/mcp/server.ts
|
|
@@ -82,7 +82,16 @@ async function createResendMcpServer(options = {}) {
|
|
|
82
82
|
}]
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
strictToolArguments(server, fail
|
|
85
|
+
strictToolArguments(server, fail, updateToolGate({
|
|
86
|
+
core: context.core,
|
|
87
|
+
env: context.env,
|
|
88
|
+
server: "agent-resend",
|
|
89
|
+
channel: "resend",
|
|
90
|
+
running: VERSION,
|
|
91
|
+
exempt: ["resend_doctor"],
|
|
92
|
+
approvals: { resend_send_status: SEND_LOOKUP },
|
|
93
|
+
refresh: () => checkForUpdates(context.core, context.env)
|
|
94
|
+
}));
|
|
86
95
|
/** Which account a call acts on. A pinned server refuses any other, and re-checks the pin against the id. */
|
|
87
96
|
const resolve = async (named) => {
|
|
88
97
|
if (pinnedId !== void 0) {
|
|
@@ -177,7 +186,10 @@ async function createResendMcpServer(options = {}) {
|
|
|
177
186
|
mode: args.mode,
|
|
178
187
|
change: args.changePolicy
|
|
179
188
|
});
|
|
180
|
-
if (wanted.send === void 0 && wanted.mode === void 0 && wanted.change === void 0)
|
|
189
|
+
if (wanted.send === void 0 && wanted.mode === void 0 && wanted.change === void 0) {
|
|
190
|
+
refuseUnclaimedApproval(args.approvalId, policyApprovalRefusal("mcp"));
|
|
191
|
+
return policyReport(context, name);
|
|
192
|
+
}
|
|
181
193
|
return runChange(policyChange(context, name, wanted), args.approvalId);
|
|
182
194
|
}));
|
|
183
195
|
server.registerTool("resend_doctor", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { t as createResendMcpServer } from "./server-BHHLf1lV.mjs";
|
|
2
2
|
//#region src/mcp/stdio-entry.ts
|
|
3
3
|
/**
|
|
4
4
|
* Starting the stdio server. On stdio, **stdout is the protocol**: one stray `console.log` corrupts the stream, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentcomms/resend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
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
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
40
|
"zod": "^4.6.5",
|
|
41
|
-
"@agentcomms/core": "0.
|
|
41
|
+
"@agentcomms/core": "0.10.0"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typecheck": "tsc -p tsconfig.json",
|
|
95
95
|
"test": "node --experimental-strip-types --test --test-timeout=600000 \"test/**/*.test.ts\""
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "5bb3ca06a2f436f12f3eb8d6ec4e51a6b366d901"
|
|
98
98
|
}
|