-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_ui_architecture.ts
More file actions
49 lines (41 loc) · 1.47 KB
/
Copy pathverify_ui_architecture.ts
File metadata and controls
49 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import type { HudData } from './src/domain/system/TerminalInterface';
/**
* Copyright (c) 2026 DietCode Contributors
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { BoxRenderer } from './src/ui/renderers/BoxRenderer';
import { HudRenderer } from './src/ui/renderers/HudRenderer';
import { SplashRenderer } from './src/ui/renderers/SplashRenderer';
async function verify() {
console.log('--- VERIFYING SOVEREIGN UI ARCHITECTURE ---');
// 1. BoxRenderer
console.log('\nTesting BoxRenderer:');
console.log(
BoxRenderer.render(
'Test Title',
'This is a test of the modular BoxRenderer.\nMultiple lines are supported.',
'SUCCESS',
),
);
// 2. HudRenderer
console.log('\nTesting HudRenderer:');
const mockHudData: HudData = {
projectName: 'DIETCODE',
userName: 'BOZOEGG',
agentId: 'ANTIGRAVITY',
health: 0.85,
activeTask: 'REFACTORING_UI',
};
console.log(HudRenderer.render(mockHudData));
// 3. SplashRenderer
console.log('\nTesting SplashRenderer (Splash):');
console.log(SplashRenderer.renderSplash());
console.log('\nTesting SplashRenderer (Premium Can):');
console.log(SplashRenderer.renderPremiumCan());
console.log('\nTesting SplashRenderer (Metric):');
console.log(SplashRenderer.renderMetric('Cognitive Heat', 12345, 10000, 50000));
console.log('\n--- VERIFICATION COMPLETE ---');
}
verify().catch(console.error);