mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 11:13:21 +00:00
Bind typed service creation, observed availability and retryable cleanup in one composition owner. Reuse selected CLI/MCP factories and canonical contract groups without copying provider operation inventories. Closes #8429. Refs #740. Validated paired real application workflows, actual local Codex CLI Terra/high use, complete Evidence and Unknown checkpoint parity, compiler-backed import boundaries, SDK schemas and final real mixed routing. Automated review findings were fixed at their producing owners. Existing exact-base CodeQL alerts are documented on the PR under the owner-authorized unrelated-check exception; no global alerts or security rules were changed. Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
21 lines
880 B
TypeScript
21 lines
880 B
TypeScript
import { GdbSessionManager } from "../gdb/GdbSessionManager.js";
|
|
import { RizinDebugSessionManager } from "../rizin/RizinDebugSessionManager.js";
|
|
|
|
/** Allocate a GDB session owner; acquisition remains explicit in start(). */
|
|
export const createGdbSessionManager = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
options: Omit<
|
|
NonNullable<ConstructorParameters<typeof GdbSessionManager>[0]>,
|
|
"environment"
|
|
> = {},
|
|
): GdbSessionManager => new GdbSessionManager({ ...options, environment });
|
|
|
|
/** Allocate a Rizin debugger owner without launching a process or target. */
|
|
export const createRizinDebugSessionManager = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
options: NonNullable<
|
|
ConstructorParameters<typeof RizinDebugSessionManager>[1]
|
|
> = {},
|
|
): RizinDebugSessionManager =>
|
|
new RizinDebugSessionManager(environment, options);
|