UNPKG

histoire

Version:

A fast story book powered by Vite

23 lines • 1.15 kB
import type { SessionNotification } from '@agentclientprotocol/sdk'; import type { UiAgentCommand } from '@histoire/shared'; import type { AgentRecord } from './record.js'; import type { AcpUpdate } from './types.js'; /** Manager callbacks used while routing one agent notification. */ export interface AgentNotificationRouting { /** Stores the agent's newest slash commands. */ remember: (agentId: string, commands: UiAgentCommand[]) => void; /** Safe error/path projection. */ sanitize: (text: string) => string; /** Publishes one safe manager update. */ emit: (event: AcpUpdate) => void; } /** * Routes one ACP session notification: commands and config updates apply to the record, * reply chunks and activity only to the exact active prompt/session. * @param agentId Agent preset id. * @param record Captured agent record. * @param notification Incoming notification. * @param routing Manager callbacks. */ export declare function routeAgentNotification(agentId: string, record: AgentRecord, notification: SessionNotification, routing: AgentNotificationRouting): void; //# sourceMappingURL=notifications.d.ts.map