refactor: drop 12 runtimes, keep Claude, Codex, OpenCode, Cursor, ZCode, Antigravity

Removes kilo, kimi, kimi-code, copilot, windsurf, augment, trae, qwen, hermes,
cline, codebuddy and pi end to end: capability descriptors, installer branches
and converters (bin/install.js 14.9k -> 11.2k lines), TypeScript converters,
hook surfaces and runtime homes, review lanes qwen/kimi-code, the two pi
migrations, Kimi payload normalization in the hook guards, dead hostBehaviors
vocabulary, launcher home probes, fixtures, runtime-specific tests and the
prose that presented them as supported.

Installer output for the six kept runtimes is byte-identical to before the
prune. The Kimi tool-vocabulary tests in workflow-guard, read-guard and
read-injection-scanner are left in place pending a decision.
This commit is contained in:
Jakub Zych
2026-10-06 20:02:40 +02:00
parent 12ee75a509
commit 6cfa0c55d2
509 changed files with 1869 additions and 47737 deletions

View File

@@ -176,40 +176,6 @@ describe('resolveInstalledSurfaces — shadowing (S4-S7, acceptance criterion S4
assert.strictEqual(winner.shadowedBy, null);
assert.deepStrictEqual(loser.shadowedBy, { kind: 'skills', scope: 'global' });
});
test('windsurf does not report a shadow it does not have', () => {
const home = '/fixture/home';
const cwd = '/fixture/project';
const homes = scopeHomes('windsurf', home, cwd);
const byConfigHome = new Map([
[homes.global, manifest({ manifestVersion: 2, runtime: 'windsurf', scope: 'global', files: { 'agents/msd-planner.md': 'a' } })],
[homes.local, manifest({ manifestVersion: 2, runtime: 'windsurf', scope: 'local', files: { 'workflows/msd-plan-phase.md': 'a' } })],
]);
const result = resolveInstalledSurfaces('windsurf', baseOpts(home, cwd, { readManifest: mkReadManifest(byConfigHome) }));
assert.strictEqual(scopeOf(result, 'global').installed, true);
assert.strictEqual(scopeOf(result, 'local').installed, true);
// Global emits agents only — not trigger-bearing — so its stems are empty.
assert.deepStrictEqual(scopeOf(result, 'global').stems, []);
assert.ok(result[0].triggers.length > 0, 'expected at least the local trigger');
assert.ok(result[0].triggers.every((t) => t.shadowedBy === null), 'windsurf must report no shadow at all');
});
test('a runtime with no local emission reports no shadow', () => {
const home = '/fixture/home';
const cwd = '/fixture/project';
const homes = scopeHomes('cline', home, cwd);
const byConfigHome = new Map([
[homes.global, manifest({ manifestVersion: 2, runtime: 'cline', scope: 'global', files: { 'skills/msd-plan-phase/SKILL.md': 'a' } })],
// cline's local layout declares no kinds at all — a manifest present
// there still counts as "installed", but contributes no stems.
[homes.local, manifest({ manifestVersion: 2, runtime: 'cline', scope: 'local', files: { 'commands/msd-plan-phase.md': 'a' } })],
]);
const result = resolveInstalledSurfaces('cline', baseOpts(home, cwd, { readManifest: mkReadManifest(byConfigHome) }));
assert.deepStrictEqual(scopeOf(result, 'local').stems, []);
assert.ok(result[0].triggers.length > 0);
assert.ok(result[0].triggers.every((t) => t.shadowedBy === null));
assert.ok(result[0].triggers.every((t) => t.scope === 'global'));
});
});
describe('resolveInstalledSurfaces — the all-runtimes sweep (S8-S11)', () => {