import { CONFIG_DIR_NAME, getAgentDir } from "@earendil-works/pi-coding-agent"; import * as path from "node:path"; export { CONFIG_DIR_NAME, getAgentDir }; export function agentPath(...parts: string[]): string { return path.join(getAgentDir(), ...parts); } export function globalAgentsDir(): string { return agentPath("agents"); } export function projectConfigPath(cwd: string, ...parts: string[]): string { return path.join(cwd, CONFIG_DIR_NAME, ...parts); } export function projectAgentDirs(cwd: string): string[] { return [ path.join(cwd, "agents"), path.join(cwd, ".claude", "agents"), projectConfigPath(cwd, "agents"), ]; }