From 38a80cfcd374183b4a6da4b057f3c11a8c114fcc Mon Sep 17 00:00:00 2001 From: will <128361589+zhao0112@users.noreply.github.com> Date: Wed, 15 Jul 2026 07:52:23 +0800 Subject: [PATCH] fix: register missing TypeScript and C# context docs for issue #322 (#325) Registers the typescript.md, csharp.md, and csharp-project-structure.md context docs in registry.json. install.sh's expand_context_wildcard resolves context:core/* against registry entries rather than the filesystem, so unregistered docs could never install for the developer/full/advanced profiles. Also fixes validate-registry.sh, which exits 1 and aborts silently on main: adds the missing skill: dependency mapping (parity with validate-registry.ts) and a return 0 guard on the trailing loop. Verified: 241 paths checked, 0 missing. Fixes #322. --- registry.json | 40 +++++++++++++++++++++++++++ scripts/registry/validate-registry.sh | 6 +++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/registry.json b/registry.json index f56c201..b93fa81 100644 --- a/registry.json +++ b/registry.json @@ -1649,6 +1649,46 @@ "dependencies": [], "category": "standard" }, + { + "id": "typescript", + "name": "TypeScript", + "type": "context", + "path": ".opencode/context/core/standards/typescript.md", + "description": "Universal TypeScript language and engineering standards", + "tags": [ + "typescript", + "standards" + ], + "dependencies": [], + "category": "standard" + }, + { + "id": "csharp", + "name": "C#", + "type": "context", + "path": ".opencode/context/core/standards/csharp.md", + "description": "Universal C# standards", + "tags": [ + "csharp", + "standards" + ], + "dependencies": [], + "category": "standard" + }, + { + "id": "csharp-project-structure", + "name": "C# Project Structure", + "type": "context", + "path": ".opencode/context/core/standards/csharp-project-structure.md", + "description": "ASP.NET Core project structure and implementation patterns", + "tags": [ + "csharp", + "standards", + "project-structure" + ], + "dependencies": [], + "category": "standard" + }, { "id": "documentation", "name": "Documentation", diff --git a/scripts/registry/validate-registry.sh b/scripts/registry/validate-registry.sh index af04928..9ac045f 100755 --- a/scripts/registry/validate-registry.sh +++ b/scripts/registry/validate-registry.sh @@ -163,6 +163,7 @@ validate_component_paths() { fi fi done <<< "$components" + return 0 } suggest_fix() { @@ -287,6 +288,9 @@ check_dependency_exists() { plugin) registry_category="plugins" ;; + skill) + registry_category="skills" + ;; context) registry_category="contexts" ;; @@ -380,7 +384,7 @@ validate_component_dependencies() { fi local result - result=$(check_dependency_exists "$dep") + result=$(check_dependency_exists "$dep" || true) case "$result" in found)