Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.4 KB
Raw Blame
/**
 * Pi RPC transport — `pi --mode rpc` JSONL client + per-run session wrapper.
 *
 * Replaces the legacy one-shot `--mode json` spawn for the desktop pi path:
 * a long-lived bidirectional process with command/response correlation, the
 * extension UI sub-protocol, and graceful EOF-based shutdown.
 */
export {
  createPiRpcAgentHandle,
  type PiRpcAgentHandle,
  type PiRpcAgentHandleOptions,
  type PiRpcStartupControl,
  toPiRpcPrompt,
} from './piRpcAgentHandle';
export { PiRpcClient, PiRpcConnectionError, PiRpcResponseError } from './piRpcClient';
export {
  PI_RPC_DEFAULT_REQUEST_TIMEOUT_MS,
  PI_RPC_HANDSHAKE_TIMEOUT_MS,
  PI_RPC_MIN_CLI_VERSION,
  type PiAgentSettledEvent,
  type PiExtensionUiDialogMethod,
  type PiExtensionUiFireAndForgetMethod,
  type PiExtensionUiRequest,
  type PiExtensionUiResponse,
  type PiMessageEndEvent,
  type PiMessageUpdateEvent,
  type PiRpcCommand,
  type PiRpcEvent,
  type PiRpcImage,
  type PiRpcPromptDisposition,
  type PiRpcPromptResponseData,
  type PiRpcResponse,
  type PiRpcStateData,
  type PiSessionEvent,
  type PiStreamingBehavior,
} from './piRpcProtocol';
export {
  type PiRpcPromptInput,
  PiRpcSession,
  type PiRpcSessionCallbacks,
  type PiRpcSessionOptions,
} from './piRpcSession';
export { preparePiRpcInput } from './preparePiRpcInput';
export { RpcStdioClient, RpcStdioConnectionError } from './rpcStdioClient';