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

@@ -541,22 +541,14 @@ function checkCodexSandboxPosture(runtime?: string, projectRoot?: string): Codex
/**
* Probe a single agents dir for `<name>` across runtime filename variants.
* Mirrors {@link checkAgentsInstalled}'s probe (`.md`, `.agent.md`, `.toml`,
* and the kimi `subagents/<name>.{yaml,md}` pair) so the two can never disagree
* about which on-disk shapes count as "installed". Not exported — internal to
* {@link resolveAgentHint}.
* Mirrors {@link checkAgentsInstalled}'s probe (`.md` and the Codex `.toml`)
* so the two can never disagree about which on-disk shapes count as
* "installed". Not exported — internal to {@link resolveAgentHint}.
*/
function agentFileExists(agentsDir: string, name: string, runtime: string): boolean {
function agentFileExists(agentsDir: string, name: string, _runtime: string): boolean {
const base = path.join(agentsDir, `${name}.md`);
const copilot = path.join(agentsDir, `${name}.agent.md`);
const codex = path.join(agentsDir, `${name}.toml`);
if (fs.existsSync(base) || fs.existsSync(copilot) || fs.existsSync(codex)) {
return true;
}
// kimi requires BOTH the persona yaml and the prompt md (same as checkAgentsInstalled).
const kimiYaml = path.join(agentsDir, 'subagents', `${name}.yaml`);
const kimiPrompt = path.join(agentsDir, 'subagents', `${name}.md`);
return runtime === 'kimi' && fs.existsSync(kimiYaml) && fs.existsSync(kimiPrompt);
return fs.existsSync(base) || fs.existsSync(codex);
}
/**