refactor(evidence): share bundle inspection option types (#16509)

This commit is contained in:
Vincent Koc
2026-12-04 07:32:23 +08:00
committed by GitHub
parent a8d6a9f439
commit 474c0537c3
+1 -9
View File
@@ -29,7 +29,6 @@ import {
evidenceBundleExportReceipt,
} from "./EvidenceBundleFiles.js";
import { inspectEvidenceBundle } from "./investigation/InspectEvidenceBundle.js";
import type { EvidenceRecordFilters } from "../domain/evidenceRecordSummary.js";
import {
finalizedResult,
runOwned,
@@ -261,15 +260,8 @@ const projectWrite = (
/** Standalone bundle discovery shares the same read owner as import and comparison. */
export const inspectEvidenceBundleCommand = async (
input: {
input: Parameters<typeof inspectEvidenceBundle>[1] & {
readonly path: string;
readonly detail: "complete" | "summary" | "records" | "links";
readonly filters?: EvidenceRecordFilters | undefined;
readonly offset?: number | undefined;
readonly limit?: number | undefined;
readonly traversal?: "direct" | "retained-closure" | undefined;
readonly linked_evidence_id?: string | undefined;
readonly link_status?: "missing" | "retained" | "all" | undefined;
},
signal?: AbortSignal,
) => {