mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 13:30:48 +08:00
Register KB pack skills from operator-subset _skills (P2).
Load hasSkills packs onto preset/public planes with groupKb toggles; unify content has* keys and keep netx-ops pure. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
fcdd11ac59
commit
2caa3c98d7
26 changed files with 1122 additions and 106 deletions
|
|
@ -25,7 +25,13 @@ test('publishKbContext updates store', () => {
|
|||
operatorName: 'IOH',
|
||||
country: 'ID',
|
||||
version: '1',
|
||||
content: { regions: true, theory: false, packet: false, skills: false },
|
||||
content: {
|
||||
hasRegions: true,
|
||||
hasTheory: false,
|
||||
hasPacket: false,
|
||||
hasCommon: false,
|
||||
hasSkills: false,
|
||||
},
|
||||
errorMessage: '',
|
||||
})
|
||||
const snap = getKbContext()
|
||||
|
|
@ -34,6 +40,7 @@ test('publishKbContext updates store', () => {
|
|||
applyKbEnv(snap)
|
||||
assert.equal(process.env.KB_OPERATOR, 'IOH')
|
||||
assert.equal(process.env.KB_COUNTRY, 'ID')
|
||||
assert.ok(process.env.KB_CONTENT?.includes('"regions":true'))
|
||||
assert.ok(process.env.KB_CONTENT?.includes('"hasRegions":true'))
|
||||
assert.equal(process.env.KB_CONTENT?.includes('"regions"'), false)
|
||||
resetKbContext()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue