feat(dotnet): import managed reconstructions
This commit is contained in:
+20
@@ -9,6 +9,7 @@ import {
|
||||
runSessionStatus,
|
||||
} from "./application/DirectAnalysis.js";
|
||||
import { compareManagedMemberPaths } from "./application/ManagedMemberComparisonService.js";
|
||||
import { importManagedReconstructionEvidence } from "./application/ManagedReconstructionService.js";
|
||||
import { planManagedRuntimeCorrelationEvidence } from "./application/ManagedRuntimeCorrelationService.js";
|
||||
import {
|
||||
runSetup,
|
||||
@@ -893,6 +894,25 @@ const registerManagedCommands = (
|
||||
};
|
||||
}),
|
||||
});
|
||||
cli.command(CLI_COMMANDS.importManagedReconstruction, {
|
||||
description:
|
||||
"Import decompiler-produced managed reconstruction against exact static member evidence",
|
||||
args: z.object({
|
||||
inputJson: z
|
||||
.string()
|
||||
.describe("Inline managed reconstruction JSON or JSON file path"),
|
||||
}),
|
||||
run: ({ args }) =>
|
||||
logCliCommand(logger, "import-managed-reconstruction", async () => {
|
||||
const input = await parseCliJsonInput(
|
||||
args.inputJson,
|
||||
"import-managed-reconstruction",
|
||||
);
|
||||
if (!input.ok) return input.error;
|
||||
const result = importManagedReconstructionEvidence(input.value);
|
||||
return result.ok ? result.value : projectAnalysisError(result.error);
|
||||
}),
|
||||
});
|
||||
cli.command(CLI_COMMANDS.planManagedRuntimeCorrelation, {
|
||||
description:
|
||||
"Plan a separately authorized managed runtime-correlation experiment without executing target code",
|
||||
|
||||
Reference in New Issue
Block a user