mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
fix(setup): keep MCP launchers usable after session cleanup (#13185)
This commit is contained in:
1 parent
49b9245262
commit
1587b46a9f
14 files changed
+602
-73
No files matched your search
@@ -1,11 +1,9 @@
|
||||
import { HOST_PLATFORM } from "../platform/HostPlatform.js";
|
||||
|
||||
import type { FridaInstrumentationPort } from "../ports/frida/FridaInstrumentationPort.js";
|
||||
import { currentClientRegistrationCommand } from "../application/ClientRegistrationIdentity.js";
|
||||
import { parseCliGlobalArguments } from "../cliBuiltinArguments.js";
|
||||
import type { DirectAnalysis } from "../composition/directAnalysis.js";
|
||||
import { parseLogLevel } from "../config/processStart.js";
|
||||
import { parseClientRegistrationCommand } from "../domain/clientRegistrationCommand.js";
|
||||
import { PRODUCT_IDENTITY } from "../identity.js";
|
||||
import { createLogger } from "../logger.js";
|
||||
import { snapshotEnvironment } from "../process/snapshotEnvironment.js";
|
||||
@@ -68,9 +66,6 @@ export const createCliShell = (options: CliShellOptions): CliInstance => {
|
||||
options.selectedEnvironment,
|
||||
HOST_PLATFORM.platform,
|
||||
);
|
||||
const defaultRegistration = parseClientRegistrationCommand(
|
||||
currentClientRegistrationCommand({ environment }),
|
||||
);
|
||||
// The executable reports an invalid level before every command except doctor.
|
||||
// Doctor keeps going so its readiness report can name REA_LOG_LEVEL.
|
||||
const level =
|
||||
@@ -114,7 +109,6 @@ export const createCliShell = (options: CliShellOptions): CliInstance => {
|
||||
const registration = serveMcpRegistration(
|
||||
global,
|
||||
environment,
|
||||
defaultRegistration,
|
||||
serveOptions ?? {},
|
||||
);
|
||||
if (registration !== undefined) return registration;
|
||||
|
||||
Reference in new issue
Block a user