refactor: remove forwarding exports and redundant aliases

This commit is contained in:
morluto
2026-10-09 22:46:09 +08:00
parent 69c3b32a21
commit ad59531a96
416 changed files with 855 additions and 1208 deletions
+4 -7
View File
@@ -1,6 +1,6 @@
import type { EvidenceMcpServer } from "./EvidenceMcpServer.js";
import type { BinarySessionPort } from "../application/binary/BinarySession.js";
import type { BinarySessionPort } from "../application/binary/BinarySessionPort.js";
import {
readEvidenceBundle,
writeEvidenceBundle,
@@ -138,13 +138,10 @@ const registerListUnknownsTool = ({
listContract.name,
toolRegistrationOptions(listContract),
(input) => {
const filters = input;
const all = session.listUnknowns({
...(filters.status === undefined ? {} : { status: filters.status }),
...(filters.severity === undefined
? {}
: { severity: filters.severity }),
...(filters.domain === undefined ? {} : { domain: filters.domain }),
...(input.status === undefined ? {} : { status: input.status }),
...(input.severity === undefined ? {} : { severity: input.severity }),
...(input.domain === undefined ? {} : { domain: input.domain }),
});
return server.delivery.toCallToolResult(
ok({