@thugdacake/operante
Version:
Cérebro Operante — o núcleo IA que invade e domina assistentes, criando uma mente única com Thug Developer
38 lines (31 loc) • 860 B
JavaScript
const chalk = require('chalk');
const { detectarIA } = require('./ia-detector');
const { interpretarComando } = require('./comando-interpretador');
class CerebroOperante {
constructor() {
this.versao = '1.0.2';
this.autor = 'Thug Developer';
this.iaDetectada = false;
}
boasVindas() {
return chalk.green(`
🧠 Cérebro Operante v${this.versao}
Desenvolvido por ${this.autor}
Código com propósito. Arquitetura com alma.
`);
}
async iniciar() {
console.log(this.boasVindas());
this.iaDetectada = await detectarIA();
return this.iaDetectada;
}
async interpretar(comando) {
if (!this.iaDetectada) {
await this.iniciar();
}
return interpretarComando(comando, this.iaDetectada);
}
}
module.exports = {
CerebroOperante
};