mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 05:51:06 +00:00
* fix(process): report denied inspection as typed cleanup failures Preserve the native ps diagnostic through owned-worker cleanup and finalize one-shot JavaScript analysis before Evidence delivery. Retain mandatory inspection and existing cleanup authority. Preserve the inspector diagnostic when the initial process-table read succeeds but pre-signal revalidation fails, and remove the unreachable typed-error branch so retained artifact retry failures project through the existing cleanup contract. * fix(resources): preserve independent close failure ownership * fix(cli): retain cleanup recovery and nested close evidence * refactor(providers): classify rejected closes at the shared boundary * test(cli): preserve bundle metadata and physical inspection failures * fix(cli): preserve the JavaScript failure envelope after finalization * test(cli): validate the JavaScript error envelope at its boundary * fix(providers): preserve unnamed close failure resources * fix(cli): retain invocation owners through outer cleanup * test(cli): distinguish reported cleanup failures from uncaught errors * fix(cli): compose each runtime’s declared cleanup owners * test(cli): preserve the original cleanup rejection * test(cli): allow cleanup retry recovery after a reported failure * fix(cli): report final cleanup after returned results * fix(cli): preserve launcher executable mode * test(cli): retain invocation cleanup in file sessions --------- Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
25 lines
899 B
TypeScript
25 lines
899 B
TypeScript
import type { DirectAnalysis } from "../composition/directAnalysis.js";
|
|
import type { Logger } from "pino";
|
|
import { registerCoreBinaryCommands } from "./coreBinaryCommands.js";
|
|
import { registerCoreNativeCommands } from "./coreNativeCommands.js";
|
|
import type { CliInstance } from "./types.js";
|
|
import type { CliJavaScriptAnalysisHost } from "./javascriptApplicationAnalysis.js";
|
|
|
|
/** Register core binary and native deep-analysis CLI commands. */
|
|
export const registerCoreAnalysisCommands = (
|
|
cli: CliInstance,
|
|
logger: Logger,
|
|
runDirectAnalysis: DirectAnalysis["runDirectAnalysis"],
|
|
environment: Readonly<Record<string, string | undefined>>,
|
|
javascriptAnalysis?: CliJavaScriptAnalysisHost,
|
|
): void => {
|
|
registerCoreBinaryCommands(
|
|
cli,
|
|
logger,
|
|
runDirectAnalysis,
|
|
environment,
|
|
javascriptAnalysis,
|
|
);
|
|
registerCoreNativeCommands(cli, logger, runDirectAnalysis);
|
|
};
|