Files
reverse-engineering-anything/src/composition/cutter.ts
T
gensokyo-dev e18594b247 refactor(composition): unify capability bindings and cleanup ownership (#8441)
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)
2026-11-01 13:30:21 +08:00

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));