@agentcomms/resend 0.12.2 → 0.13.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 +63 -18
- package/dist/{coerce-BscjcmYU.mjs → coerce-CqGigABD.mjs} +2 -10
- package/dist/{dist-COPefvtq-D67MoOnB.mjs → dist-COPefvtq-COGS2a-K.mjs} +1 -1
- package/dist/index.d.mts +122 -5
- package/dist/index.mjs +2 -2
- package/dist/{schemas-DiGKNDNq.mjs → iso-USuVU_sk.mjs} +13 -5
- package/dist/{mcp-DXXb3Vv3-Co5BzjYe.mjs → mcp-DXXb3Vv3-kCxsVLO4.mjs} +2 -2
- package/dist/{send-BlDpMIlS.mjs → send-D2ZOWO_6.mjs} +1088 -676
- package/dist/{server-B-ubuD7Z.mjs → server-CLjdcZDg.mjs} +6 -5
- package/dist/{src-D_zzAWoS-BhK0GFdq-XAvBzdGB.mjs → src-D_zzAWoS-BhK0GFdq-oo-8IJem.mjs} +2 -2
- package/dist/{stdio-CHZ2WRcx-5iYMXTdw.mjs → stdio-CHZ2WRcx-B2_wGdA5.mjs} +1 -1
- package/dist/{stdio-entry-Cibag7m5.mjs → stdio-entry-BCnq_EyF.mjs} +1 -1
- package/dist/{stdio-BR8R87El.mjs → stdio-q4c3585j.mjs} +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as CHANGE_POLICIES, C as policyChange, E as removeAccountChange, G as changeToolResult, I as CommsError, K as checkForUpdates, M as SEND_POLICIES, O as showAccount, P as strictToolArguments, R as SEND_LOOKUP, S as policyApprovalRefusal, T as policyWanted, Z as gatedChange, _ as runDoctor, b as listAccounts, c as downloadReceived, d as listReceived, 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,
|
|
2
|
-
import { S as union, c as boolean, g as object, h as number, s as array, x as string } from "./
|
|
3
|
-
import { t as McpServer } from "./mcp-DXXb3Vv3-
|
|
1
|
+
import { A as CHANGE_POLICIES, C as policyChange, E as removeAccountChange, G as changeToolResult, I as CommsError, K as checkForUpdates, M as SEND_POLICIES, O as showAccount, P as strictToolArguments, R as SEND_LOOKUP, S as policyApprovalRefusal, T as policyWanted, Z as gatedChange, _ as runDoctor, b as listAccounts, c as downloadReceived, d as listReceived, f as listScheduled, ft as toCommsError, g as showSentEmail, h as showReceived, ht as updateToolGate, i as prepareSend, j as MODES, k as ResendContext, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, p as listSentEmails, rt as refuseUnclaimedApproval, s as cancelScheduledChange, u as listDomains, w as policyReport, xt as VERSION } from "./send-D2ZOWO_6.mjs";
|
|
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
|
+
import { t as McpServer } from "./mcp-DXXb3Vv3-kCxsVLO4.mjs";
|
|
4
4
|
//#region src/mcp/server.ts
|
|
5
5
|
const MAX_LISTED = 8;
|
|
6
6
|
function listOf(names) {
|
|
@@ -106,7 +106,8 @@ async function createResendMcpServer(options = {}) {
|
|
|
106
106
|
const runChange = async (change, approvalId) => changeToolResult(await gatedChange(context.core, change, {
|
|
107
107
|
surface: "mcp",
|
|
108
108
|
approvalId,
|
|
109
|
-
approveCommand: "agent-resend approve"
|
|
109
|
+
approveCommand: "agent-resend approve",
|
|
110
|
+
platform: context.platform
|
|
110
111
|
}));
|
|
111
112
|
const readsResend = {
|
|
112
113
|
readOnlyHint: true,
|
|
@@ -401,7 +402,7 @@ async function createResendMcpServer(options = {}) {
|
|
|
401
402
|
return {
|
|
402
403
|
server,
|
|
403
404
|
async connectStdio() {
|
|
404
|
-
const { StdioServerTransport } = await import("./stdio-
|
|
405
|
+
const { StdioServerTransport } = await import("./stdio-q4c3585j.mjs");
|
|
405
406
|
const transport = new StdioServerTransport();
|
|
406
407
|
const closed = new Promise((settle) => {
|
|
407
408
|
transport.onclose = () => settle();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as unknown, E as toJSONSchema, O as NEVER, S as union, T as safeParse, _ as optional, a as _null, c as boolean, d as intersection, f as lazy, g as object, h as number, i as _enum, l as discriminatedUnion, m as looseObject, n as datetime, o as any, p as literal, s as array, t as date, u as email, v as preprocess, w as url, x as string, y as record } from "./iso-USuVU_sk.mjs";
|
|
2
|
+
import { n as ZodIssueCode, t as number$1 } from "./coerce-CqGigABD.mjs";
|
|
3
3
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4
4
|
"2025-11-25",
|
|
5
5
|
"2025-06-18",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ReadBuffer, c as SdkErrorCode, k as serializeMessage, s as SdkError } from "./src-D_zzAWoS-BhK0GFdq-
|
|
1
|
+
import { a as ReadBuffer, c as SdkErrorCode, k as serializeMessage, s as SdkError } from "./src-D_zzAWoS-BhK0GFdq-oo-8IJem.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import { PassThrough } from "node:stream";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { t as createResendMcpServer } from "./server-CLjdcZDg.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as serializeMessage, n as process, r as ReadBuffer } from "./mcp-DXXb3Vv3-
|
|
1
|
+
import { i as serializeMessage, n as process, r as ReadBuffer } from "./mcp-DXXb3Vv3-kCxsVLO4.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.0.0/node_modules/@modelcontextprotocol/server/dist/stdio.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Server transport for stdio: this communicates with an MCP client by reading from the current process' `stdin` and writing to `stdout`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentcomms/resend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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.13.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": "afd195efd8cbdaaab148859867a1170684af6ae3"
|
|
98
98
|
}
|