UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

13 lines • 873 B
import type { ValidateFunction } from "ajv"; import type { McpJsonSchema, McpListedTool } from "../tool-contracts.ts"; type SchemaErrorCode = "MCP_SCHEMA_UNSUPPORTED_DIALECT" | "MCP_SCHEMA_INVALID" | "MCP_SCHEMA_LIMIT" | "MCP_OUTPUT_SCHEMA_MISMATCH"; export declare class McpToolSchemaError extends Error { readonly code: SchemaErrorCode; constructor(code: SchemaErrorCode, message: string); } /** No coercion/default insertion/removal, no network resolver, no shared $id namespace. */ export declare function compileModernSchema(schema: McpJsonSchema): ValidateFunction; /** Reject one unusable definition, never its valid siblings; diagnostics contain no schema or arguments. */ export declare function hasSupportedModernToolSchemas(tool: Pick<McpListedTool, "name" | "inputSchema" | "outputSchema">): boolean; export {}; //# sourceMappingURL=tool-schema.d.ts.map