fix(paths): enforce selected path contracts at admission (#9465)

This commit is contained in:
morluto authored and GitHub committed 2026-11-09 03:14:48 +08:00
1 parent b4b881116f
commit 25d3c7237f
18 files changed
+57 -93

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ export const registerCoreNativeCommands = (
cli.command(CLI_COMMANDS.inspectNativeDataType, {
description: "Inspect one recovered database type or typed data object",
args: z.object({
path: z.string().describe("Local native executable or app path"),
path: localPathStringSchema.describe("Local native executable or app path"),
}),
options: z.object({
type: z.string().optional().describe("Exact database type category path"),
+1 -1
View File
@@ -26,7 +26,7 @@ export const registerDecompileDirectoryCommand = (
description:
"Write every function's pseudocode into a directory and return a manifest",
args: z.object({
path: z.string().describe("App or program path"),
path: localPathStringSchema.describe("App or program path"),
}),
options: z.object({
output: localPathStringSchema.describe(
+2 -1
View File
@@ -8,6 +8,7 @@ import { logCliCommand } from "../cliLogging.js";
import { projectAnalysisError } from "../domain/analysisErrorProjection.js";
import { analysisInputErrorFromIssues } from "../domain/inputIssueProjection.js";
import { jsonValueSchema } from "../domain/jsonValue.js";
import { localPathStringSchema } from "../domain/localPath.js";
import { nativeCallObservationInputSchema } from "../domain/native/nativeCallObservation.js";
import type { Logger } from "pino";
import type { CliInstance } from "./types.js";
@@ -24,7 +25,7 @@ export const registerNativeCallCommands = (
description:
"Launch a Mach-O under LLDB and record entries into selected functions or Objective-C methods",
args: z.object({
path: z.string().describe("Mach-O or app path"),
path: localPathStringSchema.describe("Mach-O or app path"),
inputJson: z
.string()
.describe(