@agentcomms/resend 0.26.0 → 0.26.1
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/THIRD_PARTY_LICENSES +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{coerce-CqGigABD.mjs → coerce-DUN95oU4.mjs} +3 -3
- package/dist/{dist-C7DG2LdL-l0mj9_dH.mjs → dist-C7DG2LdL-6QTVBgXp.mjs} +1 -1
- package/dist/index.d.mts +983 -3040
- package/dist/index.mjs +2 -14
- package/dist/{iso-USuVU_sk.mjs → iso-5-9R47LC.mjs} +59 -26
- package/dist/{mcp-DIH4cS6P-CIWWZQbz.mjs → mcp-DIH4cS6P-C1s6ZIjc.mjs} +2 -2
- package/dist/{send-1tzjQOn0.mjs → send-BjDliNlb.mjs} +609 -236
- package/dist/{server-D-DV-Uif.mjs → server-D2WXrDVG.mjs} +4 -4
- package/dist/{src-WCy6ifGf-DXrNj-15-D0oRtifb.mjs → src-WCy6ifGf-DXrNj-15-HcB9fGcS.mjs} +2 -2
- package/dist/{stdio-B8UXEGiG.mjs → stdio-BWbiQh9h.mjs} +1 -1
- package/dist/{stdio-CyjIgrch-59zcjSEt.mjs → stdio-CRbkOCqe-BpzkpnG6.mjs} +15 -15
- package/dist/{stdio-entry--Q0UoMIV.mjs → stdio-entry-C9gpIGSo.mjs} +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
import { S as union, c as boolean, g as object, h as number, s as array, x as string } from "./iso-
|
|
3
|
-
import { t as McpServer } from "./mcp-DIH4cS6P-
|
|
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-BjDliNlb.mjs";
|
|
2
|
+
import { S as union, c as boolean, g as object, h as number, s as array, x as string } from "./iso-5-9R47LC.mjs";
|
|
3
|
+
import { t as McpServer } from "./mcp-DIH4cS6P-C1s6ZIjc.mjs";
|
|
4
4
|
//#region src/mcp/server.ts
|
|
5
5
|
const MAX_LISTED = 8;
|
|
6
6
|
function listOf(names) {
|
|
@@ -421,7 +421,7 @@ async function createResendMcpServer(options = {}) {
|
|
|
421
421
|
return {
|
|
422
422
|
server,
|
|
423
423
|
async connectStdio() {
|
|
424
|
-
const { StdioServerTransport } = await import("./stdio-
|
|
424
|
+
const { StdioServerTransport } = await import("./stdio-BWbiQh9h.mjs");
|
|
425
425
|
const transport = new StdioServerTransport();
|
|
426
426
|
const closed = new Promise((settle) => {
|
|
427
427
|
transport.onclose = () => settle();
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { n as ZodIssueCode, t as number$1 } from "./coerce-
|
|
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-5-9R47LC.mjs";
|
|
2
|
+
import { n as ZodIssueCode, t as number$1 } from "./coerce-DUN95oU4.mjs";
|
|
3
3
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4
4
|
"2025-11-25",
|
|
5
5
|
"2025-06-18",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as serializeMessage, n as process, r as ReadBuffer } from "./mcp-DIH4cS6P-
|
|
1
|
+
import { i as serializeMessage, n as process, r as ReadBuffer } from "./mcp-DIH4cS6P-C1s6ZIjc.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@modelcontextprotocol+server@2.3.1/node_modules/@modelcontextprotocol/server/dist/stdio.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Marks a stdout `'error'` listener that a closed transport left attached purely to
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as ReadBuffer, c as SdkErrorCode, k as serializeMessage, s as SdkError } from "./src-WCy6ifGf-DXrNj-15-
|
|
1
|
+
import { a as ReadBuffer, c as SdkErrorCode, k as serializeMessage, s as SdkError } from "./src-WCy6ifGf-DXrNj-15-HcB9fGcS.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import { PassThrough } from "node:stream";
|
|
5
|
-
//#region ../core/dist/stdio-
|
|
5
|
+
//#region ../core/dist/stdio-CRbkOCqe.mjs
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
9
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
10
|
var __getProtoOf = Object.getPrototypeOf;
|
|
11
11
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
12
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
14
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
15
|
key = keys[i];
|
|
@@ -28,7 +28,7 @@ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
|
28
28
|
var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
29
|
module.exports = isexe;
|
|
30
30
|
isexe.sync = sync;
|
|
31
|
-
var fs
|
|
31
|
+
var fs = __require("fs");
|
|
32
32
|
function checkPathExt(path, options) {
|
|
33
33
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
34
34
|
if (!pathext) return true;
|
|
@@ -45,25 +45,25 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45
45
|
return checkPathExt(path, options);
|
|
46
46
|
}
|
|
47
47
|
function isexe(path, options, cb) {
|
|
48
|
-
fs
|
|
48
|
+
fs.stat(path, function(er, stat) {
|
|
49
49
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
function sync(path, options) {
|
|
53
|
-
return checkStat(fs
|
|
53
|
+
return checkStat(fs.statSync(path), path, options);
|
|
54
54
|
}
|
|
55
55
|
}));
|
|
56
56
|
var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
57
|
module.exports = isexe;
|
|
58
58
|
isexe.sync = sync;
|
|
59
|
-
var fs
|
|
59
|
+
var fs = __require("fs");
|
|
60
60
|
function isexe(path, options, cb) {
|
|
61
|
-
fs
|
|
61
|
+
fs.stat(path, function(er, stat) {
|
|
62
62
|
cb(er, er ? false : checkStat(stat, options));
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function sync(path, options) {
|
|
66
|
-
return checkStat(fs
|
|
66
|
+
return checkStat(fs.statSync(path), options);
|
|
67
67
|
}
|
|
68
68
|
function checkStat(stat, options) {
|
|
69
69
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -123,7 +123,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
123
123
|
}));
|
|
124
124
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
125
125
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
126
|
-
const path
|
|
126
|
+
const path = __require("path");
|
|
127
127
|
const COLON = isWindows ? ";" : ":";
|
|
128
128
|
const isexe = require_isexe();
|
|
129
129
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -154,7 +154,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
154
154
|
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
155
155
|
const ppRaw = pathEnv[i];
|
|
156
156
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
157
|
-
const pCmd = path
|
|
157
|
+
const pCmd = path.join(pathPart, cmd);
|
|
158
158
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
159
159
|
resolve(subStep(p, i, 0));
|
|
160
160
|
});
|
|
@@ -178,7 +178,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
178
178
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
179
179
|
const ppRaw = pathEnv[i];
|
|
180
180
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
181
|
-
const pCmd = path
|
|
181
|
+
const pCmd = path.join(pathPart, cmd);
|
|
182
182
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
183
183
|
for (let j = 0; j < pathExt.length; j++) {
|
|
184
184
|
const cur = p + pathExt[j];
|
|
@@ -207,7 +207,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
207
207
|
module.exports.default = pathKey;
|
|
208
208
|
}));
|
|
209
209
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
210
|
-
const path
|
|
210
|
+
const path = __require("path");
|
|
211
211
|
const which = require_which();
|
|
212
212
|
const getPathKey = require_path_key();
|
|
213
213
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -222,12 +222,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
222
222
|
try {
|
|
223
223
|
resolved = which.sync(parsed.command, {
|
|
224
224
|
path: env[getPathKey({ env })],
|
|
225
|
-
pathExt: withoutPathExt ? path
|
|
225
|
+
pathExt: withoutPathExt ? path.delimiter : void 0
|
|
226
226
|
});
|
|
227
227
|
} catch (e) {} finally {
|
|
228
228
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
229
229
|
}
|
|
230
|
-
if (resolved) resolved = path
|
|
230
|
+
if (resolved) resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
231
231
|
return resolved;
|
|
232
232
|
}
|
|
233
233
|
function resolveCommand(parsed) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { t as createResendMcpServer } from "./server-D2WXrDVG.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.26.
|
|
3
|
+
"version": "0.26.1",
|
|
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,16 +31,16 @@
|
|
|
31
31
|
"THIRD_PARTY_LICENSES"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agentcomms/core": "0.26.
|
|
34
|
+
"@agentcomms/core": "0.26.1"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@napi-rs/keyring": "2.1.
|
|
37
|
+
"@napi-rs/keyring": "2.1.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@modelcontextprotocol/client": "2.3.1",
|
|
41
41
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
42
42
|
"commander": "^15.0.0",
|
|
43
|
-
"zod": "^4.6.
|
|
43
|
+
"zod": "^4.6.7"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -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": "70247de711a9ae1aac5bdaea40acfc3e474817f7"
|
|
111
111
|
}
|