UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

19 lines (18 loc) • 905 B
import type { ConnectionProtocol } from "#shared/connection-types.js"; /** * Stamps the wire protocol on a connection definition. Called by the * `define*` factory that produced it. */ export declare function stampConnectionProtocol(definition: object, protocol: ConnectionProtocol): void; /** * Reads the stamped protocol from a connection definition, defaulting * to `"mcp"` when unstamped so connection modules authored before the * marker existed continue to compile as MCP connections. */ export declare function readConnectionProtocol(definition: unknown): ConnectionProtocol; /** * Reads the protocol marker without applying the legacy MCP fallback. * Dynamic connection resolvers use this to distinguish one branded * connection definition from a map of branded definitions. */ export declare function readStampedConnectionProtocol(definition: unknown): ConnectionProtocol | undefined;