c41e5063b7
Removed entire kbx-foundation-v36 directory as it's been replaced by the new KBX Foundation v4 patterns implemented in this session: - Registry-driven screen definitions - Density-aware UI adapter components - Feature module templates (ShadowRun, Models) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
13 lines
416 B
TypeScript
13 lines
416 B
TypeScript
import { kbxTestScenarioCatalog } from '@kbx/contracts'
|
|
|
|
export function requireKbxScenario(id: keyof typeof kbxTestScenarioCatalog) {
|
|
const scenario = kbxTestScenarioCatalog[id]
|
|
if (!scenario) throw new Error(`Unknown KBX scenario: ${String(id)}`)
|
|
return scenario
|
|
}
|
|
|
|
export function scenarioTitle(id: keyof typeof kbxTestScenarioCatalog) {
|
|
const s = requireKbxScenario(id)
|
|
return `[${s.id}] ${s.title}`
|
|
}
|