fix(android): report startup and selector failure causes

This commit is contained in:
morluto
2026-10-09 06:49:02 +08:00
parent 70e8a8f860
commit 6c13fc8e0a
10 changed files with 288 additions and 12 deletions
+6
View File
@@ -4,6 +4,12 @@ import { jsonValueSchema } from "../domain/jsonValue.js";
import type { AndroidOperation } from "../domain/android/androidAnalysis.js";
const count = z.number().int().nonnegative();
/** Selector failures authored by REA's bridge, separate from arbitrary engine errors. */
export const jadxInputFailureSchema = z.strictObject({
kind: z.literal("invalid-input"),
field: z.enum(["class_name", "method_name", "overload_index"]),
message: z.string().min(1),
});
/** Values observed inside the exact JVM producing the analysis. */
export const jadxRuntimeSchema = z.object({
engine_reported_version: z.string().min(1),