@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
7 lines (6 loc) • 489 B
TypeScript
import type { AgentHooks } from "./agent-hooks.js";
import { type Target } from "./protocol.js";
import type { TurnQueuePane } from "./turn-queue.js";
/** Read the same guarded hook/plugin turn records used by dispatch returns.
* OpenCode's plugin supplies timestamped turns rather than lifecycle hooks. */
export declare function turnQueuePaneReader(agentHooks: Pick<AgentHooks, "approval" | "terminalPrompt" | "servedQuestion">): (target: Target) => Promise<TurnQueuePane | undefined>;