* feat: Add Kilo Code integration to TaskMaster * feat: Add Kilo profile configuration to rule transformer tests * refactor: Improve code formatting and consistency in Kilo profile and tests * fix: Correct formatting of workspaces in package.json * chore: add changeset for Kilo Code integration * feat: add Kilo Code rules and mode configurations - Add comprehensive rule sets for all modes (architect, ask, code, debug, orchestrator, test) - Update .kilocodemodes configuration with mode-specific settings - Configure MCP integration for Kilo Code profile - Establish consistent rule structure across all modes * refactor(kilo): simplify profile to reuse roo rules with replacements Remove duplicate Kilo-specific rule files and assets in favor of reusing roo rules with dynamic replacements, eliminating 900+ lines of duplicated code while maintaining full Kilo functionality. The profile now: - Reuses ROO_MODES constant instead of maintaining separate KILO_MODES - Applies text replacements to convert roo references to kilo - Maps roo rule files to kilo equivalents via fileMap - Removes all duplicate rule files from assets/kilocode directory * refactor(kilo): restructure object literals for consistency and remove duplicate customReplacements array based on CodeRabbit's suggestion * chore: remove disabled .mcp.json by mistake --------- Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
72 lines
1.8 KiB
JavaScript
72 lines
1.8 KiB
JavaScript
/**
|
|
* @typedef {'amp' | 'claude' | 'cline' | 'codex' | 'cursor' | 'gemini' | 'kiro' | 'opencode' | 'kilo' | 'roo' | 'trae' | 'windsurf' | 'vscode' | 'zed'} RulesProfile
|
|
*/
|
|
|
|
/**
|
|
* Available rule profiles for project initialization and rules command
|
|
*
|
|
* ⚠️ SINGLE SOURCE OF TRUTH: This is the authoritative list of all supported rule profiles.
|
|
* This constant is used directly throughout the codebase (previously aliased as PROFILE_NAMES).
|
|
*
|
|
* @type {RulesProfile[]}
|
|
* @description Defines possible rule profile sets:
|
|
* - amp: Amp Code integration
|
|
* - claude: Claude Code integration
|
|
* - cline: Cline IDE rules
|
|
* - codex: Codex integration
|
|
* - cursor: Cursor IDE rules
|
|
* - gemini: Gemini integration
|
|
* - kiro: Kiro IDE rules
|
|
* - opencode: OpenCode integration
|
|
* - kilo: Kilo Code integration
|
|
* - roo: Roo Code IDE rules
|
|
* - trae: Trae IDE rules
|
|
* - vscode: VS Code with GitHub Copilot integration
|
|
* - windsurf: Windsurf IDE rules
|
|
* - zed: Zed IDE rules
|
|
*
|
|
* To add a new rule profile:
|
|
* 1. Add the profile name to this array
|
|
* 2. Create a profile file in src/profiles/{profile}.js
|
|
* 3. Export it as {profile}Profile in src/profiles/index.js
|
|
*/
|
|
export const RULE_PROFILES = [
|
|
'amp',
|
|
'claude',
|
|
'cline',
|
|
'codex',
|
|
'cursor',
|
|
'gemini',
|
|
'kiro',
|
|
'opencode',
|
|
'kilo',
|
|
'roo',
|
|
'trae',
|
|
'vscode',
|
|
'windsurf',
|
|
'zed'
|
|
];
|
|
|
|
/**
|
|
* Centralized enum for all supported Roo agent modes
|
|
* @type {string[]}
|
|
* @description Available Roo Code IDE modes for rule generation
|
|
*/
|
|
export const ROO_MODES = [
|
|
'architect',
|
|
'ask',
|
|
'orchestrator',
|
|
'code',
|
|
'debug',
|
|
'test'
|
|
];
|
|
|
|
/**
|
|
* Check if a given rule profile is valid
|
|
* @param {string} rulesProfile - The rule profile to check
|
|
* @returns {boolean} True if the rule profile is valid, false otherwise
|
|
*/
|
|
export function isValidRulesProfile(rulesProfile) {
|
|
return RULE_PROFILES.includes(rulesProfile);
|
|
}
|