refactor: remove repository plugin path

This commit is contained in:
Turtle
2026-08-09 13:13:30 +08:00
parent cd226191a8
commit 993550e6c8
100 changed files with 171 additions and 3612 deletions

View File

@@ -166,9 +166,8 @@ export class LocalSkillProvider implements SkillProvider {
this.watchManager = new SkillWatchManager(ctx, control.invalidate, resolveWatchConfig(config))
control.signal.addEventListener('abort', () => { void this.dispose() }, { once: true })
// The environment bundled root is a default root: an isolated provider
// (includeDefaultRoots: false — repository plugins) must see only its
// explicit custom roots, or every such provider would re-discover the
// app's bundled skills and claim them under its own provider name.
// must see only its explicit roots, or every such provider would
// re-discover the app's bundled skills under its own provider name.
const bundledSkillDir = config.bundledSkillDir
?? (this.includeDefaultRoots ? process.env.DSH_BUNDLED_SKILL_DIR : undefined)
this.bundledSkillDir = bundledSkillDir === undefined ? undefined : resolve(bundledSkillDir)