@blundergoat/goat-flow
Version:
AI coding agent harness and local dashboard for Claude Code, OpenAI Codex, Google Antigravity, and GitHub Copilot - setup audits, guardrails, structured skills, deny hooks, and persistent learning loops.
33 lines • 1.85 kB
TypeScript
/**
* Resolves the set of agent IDs goat-flow supports and renders them for CLI help and error text.
* The manifest-backed list is the single source of truth; this module caches it once and offers
* pre-formatted help strings so the parser, handlers, and `--help` output never hardcode agent
* names. The list-building helpers swallow manifest-load failures into a "run manifest" hint so a
* broken manifest degrades help text instead of crashing argument parsing on every invocation.
*/
import type { AgentId } from "./types.js";
/**
* Return the supported agent IDs, memoised after the first manifest read for the process lifetime.
*
* @returns the known agent IDs in manifest order; propagates (does not catch) a manifest-load
* throw, so callers that need a guaranteed string use the list/flags helpers below instead
*/
export declare function validAgents(): AgentId[];
/**
* Format the supported agent IDs as a comma-separated string for `--help` and invalid-agent errors.
* Catches a manifest-load failure and returns a safe fallback hint rather than letting it propagate.
*
* @returns the agents joined by ", "; on a manifest-load failure, the fallback string
* "run `goat-flow manifest` for the current list" so the surrounding command never crashes
*/
export declare function validAgentList(): string;
/**
* Format the supported agents as example `--agent <id>` flags for usage and error messages.
*
* @returns each agent rendered as "--agent <id>", comma-joined; on a manifest-load throw, returns
* the generic "--agent <id> (run `goat-flow manifest` for valid ids)" fallback instead
*/
export declare function validAgentFlags(): string;
/** Banner text warning that multi-agent setup output must stay in sync. */
export declare const MULTI_AGENT_SYNC_BANNER: string[];
//# sourceMappingURL=cli-agent-options.d.ts.map