mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 17:10:46 +08:00
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:
parent
6dee69be31
commit
53c47fbc6a
18 changed files with 662 additions and 156 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue