@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.22 kB
TypeScript
import type { Transport, TransportSendOptions } from "@modelcontextprotocol/sdk/shared/transport.js";
import { type InitializeResult, type JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";
import type { DiscoveryResult } from "./era.ts";
/** The SDK's local `initialize` answer, built from validated discovery; discovery must support the real wire version. */
export declare function modernInitializeResult(discovery: DiscoveryResult, wireVersion: string): InitializeResult;
/** Modern results may carry `nextCursor: null`, which the SDK's list schemas reject. */
export declare function normalizeModernResult(message: JSONRPCMessage): JSONRPCMessage;
/** Local SDK lifecycle dialect; the negotiated wire version belongs only to the underlying transport. */
export declare class ModernSdkBridge implements Transport {
#private;
onmessage?: Transport["onmessage"];
onclose?: Transport["onclose"];
onerror?: Transport["onerror"];
constructor(transport: Transport, discovery: DiscoveryResult, wireVersion: string);
start(): Promise<void>;
send(message: JSONRPCMessage, options?: TransportSendOptions): Promise<void>;
close(): Promise<void>;
}
//# sourceMappingURL=sdk-bridge.d.ts.map