aios-core
Version:
Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework
40 lines (31 loc) • 1.11 kB
JavaScript
/**
* AIOS-FullStack Minimal Installation
*
* DEPRECATED (since v3.11.1, scheduled for removal in v5.0.0):
* The --minimal mode was designed for squads which have been
* replaced by the Squads system (OSR-8). This command now runs the
* standard wizard through the main router.
*/
const { spawn } = require('child_process');
const path = require('path');
// Show deprecation warning
console.log('\n⚠️ DEPRECATION WARNING: aios-minimal is deprecated.');
console.log(' The --minimal mode (squads) was replaced by Squads.');
console.log(' Running standard installation wizard instead.\n');
// Get the path to the main router (aios.js)
const routerPath = path.join(__dirname, 'aios.js');
// Forward all arguments to the main router
const args = process.argv.slice(2);
// Spawn the main router
const child = spawn('node', [routerPath, ...args], {
stdio: 'inherit',
cwd: process.cwd(),
});
child.on('close', (code) => {
process.exit(code || 0);
});
child.on('error', (error) => {
console.error('❌ Failed to start AIOS:', error.message);
process.exit(1);
});