@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
21 lines (20 loc) • 777 B
TypeScript
export type ConversationSource = "claude" | "codex" | "copilot" | "opencode";
export interface ConversationSearchHit {
conversation: string;
source: ConversationSource;
title: string;
cwd: string | null;
pane: string | null;
entry: string;
at: string;
role: "user" | "assistant";
snippet: string;
}
export interface ConversationSearchPage {
results: ConversationSearchHit[];
cursor: string | null;
partial?: true;
}
/** Serialize index updates in this Hook process; reads stay consistent with the
* last write and two searches cannot rebuild the same file twice at once. */
export declare function conversationSearch(q: string | null | undefined, limit?: string | null, cursor?: string | null): Promise<ConversationSearchPage>;