@agentcomms/resend 0.7.2 → 0.8.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as canPrompt, C as policyReport, D as showAccount, E as sendPolicyOf, F as CommsError, G as gatedChangeAtTerminal, H as colorEnabled, I as EXIT_CODES, J as renderInstall, K as installExitStatus, L as agentMarker, M as checkNewName, O as ResendContext, P as CHANNEL_SERVERS, Q as serverPruneChange, R as approvalKind, S as policyChange, T as removeAccountChange, U as escapeForDisplay, X as runCommand, Y as renderPrune, Z as serverInstallChange, _ as runDoctor, a as revokeSendApproval, b as listAccounts, c as downloadReceived, d as listReceived, et as truncateDisplay, f as listScheduled, g as showSentEmail, h as showReceived, i as prepareSend, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, ot as VERSION, p as listSentEmails, q as paint, r as finishSendApproval, s as cancelScheduledChange, t as beginSendApproval, tt as writeResult, u as listDomains, v as addAccountChange, w as policyWanted, x as modeOf, y as inspectKey, z as approveChangeAtTerminal } from "./send-
|
|
2
|
+
import { B as canPrompt, C as policyReport, D as showAccount, E as sendPolicyOf, F as CommsError, G as gatedChangeAtTerminal, H as colorEnabled, I as EXIT_CODES, J as renderInstall, K as installExitStatus, L as agentMarker, M as checkNewName, O as ResendContext, P as CHANNEL_SERVERS, Q as serverPruneChange, R as approvalKind, S as policyChange, T as removeAccountChange, U as escapeForDisplay, X as runCommand, Y as renderPrune, Z as serverInstallChange, _ as runDoctor, a as revokeSendApproval, b as listAccounts, c as downloadReceived, d as listReceived, et as truncateDisplay, f as listScheduled, g as showSentEmail, h as showReceived, i as prepareSend, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, ot as VERSION, p as listSentEmails, q as paint, r as finishSendApproval, s as cancelScheduledChange, t as beginSendApproval, tt as writeResult, u as listDomains, v as addAccountChange, w as policyWanted, x as modeOf, y as inspectKey, z as approveChangeAtTerminal } from "./send-BpwXJL8C.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createInterface } from "node:readline/promises";
|
|
5
5
|
import { stripVTControlCharacters } from "node:util";
|
|
@@ -3370,7 +3370,7 @@ Exit codes: 0 ok · 1 unexpected · 10 a send or a change was refused or needs a
|
|
|
3370
3370
|
}));
|
|
3371
3371
|
const mcp = program.command("mcp").description("run the MCP server on stdio, for a coding agent to connect to").option("--account <name>", "pin the server to one account; every tool then acts on it and no other").action(async (flags) => {
|
|
3372
3372
|
ran = true;
|
|
3373
|
-
const { startResendStdioServer } = await import("./stdio-entry-
|
|
3373
|
+
const { startResendStdioServer } = await import("./stdio-entry-CVMfmkCS.mjs");
|
|
3374
3374
|
await startResendStdioServer({
|
|
3375
3375
|
...deps,
|
|
3376
3376
|
env,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as ROUTES, it as RESEND_DOWNLOAD_ORIGIN, nt as REFUSED, ot as VERSION, rt as RESEND_API_ORIGIN } from "./send-
|
|
2
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { at as ROUTES, it as RESEND_DOWNLOAD_ORIGIN, nt as REFUSED, ot as VERSION, rt as RESEND_API_ORIGIN } from "./send-BpwXJL8C.mjs";
|
|
2
|
+
import { t as createResendMcpServer } from "./server-C3PKeQSN.mjs";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* The library entry of `@agentcomms/resend`.
|
|
@@ -12,7 +12,7 @@ import { constants as constants$1 } from "node:fs";
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/version.ts
|
|
14
14
|
/** The package version, read from package.json at build time. */
|
|
15
|
-
const VERSION$1 = "0.
|
|
15
|
+
const VERSION$1 = "0.8.0";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/api/routes.ts
|
|
18
18
|
/**
|
|
@@ -187,7 +187,7 @@ function refusedBecause(method, pathname) {
|
|
|
187
187
|
return null;
|
|
188
188
|
}
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region ../core/dist/servers-
|
|
190
|
+
//#region ../core/dist/servers-C9e_nZMJ.mjs
|
|
191
191
|
/**
|
|
192
192
|
* Every failure a user or an agent can act on carries a specific, stable code from this registry, a message, an
|
|
193
193
|
* optional one-line hint and structured `details`. The code decides the process exit status; agents and skills branch
|
|
@@ -1071,7 +1071,7 @@ const CHANNEL_SNAPSHOT = [
|
|
|
1071
1071
|
word: "slack",
|
|
1072
1072
|
can: "post to Slack"
|
|
1073
1073
|
},
|
|
1074
|
-
hosts: ["slack.com"],
|
|
1074
|
+
hosts: ["slack.com", "files.slack.com"],
|
|
1075
1075
|
approve: "agent-slack approve",
|
|
1076
1076
|
skills: {
|
|
1077
1077
|
prefix: "slack-",
|
|
@@ -5908,7 +5908,7 @@ function wholeNumber(raw, rule) {
|
|
|
5908
5908
|
return value;
|
|
5909
5909
|
}
|
|
5910
5910
|
/** The package version, read from package.json at build time. */
|
|
5911
|
-
const VERSION = "0.
|
|
5911
|
+
const VERSION = "0.8.0";
|
|
5912
5912
|
/**
|
|
5913
5913
|
* Registering, pruning and listing the MCP servers of every channel, from the core.
|
|
5914
5914
|
*
|
|
@@ -6163,7 +6163,7 @@ function serverPruneChange(core, env, request, own) {
|
|
|
6163
6163
|
};
|
|
6164
6164
|
const { packageName, version } = ownProduct(request.channel, own) ?? {
|
|
6165
6165
|
packageName: channelServer(request.channel).packageName,
|
|
6166
|
-
version: "0.
|
|
6166
|
+
version: "0.8.0"
|
|
6167
6167
|
};
|
|
6168
6168
|
const product = {
|
|
6169
6169
|
packageName,
|
|
@@ -6202,7 +6202,7 @@ function serverPruneChange(core, env, request, own) {
|
|
|
6202
6202
|
};
|
|
6203
6203
|
}
|
|
6204
6204
|
//#endregion
|
|
6205
|
-
//#region ../core/dist/tool-arguments-
|
|
6205
|
+
//#region ../core/dist/tool-arguments-nyLcGiBq.mjs
|
|
6206
6206
|
const APPLIED = Symbol.for("agentcomms.strictToolArguments");
|
|
6207
6207
|
const TARGET = "draft-2020-12";
|
|
6208
6208
|
/**
|
|
@@ -16142,7 +16142,7 @@ function relativeSubpath(out, field = "out") {
|
|
|
16142
16142
|
if (!value) return "";
|
|
16143
16143
|
const refuse = (why) => {
|
|
16144
16144
|
throw new CommsError("BAD_DATA", `${field} must be a relative subpath: ${why}`, {
|
|
16145
|
-
hint:
|
|
16145
|
+
hint: "Pass something like \"reports/august\". It is always placed inside this account’s own folder.",
|
|
16146
16146
|
details: { value }
|
|
16147
16147
|
});
|
|
16148
16148
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as toCommsError, A as MODES, C as policyReport, D as showAccount, F as CommsError, N as strictToolArguments, O as ResendContext, S as policyChange, T as removeAccountChange, V as changeToolResult, W 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 SEND_POLICIES, k as CHANGE_POLICIES, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, ot as VERSION, p as listSentEmails, s as cancelScheduledChange, u as listDomains, w as policyWanted } from "./send-
|
|
1
|
+
import { $ as toCommsError, A as MODES, C as policyReport, D as showAccount, F as CommsError, N as strictToolArguments, O as ResendContext, S as policyChange, T as removeAccountChange, V as changeToolResult, W 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 SEND_POLICIES, k as CHANGE_POLICIES, l as getMetrics, m as listSuppressions, n as executeSend, o as sendStatus, ot as VERSION, p as listSentEmails, s as cancelScheduledChange, u as listDomains, w as policyWanted } from "./send-BpwXJL8C.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { t as createResendMcpServer } from "./server-C3PKeQSN.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.8.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.8.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": "6ba01db89c28176192ba5ffca72b14866e6b6f67"
|
|
98
98
|
}
|