Merge branch 'main' into memlog-script-shared

This commit is contained in:
Brian 2026-06-09 21:36:11 -05:00 committed by GitHub
commit 6bb5cb3f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 0 deletions

View File

@ -446,6 +446,41 @@ async function runTests() {
// Test 12: Removed — ancestor conflict check no longer applies (no IDE inherits skills from parent dirs) // Test 12: Removed — ancestor conflict check no longer applies (no IDE inherits skills from parent dirs)
// ============================================================
// Test 12b: CodeWhale Native Skills Install
// ============================================================
console.log(`${colors.yellow}Test Suite 12b: CodeWhale Native Skills${colors.reset}\n`);
try {
clearCache();
const platformCodes12b = await loadPlatformCodes();
const codewhaleInstaller = platformCodes12b.platforms.codewhale?.installer;
assert(codewhaleInstaller?.target_dir === '.codewhale/skills', 'CodeWhale target_dir uses native skills path');
const tempProjectDir12b = await fs.mkdtemp(path.join(os.tmpdir(), 'bmad-codewhale-test-'));
const installedBmadDir12b = await createTestBmadFixture();
const ideManager12b = new IdeManager();
await ideManager12b.ensureInitialized();
const result12b = await ideManager12b.setup('codewhale', tempProjectDir12b, installedBmadDir12b, {
silent: true,
selectedModules: ['bmm'],
});
assert(result12b.success === true, 'CodeWhale setup succeeds against temp project');
const skillFile12b = path.join(tempProjectDir12b, '.codewhale', 'skills', 'bmad-master', 'SKILL.md');
assert(await fs.pathExists(skillFile12b), 'CodeWhale install writes SKILL.md directory output');
await fs.remove(tempProjectDir12b);
await fs.remove(path.dirname(installedBmadDir12b));
} catch (error) {
assert(false, 'CodeWhale native skills migration test succeeds', error.message);
}
console.log('');
// ============================================================ // ============================================================
// Test 13: Cursor Native Skills Install // Test 13: Cursor Native Skills Install
// ============================================================ // ============================================================

View File

@ -70,6 +70,13 @@ platforms:
target_dir: .agents/skills target_dir: .agents/skills
global_target_dir: ~/.codex/skills global_target_dir: ~/.codex/skills
codewhale:
name: "CodeWhale"
preferred: false
installer:
target_dir: .codewhale/skills
global_target_dir: ~/.codewhale/skills
codebuddy: codebuddy:
name: "CodeBuddy" name: "CodeBuddy"
preferred: false preferred: false