UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

78 lines 2.56 kB
/** * Shared platform directory path utilities * * Provides consistent path resolution for agents, commands, and skills across all platforms. */ import { Platform } from '../agents/types.js'; /** * Get the commands directory for a given platform * * @param platform - Target platform * @param projectPath - Project root directory * @returns Full path to commands directory */ export declare function getCommandsDirectory(platform: Platform, projectPath: string): string; /** * Get the agents directory for a given platform * * @param platform - Target platform * @param projectPath - Project root directory * @returns Full path to agents directory */ export declare function getAgentsDirectory(platform: Platform, projectPath: string): string; /** * Get the skills directory for a given platform * * Skills are mainly a Claude concept; other platforms map to commands/agents. * * @param platform - Target platform * @param projectPath - Project root directory * @returns Full path to skills directory */ export declare function getSkillsDirectory(platform: Platform, projectPath: string): string; /** * Get the file extension for artifacts on a given platform * * @param platform - Target platform * @returns File extension (with dot) */ export declare function getFileExtension(platform: Platform): string; /** * Get the rules/config directory for a given platform * * @param platform - Target platform * @param projectPath - Project root directory * @returns Full path to rules/config directory */ export declare function getRulesDirectory(platform: Platform, projectPath: string): string; /** * Check if platform uses aggregated files (vs individual files) * * @param platform - Target platform * @returns True if platform uses aggregated agent/command files */ export declare function usesAggregatedFiles(platform: Platform): boolean; /** * Get the main config file name for a platform * * @param platform - Target platform * @returns Config file name */ export declare function getConfigFileName(platform: Platform): string; /** * Get all platform directories for a project * * @param platform - Target platform * @param projectPath - Project root directory * @returns Object with all platform-specific directories */ export declare function getPlatformDirectories(platform: Platform, projectPath: string): { agents: string; commands: string; skills: string; rules: string; extension: string; config: string; aggregated: boolean; }; //# sourceMappingURL=platform-paths.d.ts.map