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

@@ -13,7 +13,7 @@
*
* Acceptance criteria covered:
* 1. Blocking polarity — decision: 'block' + exit 2 with a typed `code`
* and `path`; stderr carries the plain reason (Kimi reads it back).
* and `path`; stderr carries the plain reason.
* 2. Name predicate — .env / .env.<suffix> / .secrets block; the template
* names (.env.example, .sample, .template, .dist) and look-alikes
* (.envrc, env, foo.env) pass.
@@ -21,8 +21,7 @@
* 4. Bash — operands, input redirects, substitutions, nested shells and
* git <ref>:<path> shapes block; existence checks, write redirects,
* here-strings, commit messages and heredoc bodies pass.
* 5. Kimi vocabulary (ReadFile / Grep / Shell, `path`) is normalized.
* 6. Fail-open crash policy: malformed / non-object payloads exit 0.
* 5. Fail-open crash policy: malformed / non-object payloads exit 0.
*
* Every assertion reads typed fields off the stdout JSON (code, path, tool)
* — never a regex over the reason prose (CONTRIBUTING.md).
@@ -338,25 +337,6 @@ describe('msd-secret-read-guard: Bash allows', () => {
});
});
describe('msd-secret-read-guard: Kimi vocabulary', () => {
test('blocks kimi_cli.tools.file:ReadFile with `path`', () => {
const r = runHook({ tool_name: 'kimi_cli.tools.file:ReadFile', tool_input: { path: '/p/.env' } });
assertBlocked(r, 'ReadFile', { tool: 'Read', path: '/p/.env' });
});
test('Kimi `path` wins over a spurious `file_path`', () => {
const r = runHook({ tool_name: 'kimi_cli.tools.file:ReadFile', tool_input: { path: '/p/.env', file_path: 'README.md' } });
assertBlocked(r, 'path authoritative', { tool: 'Read', path: '/p/.env' });
});
test('blocks kimi_cli.tools.shell:Shell with `command`', () => {
const r = runHook({ tool_name: 'kimi_cli.tools.shell:Shell', tool_input: { command: 'cat .env' } });
assertBlocked(r, 'Shell', { tool: 'Bash', path: '.env' });
});
test('blocks kimi_cli.tools.file:Grep with `path` (module prefix stripped)', () => {
const r = runHook({ tool_name: 'kimi_cli.tools.file:Grep', tool_input: { path: '/p/.env' } });
assertBlocked(r, 'Grep', { tool: 'Grep', path: '/p/.env' });
});
});
describe('regressions: #4580 — final-extension classification', () => {
// #4580: isSecretBasename compares everything after `.env.` as ONE token
// against the template set {example, sample, template, dist}, so a