/** * PlatformEmitter — writes agent files to platform-specific locations. * * Supported platforms: * copilot → .github/agents/{name}.agent.md * cursor → .cursor/rules/{name}.mdc * claude → AGENTS.md (aggregated, one section per agent) * windsurf → .windsurf/rules/{name}.md * open-plugins → .agents/plugins/agent-framework/agents/{name}.agent.md * opencode → .opencode/agents/{name}.md * * The Open Plugins spec (open-plugins.com) defines the canonical layout used by * Cursor Directory and other conformant tools. * * Skills are also emitted to vercel-labs/skills compatible paths so that * `npx skills list` and `npx skills update` see them without any extra config: * copilot / cursor / open-plugins → .agents/skills/{name}/SKILL.md * claude → .claude/skills/{name}/SKILL.md * windsurf → .windsurf/skills/{name}/SKILL.md */ import { Agent, TargetPlatform } from './Agent'; /** * Returns the destination file path for a given agent + platform. */ export declare function platformDestPath(agent: Agent, platform: TargetPlatform, projectRoot: string): string; /** * Emit agent files for every requested platform. * Returns a map of { platform → written file path }. */ export declare function emitAgent(agent: Agent, platforms: TargetPlatform[], projectRoot: string, force?: boolean): Promise>; /** * (Re)write AGENTS.md with sections for every provided agent. * This replaces the entire file to keep it in sync. */ export declare function emitAgentsClaude(agents: Agent[], projectRoot: string): Promise; /** * Returns the `npx skills`-compatible destination path for a skill on a given platform. * * Layout follows https://github.com/vercel-labs/skills#supported-agents: * copilot / cursor / open-plugins → .agents/skills/{name}/SKILL.md * claude → .claude/skills/{name}/SKILL.md * windsurf → .windsurf/skills/{name}/SKILL.md */ export declare function skillDestPath(skillName: string, platform: TargetPlatform, projectRoot: string): string; /** * Write a SKILL.md file to every unique platform-specific skills directory * implied by `platforms`. Deduplication is handled internally so the same * `.agents/skills/` path is only written once even if both `copilot` and * `cursor` are selected. * * Returns a list of file paths that were written. */ export declare function emitSkill(skillName: string, content: string, platforms: TargetPlatform[], projectRoot: string, force?: boolean): Promise; /** * Ensure the required directories exist for each platform. */ export declare function ensurePlatformDirs(platforms: TargetPlatform[], projectRoot: string): Promise; //# sourceMappingURL=PlatformEmitter.d.ts.map