Register MANIFEST paths.localSkills alongside pack _skills.

Parse packaging-generated paths and load each local_skills/*/SKILL.md with the same hasSkills toggles and provider as shared packs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-15 08:23:05 +08:00
parent 6dee69be31
commit 53c47fbc6a
18 changed files with 662 additions and 156 deletions

View file

@ -32,11 +32,14 @@ test('publishKbContext updates store', () => {
hasCommon: false,
hasSkills: false,
},
paths: { skills: '_skills', localSkills: 'regions/ID/IOH/_local/local_skills' },
errorMessage: '',
})
const snap = getKbContext()
assert.equal(snap.status, 'configured')
assert.equal(snap.operatorName, 'IOH')
assert.equal(snap.paths.skills, '_skills')
assert.equal(snap.paths.localSkills, 'regions/ID/IOH/_local/local_skills')
applyKbEnv(snap)
assert.equal(process.env.KB_OPERATOR, 'IOH')
assert.equal(process.env.KB_COUNTRY, 'ID')