mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +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)
12 lines
511 B
TypeScript
12 lines
511 B
TypeScript
import { CutterBridgeClient } from "../cutter/CutterBridgeClient.js";
|
|
import { CutterBridgeService } from "../cutter/CutterBridgeService.js";
|
|
|
|
/** Compose a fresh bridge owner without discovering or contacting Cutter. */
|
|
export const createCutterBridgeService = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
options: NonNullable<
|
|
ConstructorParameters<typeof CutterBridgeClient>[1]
|
|
> = {},
|
|
): CutterBridgeService =>
|
|
new CutterBridgeService(new CutterBridgeClient(environment, options));
|