fix(frida): share canonical discovery results across adapters
Own device and process discovery projection in the application workflow, bound to each named output contract. CLI and MCP now consume that result directly, including retained observations when final CLI cleanup fails. Remove the duplicate adapter projections and preserve provider failures, caller-selected identifiers, process records and cleanup diagnostics. Validated with 103 focused tests, npm run check and docs:check. Real local Frida 17.23.2 discovery on macOS arm64 returned the same three devices through the compiled CLI and production stdio MCP; both now pass the advertised schema. Remote endpoints and native Linux/Windows unverified. Fixes #4637 Co-authored-by: shreyansh1729 <[email protected]> Co-authored-by: Kaushalendra-Marcus <[email protected]>
This commit is contained in:
1 parent
91884c3743
commit
4cbcead46c
5 files changed
+192
-53
No files matched your search
@@ -120,12 +120,7 @@ export const registerFridaCommands = (
|
||||
const result = await withProviderCleanup(() =>
|
||||
service.listDevices(remoteFrom(options)),
|
||||
);
|
||||
return result.ok
|
||||
? {
|
||||
devices: result.value.devices,
|
||||
cleanup_error: result.value.cleanupError,
|
||||
}
|
||||
: projectAnalysisError(result.error);
|
||||
return result.ok ? result.value : projectAnalysisError(result.error);
|
||||
}),
|
||||
});
|
||||
cli.command(CLI_COMMANDS.listFridaProcesses, {
|
||||
@@ -158,13 +153,7 @@ export const registerFridaCommands = (
|
||||
: { remote },
|
||||
),
|
||||
);
|
||||
return result.ok
|
||||
? {
|
||||
device_id: result.value.deviceId,
|
||||
processes: result.value.processes,
|
||||
cleanup_error: result.value.cleanupError,
|
||||
}
|
||||
: projectAnalysisError(result.error);
|
||||
return result.ok ? result.value : projectAnalysisError(result.error);
|
||||
}),
|
||||
});
|
||||
cli.command(CLI_COMMANDS.instrumentWithFrida, {
|
||||
|
||||
Reference in new issue
Block a user