From b2266170edf3d41353e53dc17260c5d8f7ff8768 Mon Sep 17 00:00:00 2001 From: zhao <1615063567@qq.com> Date: Tue, 2 Jun 2026 11:42:13 +0800 Subject: [PATCH] [verified] fix: register missing TypeScript and C# context docs for issue #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 f56c2012..b93fa81a 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 af04928d..9ac045f4 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)