UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

20 lines (19 loc) • 1.17 kB
import type { AgentHooks } from "./agent-hooks.js"; import type { CodexQuestions } from "./questions.js"; import { type Json, type Provider } from "./protocol.js"; import { type EffectiveStatusInput } from "./session-activity.js"; import { type TurnRecord } from "./turn-records.js"; interface ChildActivity { runningChildren: number; childProviders: Provider[]; } export declare function childActivity(source: Provider, session: string, record?: TurnRecord): Promise<ChildActivity>; /** Evidence already in memory must not wait on children, transcripts or dialogs. */ export declare function availablePaneEvidence(server: string, pane: Json, session: string, record?: TurnRecord, hooks?: AgentHooks): EffectiveStatusInput; /** Every caller gets the same guarded foreground evidence, with whatever * enrichment is ready inside one bounded window. Late work never mutates it. */ export declare function effectivePaneEvidence(server: string, pane: Json, session: string, hooks?: AgentHooks, questions?: CodexQuestions, knownRecord?: TurnRecord | null): Promise<EffectiveStatusInput & { children?: ChildActivity; childrenPending: boolean; }>; export {};