/** * CLI command: list-agents * Lists all agents in a specific plan. */ import type { ServerConfig } from '../config.js'; import { type ParsedAgentFile, type AgentFrontmatter } from '../agent-parser.js'; /** * Agent entry for CLI output. */ export interface CliAgentEntry { number: string; title: string; status: AgentFrontmatter['status']; persona: AgentFrontmatter['persona']; dependencyCount: number; fileCount: number; } /** * Find plan directory by plan number or name. * * @param plansPath - Base path to plans * @param planId - Plan number (e.g., "4") or full name * @returns Full path to plan directory or null */ export declare function findPlanDirectory(plansPath: string, planId: string): string | null; /** * Get all agent files from a plan directory. * * @param planDir - Path to plan directory * @returns Array of parsed agent files */ export declare function getAgentFiles(planDir: string): ParsedAgentFile[]; /** * Result of listing agents. */ export interface ListAgentsResult { planName: string; agents: ParsedAgentFile[]; statusCounts: { GAP: number; WIP: number; PASS: number; BLOCKED: number; }; total: number; } /** * Get all agents data from a plan. * Returns structured data for rendering. * * @param config - Server configuration * @param planId - Plan number or name * @returns Structured agent data or error */ export declare function getAgentsData(config: ServerConfig, planId: string): ListAgentsResult | { error: string; }; /** * List all agents in a plan. * * @param config - Server configuration * @param planId - Plan number or name * @returns Formatted string output for CLI */ export declare function listAgents(config: ServerConfig, planId: string): string; //# sourceMappingURL=list-agents.d.ts.map