fix(captures): preserve cleanup ownership and sensitive evidence

This commit is contained in:
morluto committed 2026-10-27 03:02:38 +08:00
1 parent 7a237aa721
commit 347494f3ab
9 files changed
+613 -26

No files matched your search

+3
View File
@@ -17,6 +17,7 @@ import {
import { localPathStringSchema } from "../domain/localPath.js";
import { absoluteCallerPath } from "../filesystem/callerPath.js";
import { explicitSensitiveValueOptions } from "./explicitSensitiveArguments.js";
import { redactExplicitFailure } from "../domain/explicitSensitiveFailure.js";
/** Expose offline historical capture inspection with the same selection contract as MCP. */
export const registerWebNetworkCaptureCommands = (
@@ -116,6 +117,8 @@ export const registerWebNetworkCaptureCommands = (
signal,
detail: options.detail,
evidenceOutput: options.evidence_output,
redactFailure: (error) =>
redactExplicitFailure(error, options.sensitiveValue ?? []),
});
},
),