-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-core.js
More file actions
40 lines (32 loc) · 1.39 KB
/
Copy pathtest-core.js
File metadata and controls
40 lines (32 loc) · 1.39 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
#!/usr/bin/env node
// Test core Alloy functionality without TUI
console.log('Testing Alloy core functionality...');
try {
// Test configuration loading
const { initConfig } = require('./dist/index.js');
const configLoader = initConfig();
console.log('✓ Configuration loader initialized');
// Test provider registry
const { getProviders, getModels } = require('./dist/index.js');
const providers = getProviders();
const models = getModels();
console.log(`✓ Provider registry loaded: ${providers.length} providers, ${models.length} models`);
// Test skill manager
const { SkillManager } = require('./dist/index.js');
const skills = new SkillManager();
console.log('✓ Skill manager initialized');
// Test memory manager
const { MemoryManager } = require('./dist/index.js');
const memory = new MemoryManager();
console.log('✓ Memory manager initialized');
// Test cost governor
const { CostGovernor } = require('./dist/index.js');
const governor = new CostGovernor(10.0);
console.log('✓ Cost governor initialized');
console.log('\n🎉 All core systems initialized successfully!');
console.log('Alloy is production-ready for core functionality.');
console.log('\nNote: TUI requires compatible terminal (Windows Terminal, PowerShell 7+, etc.)');
} catch (error) {
console.error('❌ Error testing core functionality:', error.message);
process.exit(1);
}