The backend /api/agents list endpoint returns a lightweight DTO without configuration fields (temperature, maxTokens, systemPrompt, enableMemory, conversationWindowSize). This caused a TypeError when parsing the response as these fields were required in AgentDto. Changes: - Made 5 configuration fields nullable in AgentDto - Updated constructor to accept optional values - Fixed fromJson() to safely handle null values with explicit checks - Maintains backward compatibility with full agent detail responses This fix resolves the "Error Loading Agents" issue and allows the agents page to display correctly. List endpoint now parses successfully while detail endpoints still provide full configuration. Fixes: TypeError: null: type 'Null' is not a subtype of type 'num' Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude-docs | ||
| android | ||
| assets/fonts | ||
| docs | ||
| images | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| scripts | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| api-schema.json | ||
| build.yaml | ||
| claude.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README_API.md | ||
| README.md | ||
| run_dev.sh | ||
Svrnty Console
Sovereign AI Solutions - Control Panel
A Flutter-based management console for the Svrnty AI platform, providing a modern interface for monitoring, configuring, and controlling AI agents and infrastructure.
Features
- Dashboard: Real-time status monitoring of backend services, agents, and system health
- The Architech: AI infrastructure design and visualization (coming soon)
- Agent Management: Configure and monitor AI agents
- Analytics: Metrics and performance monitoring
- Dark Theme: Professional dark mode with Svrnty brand colors
Tech Stack
- Flutter 3.x - Cross-platform UI framework
- GetWidget - Modern UI component library
- Iconsax - Clean, modern icon set
- Animate Do - Smooth animations
- Custom Theming - Svrnty brand colors (Crimson Red #C44D58, Slate Blue #475C6C)
Project Structure
lib/
├── main.dart # App entry point
├── console_landing_page.dart # Main console UI
├── theme.dart # Material theme configuration
├── components/
│ └── navigation_sidebar.dart # Collapsible navigation
└── pages/
└── architech_page.dart # The Architech module
Getting Started
Prerequisites
- Flutter SDK 3.9.2 or higher
- Dart SDK 3.9.2 or higher
Installation
# Clone the repository
git clone [repository-url]
cd Console
# Install dependencies
flutter pub get
# Run the application
flutter run
Development
# Run tests
flutter test
# Analyze code
flutter analyze
# Build for production
flutter build macos # or ios, web, etc.
Brand Fonts
- Montserrat - Primary UI font
- IBM Plex Mono - Code and technical content
License
Private - Svrnty AI Solutions