mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 22:41:36 +00:00
* refactor(analysis): centralize resource budgets and recovery facts * feat(analysis): expose ASAR and Ghidra runtime admission controls * feat(artifacts): expose reader admission and preserve limited recognition * feat(javascript): expose recoverable semantic precision budgets * feat(web): add recoverable source-map budgets and compact retained views * feat(web): make historical capture decoding budgets recoverable * fix(desktop): enforce selected view policies across capture and export * feat(runtime): make Frida and LLDB retention budgets selectable * feat(native): expose diagnostic budgets and preserve exhaustion causes * feat(managed): expose recoverable snapshot and representation budgets * feat(metadata): make Go and Rust inspection budgets recoverable * feat(wasm): expose representation and producer admissions * feat(evm): expose per-call worker resource budgets * feat(android): make resource and string-pool omissions recoverable * feat(producers): expose command and recorded-capture budgets * docs(analysis): record recovery contracts and integrated validation * fix(docs): link calibration oracle from published verification pages * fix(docs): restore desktop task anchors and receipt links * test(analysis): align fixtures with selectable budget contracts * fix(analysis): remove source-location projector dependency cycle * test(analysis): refresh budget recovery and verifier regressions * test(analysis): preserve format and publication recovery expectations * test(windows): align conformance with owned runtime admission * fix(desktop): preserve selected alias kinds in exported state * test(analysis): align provider fixtures with recoverable budgets * test(desktop): validate emitted alias metadata structurally * fix(ghidra): classify bounded Windows endpoint refusals * test(cli): assert selectable artifact admission recovery * fix(cli): preserve capture provenance in environment builds
67 lines
2.4 KiB
TypeScript
67 lines
2.4 KiB
TypeScript
import { projectCliAnalysisResult } from "./projectCliAnalysisResult.js";
|
|
import { z } from "incur";
|
|
import { evmInterfaceModule } from "../composition/evm.js";
|
|
import { logCliCommand } from "../cliLogging.js";
|
|
import type { Logger } from "pino";
|
|
import type { CliInstance } from "./types.js";
|
|
import { withCommandCancellation } from "./commandCancellation.js";
|
|
import { localPathStringSchema } from "../domain/localPath.js";
|
|
import { absoluteCallerPath } from "../filesystem/callerPath.js";
|
|
import { finishCliEvidenceCommand } from "./cliEvidenceCallerPath.js";
|
|
import { cliDecimalField } from "./options.js";
|
|
import {
|
|
inspectEvmInterfaceInputSchema,
|
|
evmProducerLimitsSchema,
|
|
} from "../domain/evm/evmInterface.js";
|
|
import { producerLimitsOption } from "./producerLimitsOption.js";
|
|
|
|
/** Resolve operator paths and preserve explicit encoding through the shared workflow. */
|
|
export const registerEvmCommands = (
|
|
cli: CliInstance,
|
|
logger: Logger,
|
|
environment: Readonly<NodeJS.ProcessEnv>,
|
|
): void => {
|
|
const service = evmInterfaceModule.create(environment);
|
|
cli.command(evmInterfaceModule.cliCommand, {
|
|
description: "Infer interface candidates from explicit local EVM bytecode",
|
|
args: z.object({
|
|
path: localPathStringSchema.describe("Local bytecode carrier"),
|
|
encoding: z
|
|
.enum(["raw", "hex"])
|
|
.describe("Selected carrier representation"),
|
|
}),
|
|
options: z.object({
|
|
producerLimits: producerLimitsOption(evmProducerLimitsSchema),
|
|
timeoutMs: cliDecimalField(
|
|
inspectEvmInterfaceInputSchema.shape.timeout_ms,
|
|
),
|
|
}),
|
|
run: ({ args, options }) =>
|
|
withCommandCancellation((signal) =>
|
|
logCliCommand(logger, evmInterfaceModule.cliCommand, () =>
|
|
finishCliEvidenceCommand(
|
|
args.path,
|
|
() =>
|
|
service.inspect(
|
|
{
|
|
path: absoluteCallerPath(args.path),
|
|
encoding: args.encoding,
|
|
...(options.producerLimits === undefined
|
|
? {}
|
|
: { producer_limits: options.producerLimits }),
|
|
...(options.timeoutMs === undefined
|
|
? {}
|
|
: { timeout_ms: options.timeoutMs }),
|
|
},
|
|
{ signal },
|
|
),
|
|
service,
|
|
"evmole-interface",
|
|
"inspect_evm_interface",
|
|
signal,
|
|
).then(projectCliAnalysisResult),
|
|
),
|
|
),
|
|
});
|
|
};
|