Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(native): name the CLI flag that selects another plist

Kaoru08229b6950373cfa
diff --git a/src/native/NativeMacOSProvider.ts b/src/native/NativeMacOSProvider.ts
index a0b499f19..cf8099b28 100644
--- a/src/native/NativeMacOSProvider.ts
+++ b/src/native/NativeMacOSProvider.ts
@@ -820,7 +820,7 @@ const unreadablePlist = (
): AnalysisError => {
const sentence = reason.endsWith(".") ? reason : `${reason}.`;
// Name the default that is missing and the selection that still works.
- const missingDefault = `The target has no readable Contents/Info.plist at ${path}: ${sentence} Pass path to inspect another plist.`;
+ const missingDefault = `The target has no readable Contents/Info.plist at ${path}: ${sentence} Select another plist in the target with the path input (CLI: --relative-path).`;
return requested === undefined
? new AnalysisCapabilityUnavailableError(
IDENTITY.id,
diff --git a/tests/boundary/cli/nativePlistSelectionFailureCli.test.ts b/tests/boundary/cli/nativePlistSelectionFailureCli.test.ts
index 642f1011e..e14ca4cc3 100644
--- a/tests/boundary/cli/nativePlistSelectionFailureCli.test.ts
+++ b/tests/boundary/cli/nativePlistSelectionFailureCli.test.ts
@@ -113,12 +113,10 @@ describe.skipIf(process.platform !== "darwin")(
expect(result.exitCode).toBe(1);
expect(result.json).toMatchObject({
code: "capability_unavailable",
- message: expect.stringContaining(
- "Pass path to inspect another plist",
- ),
+ message: expect.stringContaining("(CLI: --relative-path)"),
remediation: {
action: expect.stringContaining(
- "Pass path to inspect another plist",
+ "Select another plist in the target with the path input (CLI: --relative-path).",
),
},
details: {