fix(contracts): preserve local inputs and comparison uncertainty

This commit is contained in:
morluto
2026-10-09 06:47:48 +08:00
parent 7a7460f04f
commit 70e8a8f860
35 changed files with 460 additions and 386 deletions
+7 -8
View File
@@ -1,17 +1,16 @@
import { z } from "zod";
import { digestSchema } from "../digests.js";
import { analyzeJavaScriptApplicationInputSchema } from "./javascriptApplicationAnalysis.js";
import { localPathStringSchema } from "../localPath.js";
/** Recover derived readable modules from one explicitly selected local script. */
export const javascriptRecoveryInputSchema = z.strictObject({
path: z
.string()
.min(1)
.describe("Absolute path to a UTF-8 JavaScript file; never executed"),
output_directory: z
.string()
.min(1)
.describe("Absolute absent output directory; parent must exist"),
path: localPathStringSchema.describe(
"Absolute path to a UTF-8 JavaScript file; never executed",
),
output_directory: localPathStringSchema.describe(
"Absolute absent output directory; parent must exist",
),
extraction_mode: z
.enum(["structural", "heuristic", "inspection"])
.default("structural")