UNPKG

@code-yeongyu/senpi

Version:

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

23 lines • 1.72 kB
import { type ConfigReference } from "@earendil-works/pi-ai/utils/config-reference"; import type { McpServerConfig, McpServerDeclaration, McpServerDeclaredConfig } from "./config-schema.ts"; export interface McpServerReference { readonly field: string; readonly reference: ConfigReference; } /** The accepting positions of one declared server: `headers.*`, `env.*` and `args[]`. */ export declare function mcpServerReferences(name: string, server: McpServerDeclaration): McpServerReference[]; /** Called as a trusted file is read, so each reference resolves against the file that declares it. */ export declare function rememberMcpReferenceOrigins(servers: Readonly<Record<string, McpServerDeclaration>> | undefined, origin: string): void; /** A source that does not expand legacy `${NAME}` refuses every reference before any I/O. */ export declare function refuseMcpReferences(name: string, server: McpServerDeclaration): void; /** A declaration whose accepting positions hold plain strings: a source that refuses reference objects. */ export type PlainMcpServerDeclaration = Omit<McpServerDeclaration, "args" | "env" | "headers"> & { args?: string[]; env?: Record<string, string>; headers?: Record<string, string>; }; /** Refuses the first reference with its named error, then narrows the declaration to plain strings. */ export declare function plainMcpDeclaration(name: string, server: McpServerDeclaration): PlainMcpServerDeclaration; /** The normalized form of a plain declaration, as a connection config (no reference left to resolve). */ export declare function plainMcpServerConfig(name: string, server: McpServerDeclaredConfig): McpServerConfig; //# sourceMappingURL=config-references.d.ts.map