Allow the composed one-shot dispatch workflow to open a covered Mach-O without selecting a deep provider. The registry still owns selector precedence; explicit request/environment choices remain binding, while non-Mach-O and unsupported hosts retain deep symbol fallback. Requested snapshots keep ordinary binding and profile semantics. Share runtime composition and target admission with the native byte reader. Keep target parsing, resource ownership and Evidence on the original session. Validation: 13 focused files, 192 passed and 2 skipped; npm run check passed. The six previously blocked native property CLI controls now pass. Ten measured CLI workflows preserved exact metadata facts; warm raw reply token medians 1344/927, elapsed .475/.547s, CPU .691/.745s, sampled family RSS351.2/359.3MiB baseline/candidate. Baseline used explicit Ghidra workaround; true cold and full-agent costs unmeasured. No speed/memory improvement or Windows claim. Refs #4555
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
import type { AppConfig } from "../config/types.js";
|
|
import type { parseConfig } from "../config/parseConfig.js";
|
|
import type { Logger } from "pino";
|
|
import type { BinarySession } from "./binary/BinarySession.js";
|
|
|
|
/** Configuration and one-shot session factories supplied by the production boundary. */
|
|
export interface DirectAnalysisDependencies {
|
|
/** Read the caller-selected configuration without consulting ambient state. */
|
|
readonly readConfiguration: () => ReturnType<typeof parseConfig>;
|
|
readonly createBinarySession: (
|
|
config: AppConfig,
|
|
logger: Logger,
|
|
) => BinarySession | Promise<BinarySession>;
|
|
/** Prefer byte-backed dispatch inspection while preserving explicit selection. */
|
|
readonly createNativeDispatchBinarySession: (
|
|
config: AppConfig,
|
|
logger: Logger,
|
|
) => BinarySession | Promise<BinarySession>;
|
|
/** Create an artifact-only session without selecting native analysis engines. */
|
|
readonly createArtifactBinarySession: () =>
|
|
| BinarySession
|
|
| Promise<BinarySession>;
|
|
/** Create a native utility session without selecting deep analysis engines. */
|
|
readonly createNativeBinarySession: () =>
|
|
| BinarySession
|
|
| Promise<BinarySession>;
|
|
readonly createManagedBinarySession: () =>
|
|
| BinarySession
|
|
| Promise<BinarySession>;
|
|
}
|