From 7bcf8ab69d1a9c08e4d78cb3a4c53090703b5058 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 13 Jul 2026 04:27:15 +0800 Subject: [PATCH] Route CLI analyze through enhanced tools --- src/application/DirectAnalysis.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/application/DirectAnalysis.ts b/src/application/DirectAnalysis.ts index 740c4d260..cd1bdc931 100644 --- a/src/application/DirectAnalysis.ts +++ b/src/application/DirectAnalysis.ts @@ -1,5 +1,6 @@ import { parseConfig } from "../config.js"; import type { JsonValue } from "../domain/jsonValue.js"; +import { EnhancedTools } from "./EnhancedTools.js"; import { createBinarySession } from "./runtime.js"; import { silentLogger, type Logger } from "../logger.js"; import { createEvidence } from "../domain/evidence.js"; @@ -23,7 +24,13 @@ export const runDirectAnalysis = async ( const opened = await session.open(path); if (!opened.ok) return { error: opened.error._tag, message: opened.error.message }; - const result = await session.execute(tool, arguments_); + const result = + tool === "binary_overview" + ? await new EnhancedTools(session).execute( + "binary_overview", + arguments_, + ) + : await session.execute(tool, arguments_); return result.ok ? createEvidence(opened.value, session.providerIdentity(), { operation: tool,