Files
rea/src/server/registerManagedWorkflowTools/contract.ts
T
morluto b8a9da0c0f refactor(mcp): make analysis states unrepresentable (#468)
* refactor(config): parse capability settings into exact states

* refactor(runtime): encode replay and process outcomes exactly

* refactor: make analysis states unrepresentable

* refactor(mcp): register canonical schemas with SDK

* fix: preserve capability and catalog invariants

* fix(build): remove stale compiled modules

* fix(replay): update real verifier policy dependency

* fix(package): verify the complete MCP catalog

* fix(test): supply complete replay reload policy

* refactor(contracts): centralize output schema lookup

* refactor(mcp): delegate protocol boundaries to SDK

* fix(browser): approve real source capture

* fix(mcp): preserve catalog guidance
2026-08-10 02:28:11 +08:00

28 lines
1.1 KiB
TypeScript

import { MANAGED_WORKFLOW_TOOL_CONTRACTS } from "../../contracts/managedWorkflowToolContracts.js";
/** Locate one managed workflow tool contract by exact name. */
export function managedWorkflowContract(
name: "compare_managed_members",
): (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[0];
export function managedWorkflowContract(
name: "verify_managed_native_boundaries",
): (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[1];
export function managedWorkflowContract(
name: "import_managed_reconstruction",
): (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[2];
export function managedWorkflowContract(
name: "plan_managed_runtime_correlation",
): (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[3];
export function managedWorkflowContract(
name: "project_managed_application_graph",
): (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[4];
export function managedWorkflowContract(
name: (typeof MANAGED_WORKFLOW_TOOL_CONTRACTS)[number]["name"],
) {
const found = MANAGED_WORKFLOW_TOOL_CONTRACTS.find(
(candidate) => candidate.name === name,
);
if (found === undefined) throw new Error(`Missing ${name} contract`);
return found;
}