aios-core
Version:
Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework
67 lines (54 loc) ⢠1.95 kB
JavaScript
/**
* AIOS Status Command for Gemini CLI Extension
* Shows system status and provider information
*/
const fs = require('fs');
const path = require('path');
async function main() {
const projectDir = process.cwd();
console.log('š· AIOS Status\n');
console.log('ā'.repeat(40));
// Check AIOS installation
const aiosCorePath = path.join(projectDir, '.aios-core');
if (fs.existsSync(aiosCorePath)) {
console.log('ā
AIOS Core: Installed');
// Count agents
const agentsPath = path.join(aiosCorePath, 'development', 'agents');
if (fs.existsSync(agentsPath)) {
const agents = fs.readdirSync(agentsPath).filter((f) => f.endsWith('.md'));
console.log(` Agents: ${agents.length}`);
}
// Count tasks
const tasksPath = path.join(aiosCorePath, 'development', 'tasks');
if (fs.existsSync(tasksPath)) {
const tasks = fs.readdirSync(tasksPath).filter((f) => f.endsWith('.md'));
console.log(` Tasks: ${tasks.length}`);
}
} else {
console.log('ā AIOS Core: Not installed');
console.log(' Run: npx aios-core install');
}
// Check providers
console.log('\nš” AI Providers:');
try {
require('child_process').execSync('claude --version', { stdio: 'pipe' });
console.log(' ā
Claude Code: Available');
} catch {
console.log(' ā Claude Code: Not installed');
}
try {
require('child_process').execSync('gemini --version', { stdio: 'pipe' });
console.log(' ā
Gemini CLI: Available (current)');
} catch {
console.log(' ā ļø Gemini CLI: Running from extension');
}
// Check config
const configPath = path.join(projectDir, '.aios-ai-config.yaml');
if (fs.existsSync(configPath)) {
console.log('\nāļø AI Config: .aios-ai-config.yaml found');
}
console.log('\n' + 'ā'.repeat(40));
console.log('Use @agent-name to activate an agent');
}
main().catch(console.error);