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:
oliver 2026-09-13 11:46:31 +08:00
parent fcdd11ac59
commit 2caa3c98d7
26 changed files with 1122 additions and 106 deletions

View file

@ -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()
})