@builder.io/dev-tools
Version:
Builder.io Visual CMS Devtools
23 lines (22 loc) • 816 B
TypeScript
/**
* Agent discovery utilities
* Handles finding and loading custom agent definitions from the filesystem
*/
import type { DevToolsSys } from "../../types";
import { type SubAgent } from "./agent-parser";
export type { SubAgent };
/**
* Get custom agents from the filesystem
* Searches for agent definitions in .claude/agents, .builder/agents, and .cursor/agents
* @param sys - System utilities
* @param projectDir - Project directory (used for relative paths)
* @param currentDir - Starting directory for search
* @param rootDir - Root directory to stop search
* @returns Array of discovered agents
*/
export declare function getCustomAgents({ sys, projectDir, currentDir, rootDir, }: {
sys: DevToolsSys;
projectDir: string;
currentDir: string;
rootDir: string;
}): Promise<SubAgent[]>;