mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 14:31:22 +00:00
* 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
16 lines
633 B
TypeScript
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),
|
|
);
|