@agentcomms/resend 0.18.2 → 0.20.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 +8 -0
- package/dist/cli.mjs +16 -33
- package/dist/index.d.mts +55 -3
- package/dist/index.mjs +2 -2
- package/dist/{send-7cKVm9mA.mjs → send-CE6wM0-w.mjs} +3145 -1484
- package/dist/{server-CSe84nMI.mjs → server-C1sSuZ8K.mjs} +5 -9
- package/dist/{stdio-entry-CskP8Urx.mjs → stdio-entry-BlerMgOC.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as removeAccountChange, At as waitCallOptions, B as strictToolArguments, Bt as VERSION, D as policyChange, E as policyApprovalRefusal, Et as toCommsError, F as CHANGE_POLICIES, H as CommsError, I as MODES, L as SEND_POLICIES, M as showAccount, O as policyReport, P as ResendContext, X as changeToolResult, Z as checkForUpdates, _ as showSentEmail, c as downloadReceived, d as listReceived, f as listScheduled, g as showReceived, ht as refuseUnclaimedApproval, i as prepareSend, it as gatedChange, jt as waitForApproval, k as policyWanted, kt as updateToolNotice, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, p as listSentEmails, s as cancelScheduledChange, u as listDomains, w as listAccounts, x as runDoctor } from "./send-CE6wM0-w.mjs";
|
|
2
2
|
import { S as union, c as boolean, g as object, h as number, s as array, x as string } from "./iso-USuVU_sk.mjs";
|
|
3
3
|
import { t as McpServer } from "./mcp-DIH4cS6P-CIWWZQbz.mjs";
|
|
4
4
|
//#region src/mcp/server.ts
|
|
@@ -82,17 +82,12 @@ async function createResendMcpServer(options = {}) {
|
|
|
82
82
|
}]
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
strictToolArguments(server, fail,
|
|
85
|
+
strictToolArguments(server, fail, updateToolNotice({
|
|
86
86
|
core: context.core,
|
|
87
87
|
env: context.env,
|
|
88
|
-
server: "agent-resend",
|
|
89
88
|
channel: "resend",
|
|
90
89
|
running: VERSION,
|
|
91
90
|
exempt: ["resend_doctor"],
|
|
92
|
-
approvals: {
|
|
93
|
-
resend_send_status: SEND_LOOKUP,
|
|
94
|
-
resend_send_wait: { lookup: true }
|
|
95
|
-
},
|
|
96
91
|
refresh: () => checkForUpdates(context.core, context.env)
|
|
97
92
|
}));
|
|
98
93
|
/** Which account a call acts on. A pinned server refuses any other, and re-checks the pin against the id. */
|
|
@@ -314,7 +309,7 @@ async function createResendMcpServer(options = {}) {
|
|
|
314
309
|
})));
|
|
315
310
|
server.registerTool("resend_send_prepare", {
|
|
316
311
|
title: "Prepare an email",
|
|
317
|
-
description: "Build an email and return the exact preview — every recipient, BCC included, the reach and the From domain — with an approval id. Nothing is sent. Show the preview in full and wait for the person’s yes.",
|
|
312
|
+
description: "Build an email and return the exact preview — every recipient, BCC included, the reach and the From domain — with an approval id. Nothing is sent. Its From is labelled `<name> (agent)` — the From’s name, or the person’s label name for a bare address — unless `as` is `me`, and the preview’s first line says which. Show the preview in full and wait for the person’s yes.",
|
|
318
313
|
inputSchema: {
|
|
319
314
|
...accountArg,
|
|
320
315
|
from: string().describe("the sender at a verified domain: `Name <you@example.com>` or a bare address"),
|
|
@@ -328,7 +323,8 @@ async function createResendMcpServer(options = {}) {
|
|
|
328
323
|
replyTo: array(string()).optional(),
|
|
329
324
|
inReplyTo: string().optional().describe("the Message-ID this replies to, to keep the thread"),
|
|
330
325
|
references: array(string()).optional(),
|
|
331
|
-
scheduledAt: string().optional().describe("send later: an ISO 8601 time with a zone, at most 30 days ahead")
|
|
326
|
+
scheduledAt: string().optional().describe("send later: an ISO 8601 time with a zone, at most 30 days ahead"),
|
|
327
|
+
as: string().min(1).optional().describe("who it appears to come from: agent (From labelled \"<name> (agent)\") or me (From as given). Pass `me` only when the person said so for this email; left out, their rules decide, and then agent")
|
|
332
328
|
},
|
|
333
329
|
annotations: {
|
|
334
330
|
readOnlyHint: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { t as createResendMcpServer } from "./server-C1sSuZ8K.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.20.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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"THIRD_PARTY_LICENSES"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agentcomms/core": "0.
|
|
34
|
+
"@agentcomms/core": "0.20.0"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
37
|
"@napi-rs/keyring": "2.1.0"
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"typecheck": "tsc -p tsconfig.json",
|
|
108
108
|
"test": "node --experimental-strip-types --test --test-timeout=600000 \"test/**/*.test.ts\""
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "b5e7322e890d2eb6a6f9917612f6d3af1882edbd"
|
|
111
111
|
}
|