-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtest-subagents.js
More file actions
33 lines (28 loc) · 1.19 KB
/
Copy pathtest-subagents.js
File metadata and controls
33 lines (28 loc) · 1.19 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
// Simple test to check if sub-agents are loading correctly
// Run this in the browser console when the app is running
async function testSubAgents() {
try {
// Test loading all sub-agents
const allAgents = await window.__TAURI__.invoke('load_all_sub_agents');
console.log('All sub-agents:', allAgents);
console.log('Total sub-agents found:', allAgents.length);
// Test loading sub-agents grouped by CLI
const groupedAgents = await window.__TAURI__.invoke('load_sub_agents_grouped');
console.log('Grouped sub-agents:', groupedAgents);
// Test loading sub-agents for specific CLI
const claudeAgents = await window.__TAURI__.invoke('load_sub_agents_for_cli', { cliName: 'claude' });
console.log('Claude sub-agents:', claudeAgents);
// Display summary
console.log('\n=== Summary ===');
for (const [cli, agents] of Object.entries(groupedAgents)) {
console.log(`${cli}: ${agents.length} agents`);
agents.forEach(agent => {
console.log(` - ${agent.name}: ${agent.description.substring(0, 50)}...`);
});
}
} catch (error) {
console.error('Error testing sub-agents:', error);
}
}
// Run the test
testSubAgents();