fex_intelligence 1.0.4 copy "fex_intelligence: ^1.0.4" to clipboard
fex_intelligence: ^1.0.4 copied to clipboard

The AI-Powered Intelligence Layer for Flutter. FEX provides autonomous QA, security pentesting, self-healing code, and architecture evolution.

example/example.dart

// ==========================================
// FEX Intelligence (Flutter Engine-X)
// Example Usage
// ==========================================
// 
// FEX is primarily a Command Line Interface (CLI) tool.
// To use it, you do not need to write Dart code. Instead, 
// you run it directly from your terminal.
//
// 1. Activate the CLI globally:
//    $ dart pub global activate fex_intelligence
//
// 2. Set up your Gemini AI API Key (Required for God-Level commands):
//    $ fex config --key YOUR_GEMINI_API_KEY
//
// 3. Generate a complete CRUD architecture:
//    $ fex generate crud -n User
//
// 4. Run the AI Security Pentester:
//    $ fex pentest
//
// 5. Simulate an AI Team Review on your current architecture:
//    $ fex review
//
// ==========================================
// Programmatic Usage (Advanced)
// ==========================================
import 'package:fex_intelligence/fex_intelligence.dart';

void main() async {
  print('Running FEX Programmatically...');
  
  // Example of using the AI Engine programmatically:
  // Note: Requires the API key to be set in ~/.fex/config.json
  try {
    final response = await AIEngine.ask(
      'What are the best practices for handling errors in Riverpod?'
    );
    print(response);
  } catch (e) {
    print('AI Engine Error: Make sure your API key is configured.');
  }
}
1
likes
0
points
67
downloads

Publisher

unverified uploader

Weekly Downloads

The AI-Powered Intelligence Layer for Flutter. FEX provides autonomous QA, security pentesting, self-healing code, and architecture evolution.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, dio, google_generative_ai, http, path

More

Packages that depend on fex_intelligence