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
38 lines • 1.7 kB
TypeScript
/**
* CommandSmith - Platform-Aware Slash Command Generator
*
* Generates slash commands with templates and multi-platform support.
*
* @example
* ```typescript
* import { generateCommand, deployCommand } from './commandsmith/index.js';
*
* // Generate a command
* const command = await generateCommand({
* name: 'my-workflow',
* description: 'Execute my custom workflow',
* template: 'orchestration',
* platform: 'claude',
* projectPath: '/path/to/project',
* args: [
* { name: 'target', description: 'Target environment', required: true },
* ],
* options: [
* { name: 'dry-run', description: 'Preview changes', type: 'boolean' },
* ],
* });
*
* // Deploy the command
* const result = await deployCommand(command, { backup: true });
* if (result.success) {
* console.log(`Command deployed to ${result.command.path}`);
* }
* ```
*
* @module commandsmith
*/
export type { CommandTemplate, CommandArg, CommandOption, CommandOptions, GeneratedCommand, CommandFrontmatter, CursorCommandSpec, CommandDeploymentResult, ValidationIssue, ValidationResult, } from './types.js';
export { generateFrontmatter, generateArgumentsSection, generateOptionsSection, generateUtilityTemplate, generateTransformationTemplate, generateOrchestrationTemplate, generateCommandContent, } from './templates.js';
export { validateCommand, generateCommand, deployCommand, generateAndDeploy, listCommands, } from './generator.js';
export { getCommandsDirectory, getAgentsDirectory, getSkillsDirectory, getFileExtension, getRulesDirectory, usesAggregatedFiles, getConfigFileName, getPlatformDirectories, } from '../platform-paths.js';
//# sourceMappingURL=index.d.ts.map