refactor(binary): reuse session open options (#17052)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-12-05 19:38:16 +08:00
1 parent f04c73ad74
commit fd86f1f7fd
1 file changed
+2 -13
+2 -13
View File
@@ -1,21 +1,18 @@
import type { Evidence } from "../../domain/evidence.js";
import type { EvidenceInspectionRecords } from "../../domain/evidenceRecordSummary.js";
import type { EspFlashSelection } from "../../domain/firmware/espFlashLocation.js";
import type { InvestigationRecordPort } from "../investigation/InvestigationRecordPort.js";
import type { RecoveryAdmission } from "../investigation/InvestigationRetention.js";
import type { ResetInvestigationReceipt } from "../../domain/investigationLifecycle.js";
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
import type { NativeLoadSelection } from "../../domain/rawBinary.js";
import type { JsonValue } from "../../domain/jsonValue.js";
import type { AnalysisSnapshot } from "../../domain/analysisSnapshot.js";
import type { AnalysisProfileCommitment } from "../../domain/analysisProfile.js";
import type { AnalysisProviderSelector } from "../../domain/providerSelection.js";
import type { BinarySessionDetail } from "../../contracts/sessionStatusContract.js";
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
import type { AnalysisCleanupRetry } from "../../domain/analysisErrorRecovery.js";
import type { Result } from "../../domain/result.js";
import type { EvidenceIntegrityError } from "../../domain/evidenceErrors.js";
import type { AnalysisSnapshotLoader } from "./BinarySessionOpen.js";
import type { BinarySessionOpenOptions } from "./BinarySessionOpen.js";
import type { WorkflowSnapshotRecordInput } from "./BinarySessionRecords.js";
import type { ResolvedAppBundleResourceRoot } from "../../domain/apple/bundleResourceRoot.js";
import type { binaryTargetSummary } from "./BinaryTargetSummary.js";
@@ -98,15 +95,7 @@ export interface BinarySessionPort
): Promise<Result<Result<Value, AnalysisError>, AnalysisError>>;
open(
path: string,
options?: {
readonly signal?: AbortSignal;
readonly targetKind?: BinaryTarget["kind"];
readonly loadSelection?: NativeLoadSelection;
readonly espFlash?: EspFlashSelection;
readonly snapshot?: AnalysisSnapshot;
readonly loadSnapshot?: AnalysisSnapshotLoader;
readonly providerId?: AnalysisProviderSelector;
},
options?: Readonly<BinarySessionOpenOptions>,
): Promise<BinaryOpenResult>;
/** Open a resource-only app root without selecting or inventing an executable target. */
openBundleResources(