feat: add headless agent management to CLI and both desktop clients
This commit is contained in:
1 parent
e91fa0235c
commit
6916dd54fb
50 files changed
+4837
-148
No files matched your search
@@ -3,6 +3,7 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import '../data/manager_repository.dart';
|
||||
import 'manager_model.dart';
|
||||
import 'agent_view.dart';
|
||||
|
||||
class ManagerView extends StatefulWidget {
|
||||
final ManagerModel model;
|
||||
@@ -54,6 +55,7 @@ class _ManagerViewState extends State<ManagerView> {
|
||||
(2, '本机 ADB', Icons.terminal_rounded),
|
||||
(3, '连接配置', Icons.tune_rounded),
|
||||
(4, '运行日志', Icons.receipt_long_outlined),
|
||||
(5, 'Agent 管理', Icons.computer_outlined),
|
||||
])
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
@@ -122,6 +124,7 @@ class _ManagerViewState extends State<ManagerView> {
|
||||
'本机 ADB',
|
||||
'连接配置',
|
||||
'运行日志',
|
||||
'Agent 管理',
|
||||
][page],
|
||||
style: const TextStyle(
|
||||
fontSize: 24,
|
||||
@@ -159,6 +162,7 @@ class _ManagerViewState extends State<ManagerView> {
|
||||
1 => nodes(),
|
||||
2 => adb(),
|
||||
3 => SettingsView(model: m),
|
||||
5 => AgentView(model: m.agents),
|
||||
_ => logs(),
|
||||
},
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user