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(views): derive layout summary fields from source contract
morluto527ade245ac4
diff --git a/src/domain/analysisView/analysisView.ts b/src/domain/analysisView/analysisView.tsindex f77286525..e19c0a4ec 100644--- a/src/domain/analysisView/analysisView.ts+++ b/src/domain/analysisView/analysisView.ts@@ -100,7 +100,10 @@ import { evidenceSchema, type Evidence } from "../evidence.js";import { jsonObjectSchema, jsonValueSchema } from "../jsonValue.js";import { err, ok, type Result } from "../result.js";import type { AnalysisError } from "../analysisErrorBase.js";-import { safeParseOwnedBinaryLayout } from "../native/binaryLayout.js";+import {+ binaryLayoutSchema,+ safeParseOwnedBinaryLayout,+} from "../native/binaryLayout.js";import { bundleResourceRootSchema } from "../apple/bundleResourceRoot.js";import { functionDossierSchema } from "../hopperValues.js";import {@@ -380,14 +383,10 @@ const artifactSchema = z.strictObject({});const layoutSummarySchema = z.strictObject({- bytes: z.number().int().nonnegative(),- format: z.literal("elf"),- architecture: z.strictObject({- machine: z.literal("EM_X86_64"),- bits: z.literal(64),- byte_order: z.literal("little"),- }),- image_type: z.enum(["ET_EXEC", "ET_DYN", "ET_REL"]),+ bytes: binaryLayoutSchema.shape.artifact.shape.bytes,+ format: binaryLayoutSchema.shape.format,+ architecture: binaryLayoutSchema.shape.architecture,+ image_type: binaryLayoutSchema.shape.image_type,entry: z.strictObject({reported_value: z.string().min(1),meaning: z.enum(["linked-virtual-address", "not-applicable", "absent"]),