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:
@@ -153,7 +153,7 @@ describe('resolveReviewerSelection', () => {
|
||||
*
|
||||
* Before this change every explicit miss was an `info`. A TOTAL miss still
|
||||
* errored, but only as a side effect of the selected set coming out empty — so
|
||||
* the PARTIAL miss (`--gemini --qwen` on a host without qwen) had no signal at
|
||||
* the PARTIAL miss (`--gemini --opencode` on a host without opencode) had no signal at
|
||||
* all: the review ran with a thinner reviewer set and present_results reported
|
||||
* success. The workflow's own guidance names why that is wrong — "a cross-AI
|
||||
* review that silently drops a lane is blind in one eye".
|
||||
@@ -176,13 +176,13 @@ describe('resolveReviewerSelection — explicit flags are an assertion (ADR-2782
|
||||
// and the run proceeded one-eyed.
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['gemini', 'qwen'],
|
||||
explicitFlags: ['gemini', 'opencode'],
|
||||
});
|
||||
assert.deepStrictEqual(r.selected, ['gemini'], 'the detected lane is still selected');
|
||||
assert.strictEqual(
|
||||
errorsMentioning(r, 'qwen').length,
|
||||
errorsMentioning(r, 'opencode').length,
|
||||
1,
|
||||
`expected exactly one error naming qwen, got: ${JSON.stringify(r.errors)}`,
|
||||
`expected exactly one error naming opencode, got: ${JSON.stringify(r.errors)}`,
|
||||
);
|
||||
assert.deepStrictEqual(r.infos, [], 'the miss must not be downgraded to an info');
|
||||
});
|
||||
@@ -190,10 +190,10 @@ describe('resolveReviewerSelection — explicit flags are an assertion (ADR-2782
|
||||
test('a sole explicit flag that is undetected errors per-slug and in aggregate', () => {
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['qwen'],
|
||||
explicitFlags: ['opencode'],
|
||||
});
|
||||
assert.deepStrictEqual(r.selected, []);
|
||||
assert.strictEqual(errorsMentioning(r, 'qwen').length, 1);
|
||||
assert.strictEqual(errorsMentioning(r, 'opencode').length, 1);
|
||||
// The pre-existing aggregate message is preserved, not replaced — the
|
||||
// per-slug errors must not suppress it.
|
||||
assert.ok(
|
||||
@@ -205,13 +205,13 @@ describe('resolveReviewerSelection — explicit flags are an assertion (ADR-2782
|
||||
test('every missing explicit flag produces its own error, in a stable order', () => {
|
||||
const forward = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['gemini', 'qwen', 'codex'],
|
||||
explicitFlags: ['gemini', 'opencode', 'codex'],
|
||||
});
|
||||
const reversed = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['gemini', 'codex', 'qwen'],
|
||||
explicitFlags: ['gemini', 'codex', 'opencode'],
|
||||
});
|
||||
assert.strictEqual(errorsMentioning(forward, 'qwen').length, 1);
|
||||
assert.strictEqual(errorsMentioning(forward, 'opencode').length, 1);
|
||||
assert.strictEqual(errorsMentioning(forward, 'codex').length, 1);
|
||||
// Order must not depend on the order flags appeared on the command line.
|
||||
assert.deepStrictEqual(forward.errors, reversed.errors);
|
||||
@@ -220,17 +220,17 @@ describe('resolveReviewerSelection — explicit flags are an assertion (ADR-2782
|
||||
test('a duplicate explicit flag produces exactly one error', () => {
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['qwen', 'qwen'],
|
||||
explicitFlags: ['opencode', 'opencode'],
|
||||
});
|
||||
assert.strictEqual(errorsMentioning(r, 'qwen').length, 1);
|
||||
assert.strictEqual(errorsMentioning(r, 'opencode').length, 1);
|
||||
});
|
||||
|
||||
test('explicit flag matching is case-insensitive', () => {
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['QWEN'],
|
||||
explicitFlags: ['OPENCODE'],
|
||||
});
|
||||
assert.strictEqual(errorsMentioning(r, 'qwen').length, 1);
|
||||
assert.strictEqual(errorsMentioning(r, 'opencode').length, 1);
|
||||
});
|
||||
|
||||
test('an explicit flag with nothing detected at all errors', () => {
|
||||
@@ -245,10 +245,10 @@ describe('resolveReviewerSelection — explicit flags are an assertion (ADR-2782
|
||||
test('pre-existing config errors do not suppress per-slug explicit errors', () => {
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['gemini'],
|
||||
explicitFlags: ['qwen'],
|
||||
explicitFlags: ['opencode'],
|
||||
configuredDefaultReviewers: 'not-an-array',
|
||||
});
|
||||
assert.strictEqual(errorsMentioning(r, 'qwen').length, 1);
|
||||
assert.strictEqual(errorsMentioning(r, 'opencode').length, 1);
|
||||
assert.ok(r.errors.some((e) => e.includes('must be a JSON array')));
|
||||
// Guarded on the PRE-branch error count, so the aggregate fires exactly when
|
||||
// it did before this change — i.e. not here, because a config error already
|
||||
@@ -285,16 +285,16 @@ describe('resolveReviewerSelection — discovery paths stay lenient (ADR-2782 D4
|
||||
});
|
||||
|
||||
test('a configured default that is undetected stays an info, not an error', () => {
|
||||
// `qwen` is a genuinely KNOWN lane (REVIEWER_LANES) that is simply absent from `detected` here —
|
||||
// `opencode` is a genuinely KNOWN lane (REVIEWER_LANES) that is simply absent from `detected` here —
|
||||
// the shape this test needs. `gemini` no longer works as this fixture: it was retired from
|
||||
// REVIEWER_LANES by #4709, so it now falls into the UNKNOWN-slug branch (a warning) instead of
|
||||
// the known-but-undetected branch (an info) this test exists to prove.
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['qwen'],
|
||||
configuredDefaultReviewers: ['qwen', 'codex'],
|
||||
detected: ['opencode'],
|
||||
configuredDefaultReviewers: ['opencode', 'codex'],
|
||||
});
|
||||
assert.equal(r.source, 'config_default');
|
||||
assert.deepStrictEqual(r.selected, ['qwen']);
|
||||
assert.deepStrictEqual(r.selected, ['opencode']);
|
||||
assert.deepStrictEqual(r.errors, [], 'a preference miss must not become an error');
|
||||
assert.ok(
|
||||
r.infos.some((i) => i.includes('codex')),
|
||||
@@ -303,13 +303,13 @@ describe('resolveReviewerSelection — discovery paths stay lenient (ADR-2782 D4
|
||||
});
|
||||
|
||||
test('an unknown configured slug stays a warning', () => {
|
||||
// `qwen` here plays the genuinely KNOWN, detected lane so `selected`/`errors` behave as expected;
|
||||
// `opencode` here plays the genuinely KNOWN, detected lane so `selected`/`errors` behave as expected;
|
||||
// `__nope__` remains the genuinely UNKNOWN slug under test — `gemini` would ALSO now be a valid
|
||||
// fixture for the unknown branch (retired from REVIEWER_LANES by #4709), but `__nope__` already
|
||||
// names that branch unambiguously without relying on retirement history.
|
||||
const r = resolveReviewerSelection({
|
||||
detected: ['qwen'],
|
||||
configuredDefaultReviewers: ['qwen', '__nope__'],
|
||||
detected: ['opencode'],
|
||||
configuredDefaultReviewers: ['opencode', '__nope__'],
|
||||
});
|
||||
assert.deepStrictEqual(r.errors, []);
|
||||
assert.ok(r.warnings.some((w) => w.includes('__nope__')));
|
||||
|
||||
Reference in New Issue
Block a user