Browse Source

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.
will 2 weeks ago
parent
commit
38a80cfcd3
2 changed files with 45 additions and 1 deletions
  1. 40 0
      registry.json
  2. 5 1
      scripts/registry/validate-registry.sh

+ 40 - 0
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",

+ 5 - 1
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)