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 1/2] 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, From babe8b9e3be152d1b58bfa899505c35fd67df043 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sun, 12 Jul 2026 21:20:39 +0000 Subject: [PATCH 2/2] Refresh metadata after main merge --- metadata/completion-manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/completion-manifest.json b/metadata/completion-manifest.json index 466771386..db0be3e64 100644 --- a/metadata/completion-manifest.json +++ b/metadata/completion-manifest.json @@ -52,7 +52,7 @@ }, { "path": "src/application/DirectAnalysis.ts", - "sha256": "0d986965684d024bb51446d64998b996c16aa26a919e4903ce09070c533be5f1" + "sha256": "2422397e8670bd6807f1c28c4ede264cdb6c9cfd089e3ae8fae2e3f19f7da4c0" }, { "path": "src/application/ProcessSampling.ts",