Apply caller-selected analyzer opt-outs before Ghidra analysis, reject unknown or ineffective names, and commit raw/header imports to the same analyzer profile. Use supported x86 raw compiler specs and cover the real analyzer/readback and raw workflows. Adopts the original implementation from #1800 with validated corrections. Refs #1783, #1836. Co-authored-by: akushonkamen <74654766+akushonkamen@users.noreply.github.com> Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com> Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import type { LogLevel } from "../logger.js";
|
|
import type { ReferenceSourcePolicy } from "../domain/referenceSourcePolicy.js";
|
|
import type { AnalysisProviderSelector } from "../contracts/providerSelection.js";
|
|
|
|
import type { GhidraLanguageOverride } from "./ghidraLanguageOverride.js";
|
|
import type { McpInputSchemaProfile } from "./mcpInputSchemaProfile.js";
|
|
|
|
export interface AppConfig {
|
|
readonly mcpMaxResponseBytes?: number;
|
|
readonly mcpInputSchemaProfile?: McpInputSchemaProfile;
|
|
readonly analysisProvider: AnalysisProviderSelector;
|
|
readonly idaMcpConfigPath?: string;
|
|
readonly ghidraInstallDir: string | undefined;
|
|
readonly ghidraJavaHome: string | undefined;
|
|
readonly ghidraStartupTimeoutMs: number;
|
|
readonly ghidraLanguageOverride?: GhidraLanguageOverride;
|
|
readonly ghidraDisabledAnalyzers?: readonly string[];
|
|
readonly ghidraSeedFile?: string;
|
|
readonly ghidraNativeAotJar?: string;
|
|
readonly ilspyCmdPath: string | undefined;
|
|
readonly hopperLauncherPath: string;
|
|
readonly hopperStartupTimeoutMs: number;
|
|
readonly hopperTargetPath: string | undefined;
|
|
readonly hopperTargetKind: "executable" | "database";
|
|
readonly hopperLoaderArgs: readonly string[];
|
|
readonly logLevel: LogLevel;
|
|
readonly referenceSourcePolicy: ReferenceSourcePolicy;
|
|
}
|