fix: move Kilo above OpenCode in installer

This commit is contained in:
Alex Alecu
2026-04-02 11:34:31 +03:00
parent ac4836d270
commit 52585de4ab
4 changed files with 33 additions and 21 deletions

View File

@@ -148,6 +148,12 @@ describe('Source code integration (Copilot)', () => {
assert.ok(allMatch && allMatch[1].includes('copilot'), 'allRuntimes includes copilot');
});
test('CLI-02: promptRuntime keeps Kilo above OpenCode in allRuntimes', () => {
const allMatch = src.match(/const allRuntimes = \[([^\]]+)\]/);
assert.ok(allMatch, 'allRuntimes array found');
assert.ok(allMatch[1].indexOf("'kilo'") < allMatch[1].indexOf("'opencode'"), 'kilo appears before opencode');
});
test('isCopilot variable exists in install function', () => {
assert.ok(src.includes("const isCopilot = runtime === 'copilot'"), 'isCopilot defined');
});