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:
parent
2deecb9fc4
commit
38a80cfcd3
2 changed files with 45 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue