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.
This commit is contained in:
will 2026-07-15 07:52:23 +08:00 committed by GitHub
parent 2deecb9fc4
commit 38a80cfcd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 45 additions and 1 deletions

View file

@ -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",

View file

@ -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)