
Fonctionnalités révolutionnaires: - ✨ IA capable d'exécuter des commandes système de manière sécurisée - 🧠 Planification automatique des tâches complexes - 🔒 Système de sécurité avec listes blanches/noires de commandes - 📋 Création de plans d'action étape par étape - 🚀 Exécution automatique avec feedback en temps réel - 📊 Génération de rapports détaillés Nouvelles commandes: - `exec <commande>` - Exécution directe sécurisée - `plan <description>` - Création de plan d'action - `run` - Exécution du plan créé - `cancel` - Annulation du plan actuel Mode intelligent: - L'IA analyse automatiquement si des commandes sont nécessaires - Création et exécution automatique de plans d'action - Feedback visuel avec icônes de statut - Gestion des erreurs et adaptation du plan Exemple d'usage: 🧠 NeuraTerm> analyse le répertoire 🤖 Analyse intelligente: cette demande nécessite des actions système. 📋 Création automatique d'un plan d'action... 🎯 Plan créé: Analyser la structure et le contenu du répertoire courant 🔄 Exécution automatique en cours... ✅ Lister les fichiers et dossiers ✅ Afficher la structure arborescente 📊 Génération du rapport final... L'IA est maintenant vraiment autonome et opérationnelle ! 🚀 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
767 B
TypeScript
29 lines
767 B
TypeScript
/**
|
|
* Environnement d'exécution avec support des commandes
|
|
*/
|
|
|
|
import { CommandExecutor } from './commandExecutor.js';
|
|
import { logger } from '../utils/logger.js';
|
|
|
|
export class ExecutionEnvironment {
|
|
private commandExecutor: CommandExecutor;
|
|
|
|
constructor(private config: any) {
|
|
this.commandExecutor = new CommandExecutor();
|
|
logger.info('Environnement d\'exécution initialisé');
|
|
}
|
|
|
|
getCommandExecutor(): CommandExecutor {
|
|
return this.commandExecutor;
|
|
}
|
|
|
|
isExecutionEnabled(): boolean {
|
|
return this.config.execution?.enabled ?? true;
|
|
}
|
|
}
|
|
|
|
export async function initExecutionEnvironment(config: any): Promise<ExecutionEnvironment> {
|
|
return new ExecutionEnvironment(config);
|
|
}
|
|
|
|
export { CommandExecutor } from './commandExecutor.js'; |