fix(schema): align capability contracts and delivery

This commit is contained in:
玉澜
2026-07-13 22:51:38 +08:00
parent fc415919d1
commit 1f2b992e9c
109 changed files with 31462 additions and 15044 deletions
+13
View File
@@ -363,6 +363,19 @@ func TestPostGoreleaserSkillsZipLayout(t *testing.T) {
if _, err := os.Stat(filepath.Join(extractDir, "mono", "SKILL.md")); err != nil {
t.Fatalf("zip missing mono/SKILL.md: %v", err)
}
// Schema hints are shared build-only inputs, not mono Skill content. They
// must not leak into either backward-compatible copy of the mono bundle.
for _, rel := range []string{
"schema-hints",
filepath.Join("mono", "schema-hints"),
filepath.Join("multi", "schema-hints"),
} {
if _, err := os.Stat(filepath.Join(extractDir, rel)); err == nil {
t.Fatalf("zip unexpectedly contains build-only %s", rel)
} else if !os.IsNotExist(err) {
t.Fatalf("Stat(%s) error = %v", rel, err)
}
}
// multi/ subtree with at least one per-product skill.
multiEntries, err := os.ReadDir(filepath.Join(extractDir, "multi"))
if err != nil {