Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
refactor(cli): share direct analysis tool types
morluto329fdf6fe8f3
diff --git a/src/application/DirectAnalysis.ts b/src/application/DirectAnalysis.tsindex b7f605f83..ba0969c51 100644--- a/src/application/DirectAnalysis.ts+++ b/src/application/DirectAnalysis.ts@@ -13,6 +13,15 @@ const WORKFLOW_PROVIDER = {version: "1",} as const;+type DirectAnalysisTool =+ | "binary_overview"+ | "procedure_pseudo_code"+ | "analyze_function"+ | "search_strings"+ | "search_procedures"+ | "xrefs"+ | "trace_feature";+/*** Open one binary, execute one tool, and always release the bridge session.* Unlike MCP mode, every CLI invocation is intentionally isolated and does not@@ -20,14 +29,7 @@ const WORKFLOW_PROVIDER = {*/export const runDirectAnalysis = async (path: string,- tool:- | "binary_overview"- | "procedure_pseudo_code"- | "analyze_function"- | "search_strings"- | "search_procedures"- | "xrefs"- | "trace_feature",+ tool: DirectAnalysisTool,arguments_: Readonly<Record<string, JsonValue>>,logger: Logger = silentLogger,): Promise<JsonValue> => runAnalysis(path, tool, arguments_, logger);@@ -57,16 +59,7 @@ export const runSessionStatus = async (const runAnalysis = async (path: string,- tool:- | NativeToolName- | ArtifactToolName- | "binary_overview"- | "procedure_pseudo_code"- | "analyze_function"- | "search_strings"- | "search_procedures"- | "xrefs"- | "trace_feature",+ tool: NativeToolName | ArtifactToolName | DirectAnalysisTool,arguments_: Readonly<Record<string, JsonValue>>,logger: Logger,): Promise<JsonValue> => {diff --git a/src/cliEvidenceCommands.ts b/src/cliEvidenceCommands.tsindex 82ddca626..c602d4309 100644--- a/src/cliEvidenceCommands.ts+++ b/src/cliEvidenceCommands.ts@@ -9,7 +9,7 @@ import { parseConfig } from "./config.js";import { logCliCommand } from "./cliLogging.js";import type { Logger } from "./logger.js";-/** Register filesystem-gated Evidence v2 commands shared by package smoke tests. */+/** Register filesystem-gated Evidence v2 commands. */export const registerEvidenceCommands = (cli: ReturnType<typeof Cli.create>,logger: Logger,