@agentcomms/resend 0.11.0 → 0.12.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,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as installExitStatus, B as agentMarker, C as policyChange, D as sendPolicyOf, E as removeAccountChange, F as CHANNEL_SERVERS, H as approvalsOf, I as CommsError, J as commandPathOf, L as EXIT_CODES, N as checkNewName, O as showAccount, Q as gatedChangeAtTerminal, R as SEND_LOOKUP, S as policyApprovalRefusal, T as policyWanted, U as approveChangeAtTerminal, V as approvalKind, W as canPrompt, X as exemptFromUpdateGate, Y as escapeForDisplay, _ as runDoctor, a as revokeSendApproval, at as runCommand, b as listAccounts, c as downloadReceived, ct as serverPruneChange, d as listReceived, dt as truncateDisplay, et as openCore, f as listScheduled, ft as updateGateAtTerminal, g as showSentEmail, h as showReceived, i as prepareSend, it as renderPrune, k as ResendContext, l as getMetrics, lt as terminalUpdateHooks, m as listSuppressions, mt as writeResult, n as executeSend, nt as refuseUnclaimedApproval, o as sendStatus, ot as runUpdateCheckChild, p as listSentEmails, q as colorEnabled, r as finishSendApproval, rt as renderInstall, s as cancelScheduledChange, st as serverInstallChange, t as beginSendApproval, tt as paint, u as listDomains, v as addAccountChange, w as policyReport, x as modeOf, y as inspectKey, yt as VERSION, z as UPDATE_CHECK_CHILD_COMMAND } from "./send-B75DtFiy.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import fs from "node:fs";
|
|
4
5
|
import childProcess from "node:child_process";
|
|
5
6
|
import { createInterface } from "node:readline/promises";
|
|
6
7
|
import { stripVTControlCharacters } from "node:util";
|
|
7
|
-
import fs from "node:fs";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { EventEmitter } from "node:events";
|
|
10
10
|
import { Writable } from "node:stream";
|
|
@@ -3178,7 +3178,7 @@ is out: update first, or put it off (agentcomms update, agentcomms update --late
|
|
|
3178
3178
|
let gated = null;
|
|
3179
3179
|
program.hook("preAction", async (_program, command) => {
|
|
3180
3180
|
const path = commandPathOf(command);
|
|
3181
|
-
if (exemptFromUpdateGate(path)) return;
|
|
3181
|
+
if (exemptFromUpdateGate(path, ["update-check-child"])) return;
|
|
3182
3182
|
const core = openCore({ env });
|
|
3183
3183
|
let ended = null;
|
|
3184
3184
|
const code = await runCommand(output(), async () => {
|
|
@@ -3405,7 +3405,7 @@ is out: update first, or put it off (agentcomms update, agentcomms update --late
|
|
|
3405
3405
|
}));
|
|
3406
3406
|
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) => {
|
|
3407
3407
|
ran = true;
|
|
3408
|
-
const { startResendStdioServer } = await import("./stdio-entry-
|
|
3408
|
+
const { startResendStdioServer } = await import("./stdio-entry-J7I4WiQp.mjs");
|
|
3409
3409
|
await startResendStdioServer({
|
|
3410
3410
|
...deps,
|
|
3411
3411
|
env,
|
|
@@ -3463,6 +3463,9 @@ is out: update first, or put it off (agentcomms update, agentcomms update --late
|
|
|
3463
3463
|
}, RESEND_MCP), flags, `agent-resend mcp prune${flags.includePrinted === true ? " --include-printed" : ""}`);
|
|
3464
3464
|
writeResult(result, output(), () => renderPrune(result, options.color), streams);
|
|
3465
3465
|
}));
|
|
3466
|
+
program.command(`${UPDATE_CHECK_CHILD_COMMAND} <claimedAt>`, { hidden: true }).description("internal: finish the day's update check a command handed on").action(act(async (context, _options, claimedAt) => {
|
|
3467
|
+
await runUpdateCheckChild(context.core, env, claimedAt);
|
|
3468
|
+
}));
|
|
3466
3469
|
try {
|
|
3467
3470
|
await program.parseAsync([...argv], { from: "user" });
|
|
3468
3471
|
} catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _t as
|
|
2
|
-
import { t as createResendMcpServer } from "./server-
|
|
1
|
+
import { _t as RESEND_DOWNLOAD_ORIGIN, gt as RESEND_API_ORIGIN, ht as REFUSED, vt as ROUTES, yt as VERSION } from "./send-B75DtFiy.mjs";
|
|
2
|
+
import { t as createResendMcpServer } from "./server-CalpHRIE.mjs";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* The library entry of `@agentcomms/resend`.
|