fix(skills): bootstrap generated lbs wrapper (#2270)

This commit is contained in:
huanghuoguoguo
2026-06-20 09:24:04 +00:00
committed by GitHub
parent e9dd584792
commit d22fa82d7c
6 changed files with 128 additions and 43 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function repoRoot(start: string): string {
// root of this assets tree). Check it first so that when the tree lives
// inside a larger repo (e.g. LangBot/skills/), we stop at the assets root
// and not at the outer repo's .git/README.md.
if (existsSync(`${current}/skills.index.json`) && existsSync(`${current}/bin/lbs`)) {
if (existsSync(`${current}/skills.index.json`) && existsSync(`${current}/schemas/case.schema.json`)) {
return current;
}
if (existsSync(`${current}/.git`) && existsSync(`${current}/README.md`)) {