fix(snapshot): retain MCP workflow replay bindings

This commit is contained in:
morluto
2026-10-08 23:29:43 +08:00
parent a9e00b83f3
commit 5e1afe454f
7 changed files with 365 additions and 72 deletions
+8
View File
@@ -349,6 +349,14 @@ const registerBinaryAnalysisTools = ({
...analysisOptions,
analysisProfile:
session === undefined ? undefined : () => session.analysisProfile(),
allowsSnapshotReplay:
session === undefined
? undefined
: (operation) => session.allowsSnapshotReplay(operation),
recordWorkflowSnapshot:
session === undefined
? undefined
: (input) => session.recordWorkflowSnapshot(input),
});
const evidenceOptions = { logger, activeTarget, recordEvidence };
registerNativeTools(server, analysis, evidenceOptions);