fix(evidence): cancel exports before atomic publication

This commit is contained in:
Ysopwnable
2026-10-09 09:29:22 +08:00
committed by GitHub
parent 2609352eef
commit 16624f1324
6 changed files with 308 additions and 16 deletions
+2 -1
View File
@@ -42,12 +42,13 @@ const registerExportEvidenceTool = ({
server.registerTool(
exportContract.name,
toolRegistrationOptions(exportContract),
async (input) => {
async (input, context) => {
const bundle = bundleForSerialization(session);
const written = await writeEvidenceBundle(
bundle,
input.path,
input.overwrite,
context.mcpReq.signal,
);
return written.ok
? toCallToolResult(