Files
reverse-engineering-anything/src/composition/binaryDiagnostics/binaryLayout.ts
T
morluto 787b5aafb9 perf(cli/mcp): decouple analysis view contracts and defer tshark PATH probes (#13316)
* perf(cli,mcp): decouple analysisViewResult/session contracts from CLI paths and defer tshark PATH probes

* test(cli): separate one-shot import suites from catalog startup
2026-11-22 14:54:02 +00:00

16 lines
633 B
TypeScript

import { BinaryLayoutService } from "../../application/binaryDiagnostics/BinaryLayoutService.js";
import { PwntoolsLayoutProvider } from "../../native/pwntools/PwntoolsLayoutProvider.js";
import {
HOST_PLATFORM,
type HostPlatform,
} from "../../platform/HostPlatform.js";
/** Compose the offline adapter without import-time I/O or dependency acquisition. */
export const createBinaryLayoutService = (
environment: Readonly<NodeJS.ProcessEnv> = process.env,
host: HostPlatform = HOST_PLATFORM,
): BinaryLayoutService =>
new BinaryLayoutService(
new PwntoolsLayoutProvider(environment, undefined, undefined, host),
);