The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix(install): add rust, cpp, csharp to legacy language alias map (#747)
Chris Yau4e6b5cc19fb0
diff --git a/manifests/install-components.json b/manifests/install-components.jsonindex ef6ccf012..8f3d73064 100644--- a/manifests/install-components.json+++ b/manifests/install-components.json@@ -210,6 +210,14 @@"framework-language"]},+ {+ "id": "lang:csharp",+ "family": "language",+ "description": "C# coding standards and patterns guidance. Currently resolves through the shared framework-language module.",+ "modules": [+ "framework-language"+ ]+ },{"id": "framework:laravel","family": "framework",diff --git a/scripts/lib/install-manifests.js b/scripts/lib/install-manifests.jsindex a935ac68c..16b1fbc19 100644--- a/scripts/lib/install-manifests.js+++ b/scripts/lib/install-manifests.js@@ -37,6 +37,8 @@ const LEGACY_COMPAT_BASE_MODULE_IDS_BY_TARGET = Object.freeze({],});const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({+ cpp: 'cpp',+ csharp: 'csharp',go: 'go',golang: 'go',java: 'java',@@ -45,15 +47,19 @@ const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({perl: 'perl',php: 'php',python: 'python',+ rust: 'rust',swift: 'swift',typescript: 'typescript',});const LEGACY_LANGUAGE_EXTRA_MODULE_IDS = Object.freeze({+ cpp: ['framework-language'],+ csharp: ['framework-language'],go: ['framework-language'],java: ['framework-language'],perl: [],php: [],python: ['framework-language'],+ rust: ['framework-language'],swift: [],typescript: ['framework-language'],});diff --git a/tests/lib/install-manifests.test.js b/tests/lib/install-manifests.test.jsindex 596cadde1..7e6c743a0 100644--- a/tests/lib/install-manifests.test.js+++ b/tests/lib/install-manifests.test.js@@ -85,6 +85,9 @@ function runTests() {assert.ok(languages.includes('go'));assert.ok(languages.includes('golang'));assert.ok(languages.includes('kotlin'));+ assert.ok(languages.includes('rust'));+ assert.ok(languages.includes('cpp'));+ assert.ok(languages.includes('csharp'));})) passed++; else failed++;if (test('resolves a real project profile with target-specific skips', () => {@@ -155,6 +158,39 @@ function runTests() {assert.ok(selection.moduleIds.includes('framework-language'));})) passed++; else failed++;+ if (test('resolves rust legacy compatibility into framework-language module', () => {+ const selection = resolveLegacyCompatibilitySelection({+ target: 'cursor',+ legacyLanguages: ['rust'],+ });++ assert.ok(selection.moduleIds.includes('rules-core'));+ assert.ok(selection.moduleIds.includes('framework-language'),+ 'rust should resolve to framework-language module');+ })) passed++; else failed++;++ if (test('resolves cpp legacy compatibility into framework-language module', () => {+ const selection = resolveLegacyCompatibilitySelection({+ target: 'cursor',+ legacyLanguages: ['cpp'],+ });++ assert.ok(selection.moduleIds.includes('rules-core'));+ assert.ok(selection.moduleIds.includes('framework-language'),+ 'cpp should resolve to framework-language module');+ })) passed++; else failed++;++ if (test('resolves csharp legacy compatibility into framework-language module', () => {+ const selection = resolveLegacyCompatibilitySelection({+ target: 'cursor',+ legacyLanguages: ['csharp'],+ });++ assert.ok(selection.moduleIds.includes('rules-core'));+ assert.ok(selection.moduleIds.includes('framework-language'),+ 'csharp should resolve to framework-language module');+ })) passed++; else failed++;+if (test('keeps antigravity legacy compatibility selections target-safe', () => {const selection = resolveLegacyCompatibilitySelection({target: 'antigravity',