fix: consolidate boundary ownership and cleanup failure paths (#477)

This commit is contained in:
morluto
2026-09-08 10:59:13 +08:00
committed by GitHub
parent c490d85045
commit 2160d4fae5
138 changed files with 2220 additions and 1781 deletions
+2 -9
View File
@@ -27,18 +27,11 @@ import { CLI_COMMANDS } from "./cliCommandNames.js";
import { parseCliJsonInput } from "./cliJsonInput.js";
import {
electronPageInspectionOptions,
electronScopeOptions,
javascriptApplicationOptions,
} from "./cliObservationOptions.js";
import { runCliJavaScriptApplicationAnalysis } from "./cli/javascriptApplicationAnalysis.js";
const scopeOptions = {
allowedFileRoots: z
.array(z.string().min(1))
.optional()
.describe("Filesystem roots; defaults to REA_ELECTRON_FILE_ROOTS_JSON"),
approved: z.boolean().default(false).describe("Approve passive observation"),
};
/** Register CLI equivalents of the Electron MCP tools. */
export const registerElectronCommands = (
cli: ReturnType<typeof Cli.create>,
@@ -137,7 +130,7 @@ const registerElectronTargetList = (
.describe("Configured loopback Electron CDP endpoint"),
}),
options: z.object({
...scopeOptions,
...electronScopeOptions,
offset: z
.number()
.int()