Initial commit: Captain Claude Mobile App
- Flutter app with chat and terminal screens - WebSocket integration for real-time chat - xterm integration for screen sessions - Markdown rendering with code blocks - JWT authentication Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
18
lib/config/api_config.dart
Normal file
18
lib/config/api_config.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
class ApiConfig {
|
||||
static const String baseUrl = 'https://captain.tzzrarchitect.me';
|
||||
static const String wsUrl = 'wss://captain.tzzrarchitect.me';
|
||||
|
||||
// Endpoints
|
||||
static const String login = '/auth/login';
|
||||
static const String sessions = '/sessions';
|
||||
static const String history = '/history';
|
||||
static const String upload = '/upload';
|
||||
|
||||
// WebSocket endpoints
|
||||
static const String wsChat = '/ws/chat';
|
||||
static String wsTerminal(String sessionName) => '/ws/terminal/$sessionName';
|
||||
|
||||
// Timeouts
|
||||
static const Duration connectionTimeout = Duration(seconds: 30);
|
||||
static const Duration receiveTimeout = Duration(seconds: 60);
|
||||
}
|
||||
Reference in New Issue
Block a user