@robota-sdk/agent-interface-transport
v3.0.0-beta.76
Published
Transport contract interfaces for the Robota SDK (ITransportAdapter, IConfigurableTransport, ITransportConfig)
Downloads
2,388
Readme
Agent Interface Transport
Transport contract interfaces for the Robota SDK. This package contains only TypeScript type contracts — no runtime code, no classes, no implementation.
Installation
npm install @robota-sdk/agent-interface-transportOverview
This package defines the standard protocol for transport adapters (TUI, headless, HTTP, WebSocket, MCP). Transport implementations depend on this package, not on agent-framework, for interface types.
Public API
import type {
ITransportAdapter,
IConfigurableTransport,
ITransportConfig,
ITransportRegistryView,
} from '@robota-sdk/agent-interface-transport';ITransportAdapter
Core transport lifecycle:
interface ITransportAdapter<TSession> {
readonly name: string;
attach(session: TSession): void;
start(): void;
stop?(): void;
}IConfigurableTransport
Extends ITransportAdapter with enable/disable and options schema:
interface IConfigurableTransport<TSession> extends ITransportAdapter<TSession> {
readonly defaultEnabled: boolean;
readonly optionsSchema: Record<string, unknown>;
validateOptions?(options: unknown): boolean;
}ITransportConfig
Persisted transport configuration shape:
interface ITransportConfig {
enabled: boolean;
options?: Record<string, unknown>;
}Dependency Position
agent-core
↑
agent-interface-transport ← this package (contracts only)
↑
agent-transport / agent-transport-tui / ... ← implementationsThis package must not depend on agent-framework or any implementation package.
