* feat(#1928): remove sunset gemini cli runtime, redirect to antigravity Google sunset Gemini CLI on 2026-06-18; Antigravity CLI is its official successor (already a first-class GSD runtime). Remove the gemini runtime from the enum (16->15), aliases, labels, config-home fragment, install path, converters (convertClaudeToGemini{Markdown,Toml,Agent}, convertSlashCommandsToGeminiMentions), capability descriptor, gemini-extension.json, RULESET.GEMINI.*, and the interactive menu (renumbered, no gap). --gemini now prints an explicit deprecation notice citing the 2026-06-18 sunset and redirects to --antigravity (no silent alias, per the issue's Hyrum's-Law rejection). Antigravity is preserved throughout: its GEMINI.md contextFileName, .gemini/antigravity config home, the shared convertGeminiToolName/claudeToGeminiTools tool vocabulary, and the 'gemini' hookEvents dialect it declares. GEMINI.md retargeted as Antigravity's context file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(#1928): backfill changeset PR number (#1996) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore(#1928): drop Gemini CLI from issue templates (review nit) Removes the sunset Gemini CLI runtime from the two GitHub issue-template runtime lists that the removal PR missed, per @davesienkowski's review nit: - feature_request.yml: 'Applicable runtimes' checkbox (a user could otherwise request a feature for a runtime GSD no longer supports) - bug_report.yml: 'Runtime' dropdown + the stale ~/.gemini/settings.json retrieval-help line Leaves the post-removal templates fully consistent with the Antigravity redirect. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
82 lines
3.6 KiB
JavaScript
82 lines
3.6 KiB
JavaScript
'use strict';
|
|
/**
|
|
* Drift-guard: NON_CLAUDE_RUNTIMES must always be derived from the capability
|
|
* registry. Verifies:
|
|
* 1. The exported constant equals a hardcoded golden expected list — a pinned
|
|
* oracle that catches BOTH formula bugs (derived value diverges from golden)
|
|
* AND unintended registry drift (adding/removing a runtime forces a
|
|
* deliberate golden-list update).
|
|
* 2. Every registry entry with role === 'runtime' and id !== 'claude' appears
|
|
* in NON_CLAUDE_RUNTIMES — a cross-check from a different angle than the
|
|
* production derivation formula.
|
|
* 3. Every member of NON_CLAUDE_RUNTIMES has an explicit getDirName branch that
|
|
* does not return '.claude' — guards against adding a runtime to the registry
|
|
* without teaching getDirName about it (ADR-1239 Phase B, #1679).
|
|
*
|
|
* Behavioral tests only: assert on returned values, no source-grep.
|
|
*/
|
|
|
|
const { test } = require('node:test');
|
|
const assert = require('node:assert/strict');
|
|
const conversion = require('../gsd-core/bin/lib/runtime-artifact-conversion.cjs');
|
|
const registry = require('../gsd-core/bin/lib/capability-registry.cjs');
|
|
const runtimeNamePolicy = require('../gsd-core/bin/lib/runtime-name-policy.cjs');
|
|
|
|
const { NON_CLAUDE_RUNTIMES } = conversion;
|
|
const { getDirName } = runtimeNamePolicy;
|
|
|
|
// Golden oracle: hardcoded sorted known-good list of all non-Claude runtimes.
|
|
// A pinned expected value in a TEST is correct — the test IS the oracle.
|
|
// Only PRODUCTION code should derive dynamically from the registry.
|
|
// If this list diverges from NON_CLAUDE_RUNTIMES, either the formula is wrong
|
|
// OR the registry changed — both require a deliberate golden-list update here.
|
|
const EXPECTED = [
|
|
'antigravity', 'augment', 'cline', 'codebuddy', 'codex', 'copilot',
|
|
'cursor', 'hermes', 'kilo', 'kimi', 'opencode', 'qwen',
|
|
'trae', 'windsurf',
|
|
];
|
|
|
|
test('NON_CLAUDE_RUNTIMES matches the golden expected set (sorted)', () => {
|
|
assert.deepEqual(
|
|
[...NON_CLAUDE_RUNTIMES],
|
|
EXPECTED,
|
|
`NON_CLAUDE_RUNTIMES diverged from golden list.\n` +
|
|
` actual: [${[...NON_CLAUDE_RUNTIMES].join(', ')}]\n` +
|
|
` expected: [${EXPECTED.join(', ')}]`,
|
|
);
|
|
// Explicit readability assertion: 'claude' must never appear.
|
|
assert.ok(
|
|
!NON_CLAUDE_RUNTIMES.includes('claude'),
|
|
'NON_CLAUDE_RUNTIMES must not contain "claude"',
|
|
);
|
|
});
|
|
|
|
test('every registry-declared runtime except claude is present in NON_CLAUDE_RUNTIMES', () => {
|
|
// Cross-check from a DIFFERENT angle than the production derivation formula:
|
|
// iterate registry entries by their role field rather than by Object.keys().filter().
|
|
// This catches a case where a runtime is added to the registry with role==='runtime'
|
|
// but is somehow excluded from NON_CLAUDE_RUNTIMES by a formula bug.
|
|
for (const [id, entry] of Object.entries(registry.runtimes)) {
|
|
if (entry.role === 'runtime' && id !== 'claude') {
|
|
assert.ok(
|
|
NON_CLAUDE_RUNTIMES.includes(id),
|
|
`Registry declares runtime '${id}' (role==='runtime') but it is missing from NON_CLAUDE_RUNTIMES`,
|
|
);
|
|
}
|
|
}
|
|
});
|
|
|
|
// Forward direction (registry → getDirName coverage) is the load-bearing guard:
|
|
// the registry is the authoritative runtime source, so every member of
|
|
// NON_CLAUDE_RUNTIMES must have an explicit getDirName branch.
|
|
test('DRIFT GUARD: every registry-declared non-Claude runtime has an explicit getDirName branch (not .claude)', () => {
|
|
for (const rt of NON_CLAUDE_RUNTIMES) {
|
|
const dir = getDirName(rt);
|
|
assert.notEqual(
|
|
dir,
|
|
'.claude',
|
|
`getDirName('${rt}') returned '.claude' — runtime '${rt}' is in the registry but missing an explicit getDirName branch`,
|
|
);
|
|
}
|
|
});
|