UNPKG

@phren/cli

Version:

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

8 lines (7 loc) • 719 B
import { type DocEntry } from "../clanker.js"; import type { SelectedSnippet, GitContext } from "../shared/retrieval.js"; /** Rows the clanker index prints at most. */ export declare const COMPACT_INDEX_ROWS = 8; /** The id a compact index row prints: the entry's `fid:`, else the doc's `mem:` key. */ export declare function compactRowId(selected: SelectedSnippet, phrenPathLocal: string, entry?: DocEntry | undefined): string; export declare function buildHookOutput(selected: SelectedSnippet[], usedTokens: number, intent: string, gitCtx: GitContext | null, detectedProject: string | null, stage: Record<string, number>, tokenBudget: number, phrenPathLocal: string, sessionId?: string, keywords?: string): string[];