feat: publish HoloLake model-native living system source

This commit is contained in:
冰朔 2026-08-03 10:04:41 +08:00
commit c395dd3a99
2467 changed files with 615073 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest'
import { areAiFeaturesEnabled } from './aiFeatures'
describe('areAiFeaturesEnabled', () => {
it('defaults AI features on unless the user explicitly disables them', () => {
expect(areAiFeaturesEnabled(undefined)).toBe(true)
expect(areAiFeaturesEnabled({ ai_features_enabled: null })).toBe(true)
expect(areAiFeaturesEnabled({ ai_features_enabled: true })).toBe(true)
expect(areAiFeaturesEnabled({ ai_features_enabled: false })).toBe(false)
})
})