refactor: use canonical implementations and types directly
Remove forwarding wrappers and shadow aliases, migrate callers and verification scripts to their owners, and share one exhaustive semantic resource-bound projection.
This commit is contained in:
@@ -5,7 +5,8 @@ import { silentLogger } from "../logger.js";
|
||||
import type { Logger } from "pino";
|
||||
import type { DirectAnalysisDependencies } from "./DirectAnalysisDependencies.js";
|
||||
|
||||
const runSessionStatus = async (
|
||||
/** Read target-free provider status and operation availability. */
|
||||
export const runSessionStatus = async (
|
||||
dependencies: Pick<
|
||||
DirectAnalysisDependencies,
|
||||
"createBinarySession" | "readConfiguration"
|
||||
@@ -26,21 +27,3 @@ const runSessionStatus = async (
|
||||
await session.close();
|
||||
}
|
||||
};
|
||||
|
||||
/** List binary-session provider candidates and auxiliary operation availability. */
|
||||
export const runProviderStatus = (
|
||||
dependencies: Pick<
|
||||
DirectAnalysisDependencies,
|
||||
"createBinarySession" | "readConfiguration"
|
||||
>,
|
||||
logger: Logger = silentLogger,
|
||||
) => runSessionStatus(dependencies, logger);
|
||||
|
||||
/** List binary-session operation descriptors; this is not the full MCP catalog. */
|
||||
export const runCapabilityStatus = (
|
||||
dependencies: Pick<
|
||||
DirectAnalysisDependencies,
|
||||
"createBinarySession" | "readConfiguration"
|
||||
>,
|
||||
logger: Logger = silentLogger,
|
||||
) => runSessionStatus(dependencies, logger);
|
||||
|
||||
Reference in New Issue
Block a user