fix: harden orchestration status and skill docs

This commit is contained in:
Affaan Mustafa
2026-03-12 15:07:57 -07:00
parent ddab6f1190
commit 52daf17cb5
15 changed files with 206 additions and 16 deletions

View File

@@ -56,6 +56,12 @@ function normalizeSeedPaths(seedPaths, repoRoot) {
}
const normalizedPath = relativePath.split(path.sep).join('/');
if (!normalizedPath || normalizedPath === '.') {
throw new Error('seedPaths entries must not target the repo root');
}
if (normalizedPath === '.git' || normalizedPath.startsWith('.git/')) {
throw new Error(`seedPaths entries must not target git metadata: ${entry}`);
}
if (seen.has(normalizedPath)) {
continue;
}