From 38594d6fd42333b70fd377f993639c7695b797e3 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 7 Mar 2026 23:10:07 -0800 Subject: [PATCH] =?UTF-8?q?feat(flutter):=20rename=20iAgent=E2=86=92?= =?UTF-8?q?=E6=88=91=E6=99=BA=E8=83=BD=E4=BD=93=EF=BC=8C=E5=88=9B=E5=BB=BA?= =?UTF-8?q?/=E5=88=A0=E9=99=A4=E2=86=92=E6=8B=9B=E5=8B=9F=EF=BC=8C?= =?UTF-8?q?=E6=8B=89=E8=BF=91=E4=BA=BA=E6=9C=BA=E5=85=B3=E7=B3=BB=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - App title、登录页、导航Tab、通话页等全局将 iAgent 改为 我智能体 - 底部导航 Tab "我的创建" → "我的智能体" - 智能体语境下 "创建" → "招募":招募你的专属智能体、帮我招募一个... - tasks_page 空状态文案 "创建" → "新增"(非智能体语境保持语义准确) - 终端欢迎语、通知渠道描述同步更新 Co-Authored-By: Claude Sonnet 4.6 --- it0_app/lib/app.dart | 2 +- it0_app/lib/core/router/app_router.dart | 2 +- .../lib/core/services/notification_service.dart | 2 +- .../presentation/pages/agent_call_page.dart | 6 +++--- .../auth/presentation/pages/login_page.dart | 2 +- .../chat/presentation/pages/chat_page.dart | 4 ++-- .../home/presentation/pages/home_page.dart | 10 +++++----- .../presentation/pages/my_agents_page.dart | 14 +++++++------- .../tasks/presentation/pages/tasks_page.dart | 2 +- .../terminal/presentation/pages/terminal_page.dart | 2 +- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/it0_app/lib/app.dart b/it0_app/lib/app.dart index 150c9d6..f05eb32 100644 --- a/it0_app/lib/app.dart +++ b/it0_app/lib/app.dart @@ -13,7 +13,7 @@ class IT0App extends ConsumerWidget { final themeMode = ref.watch(themeModeProvider); return MaterialApp.router( - title: 'iAgent', + title: '我智能体', theme: AppTheme.lightTheme, darkTheme: AppTheme.darkTheme, themeMode: themeMode, diff --git a/it0_app/lib/core/router/app_router.dart b/it0_app/lib/core/router/app_router.dart index 11c9321..a6bcf8a 100644 --- a/it0_app/lib/core/router/app_router.dart +++ b/it0_app/lib/core/router/app_router.dart @@ -169,7 +169,7 @@ class _ScaffoldWithNavState extends ConsumerState const NavigationDestination( icon: Icon(Icons.smart_toy_outlined), selectedIcon: Icon(Icons.smart_toy), - label: '我的创建', + label: '我的智能体', ), NavigationDestination( icon: Badge( diff --git a/it0_app/lib/core/services/notification_service.dart b/it0_app/lib/core/services/notification_service.dart index 67cf19a..2920155 100644 --- a/it0_app/lib/core/services/notification_service.dart +++ b/it0_app/lib/core/services/notification_service.dart @@ -71,7 +71,7 @@ class NotificationService { const androidDetails = AndroidNotificationDetails( 'it0_notifications', '运维通知', - channelDescription: 'iAgent 运维告警和通知', + channelDescription: '我智能体 运维告警和通知', importance: Importance.high, priority: Priority.high, ); diff --git a/it0_app/lib/features/agent_call/presentation/pages/agent_call_page.dart b/it0_app/lib/features/agent_call/presentation/pages/agent_call_page.dart index 8a9e3cd..079a527 100644 --- a/it0_app/lib/features/agent_call/presentation/pages/agent_call_page.dart +++ b/it0_app/lib/features/agent_call/presentation/pages/agent_call_page.dart @@ -797,7 +797,7 @@ class _AgentCallPageState extends ConsumerState ), ), const SizedBox(width: 8), - const Text('iAgent', + const Text('我智能体', style: TextStyle(fontWeight: FontWeight.w600, fontSize: 15)), const SizedBox(width: 8), Text( @@ -944,11 +944,11 @@ class _AgentCallPageState extends ConsumerState String get _statusText { switch (_phase) { case _CallPhase.ringing: - return 'iAgent 语音通话'; + return '我智能体 语音通话'; case _CallPhase.connecting: return '连接中...'; case _CallPhase.active: - return 'iAgent'; + return '我智能体'; case _CallPhase.ended: return '通话结束'; } diff --git a/it0_app/lib/features/auth/presentation/pages/login_page.dart b/it0_app/lib/features/auth/presentation/pages/login_page.dart index d58e442..04b05d6 100644 --- a/it0_app/lib/features/auth/presentation/pages/login_page.dart +++ b/it0_app/lib/features/auth/presentation/pages/login_page.dart @@ -89,7 +89,7 @@ class _LoginPageState extends ConsumerState { SvgPicture.asset('assets/icons/logo.svg', width: 96, height: 96), const SizedBox(height: 12), const Text( - 'iAgent', + '我智能体', style: TextStyle( color: AppColors.textPrimary, fontSize: 28, diff --git a/it0_app/lib/features/chat/presentation/pages/chat_page.dart b/it0_app/lib/features/chat/presentation/pages/chat_page.dart index cbf0c67..82a549a 100644 --- a/it0_app/lib/features/chat/presentation/pages/chat_page.dart +++ b/it0_app/lib/features/chat/presentation/pages/chat_page.dart @@ -527,7 +527,7 @@ class _ChatPageState extends ConsumerState { children: [ RobotAvatar(state: robotState, size: 32), const SizedBox(width: 8), - const Text('iAgent', + const Text('我智能体', style: TextStyle( fontSize: 16, fontWeight: FontWeight.w600)), ], @@ -644,7 +644,7 @@ class _ChatPageState extends ConsumerState { Icon(Icons.smart_toy_outlined, size: 64, color: AppColors.textMuted), const SizedBox(height: 16), Text( - '开始与 iAgent 对话', + '开始与 我智能体 对话', style: TextStyle(color: AppColors.textSecondary, fontSize: 16), ), const SizedBox(height: 8), diff --git a/it0_app/lib/features/home/presentation/pages/home_page.dart b/it0_app/lib/features/home/presentation/pages/home_page.dart index 9d3d684..f8344cb 100644 --- a/it0_app/lib/features/home/presentation/pages/home_page.dart +++ b/it0_app/lib/features/home/presentation/pages/home_page.dart @@ -48,7 +48,7 @@ class HomePage extends ConsumerWidget { ), const SizedBox(height: 2), const Text( - 'iAgent 随时为你服务', + '我智能体 随时为你服务', style: TextStyle( fontSize: 12, color: AppColors.textSecondary, @@ -191,7 +191,7 @@ class _AgentStatusCard extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( - 'iAgent', + '我智能体', style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, @@ -273,7 +273,7 @@ class _OfficialAgentsRow extends StatelessWidget { static const _agents = [ _AgentCard( - name: 'iAgent 运维助手', + name: '我智能体 运维助手', desc: '服务器管理、SSH 执行、日志分析', icon: Icons.dns_outlined, color: Color(0xFF6366F1), @@ -433,7 +433,7 @@ class _MyAgentsPlaceholder extends StatelessWidget { ), const SizedBox(height: 6), const Text( - '点击下方机器人按钮,告诉 iAgent\n"帮我创建一个 OpenClaw 智能体"', + '点击下方机器人按钮,告诉 我智能体\n"帮我招募一个 OpenClaw 智能体"', style: TextStyle( fontSize: 13, color: AppColors.textSecondary, @@ -455,7 +455,7 @@ class _QuickTipsCard extends StatelessWidget { const _QuickTipsCard(); static const _tips = [ - '💬 "帮我创建一个监控 GitHub Actions 的智能体"', + '💬 "帮我招募一个监控 GitHub Actions 的智能体"', '🔧 "把我的 OpenClaw 配置导出为 JSON"', '📊 "分析我的服务器最近7天的负载情况"', '🛡️ "帮我设置每天凌晨2点自动备份数据库"', diff --git a/it0_app/lib/features/my_agents/presentation/pages/my_agents_page.dart b/it0_app/lib/features/my_agents/presentation/pages/my_agents_page.dart index 28ce853..641e26c 100644 --- a/it0_app/lib/features/my_agents/presentation/pages/my_agents_page.dart +++ b/it0_app/lib/features/my_agents/presentation/pages/my_agents_page.dart @@ -108,7 +108,7 @@ class MyAgentsPage extends ConsumerWidget { backgroundColor: AppColors.background, appBar: AppBar( backgroundColor: AppColors.background, - title: const Text('我的创建'), + title: const Text('我的智能体'), actions: [ IconButton( icon: const Icon(Icons.refresh_outlined), @@ -146,21 +146,21 @@ class MyAgentsPage extends ConsumerWidget { ), const SizedBox(height: 24), const Text( - '创建你的专属智能体', + '招募你的专属智能体', style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: AppColors.textPrimary), ), const SizedBox(height: 10), const Text( - '通过与 iAgent 对话,你可以创建各种智能体:\nOpenClaw 编程助手、运维机器人、数据分析师...', + '通过与 我智能体 对话,你可以招募各种智能体:\nOpenClaw 编程助手、运维机器人、数据分析师...', style: TextStyle(fontSize: 14, color: AppColors.textSecondary, height: 1.6), textAlign: TextAlign.center, ), const SizedBox(height: 36), - _StepCard(step: '1', title: '点击下方机器人', desc: '打开与 iAgent 的对话窗口', icon: Icons.smart_toy_outlined, color: AppColors.primary), + _StepCard(step: '1', title: '点击下方机器人', desc: '打开与 我智能体 的对话窗口', icon: Icons.smart_toy_outlined, color: AppColors.primary), const SizedBox(height: 12), - _StepCard(step: '2', title: '描述你想要的智能体', desc: '例如:"帮我创建一个 OpenClaw 编程助手"', icon: Icons.record_voice_over_outlined, color: const Color(0xFF0EA5E9)), + _StepCard(step: '2', title: '描述你想要的智能体', desc: '例如:"帮我招募一个 OpenClaw 编程助手"', icon: Icons.record_voice_over_outlined, color: const Color(0xFF0EA5E9)), const SizedBox(height: 12), - _StepCard(step: '3', title: 'iAgent 自动部署', desc: '部署完成后出现在这里,通过 Telegram/WhatsApp 等渠道与它对话', icon: Icons.check_circle_outline, color: AppColors.success), + _StepCard(step: '3', title: '我智能体 自动部署', desc: '部署完成后出现在这里,通过 Telegram/WhatsApp 等渠道与它对话', icon: Icons.check_circle_outline, color: AppColors.success), const SizedBox(height: 36), const _TemplatesSection(), const SizedBox(height: 100), @@ -433,7 +433,7 @@ class _TemplatesSection extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - const Text('热门模板(告诉 iAgent 你想要哪种)', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: AppColors.textSecondary)), + const Text('热门模板(告诉 我智能体 你想要哪种)', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: AppColors.textSecondary)), const SizedBox(height: 12), GridView.count( shrinkWrap: true, diff --git a/it0_app/lib/features/tasks/presentation/pages/tasks_page.dart b/it0_app/lib/features/tasks/presentation/pages/tasks_page.dart index 5fea33d..1350fd1 100644 --- a/it0_app/lib/features/tasks/presentation/pages/tasks_page.dart +++ b/it0_app/lib/features/tasks/presentation/pages/tasks_page.dart @@ -175,7 +175,7 @@ class _StandingOrdersListBody extends StatelessWidget { return const EmptyState( icon: Icons.rule_outlined, title: '暂无常驻指令', - subtitle: '通过 iAgent 对话创建常驻指令', + subtitle: '通过 我智能体 对话新增常驻指令', ); } return ListView.builder( diff --git a/it0_app/lib/features/terminal/presentation/pages/terminal_page.dart b/it0_app/lib/features/terminal/presentation/pages/terminal_page.dart index 04866c4..73522d7 100644 --- a/it0_app/lib/features/terminal/presentation/pages/terminal_page.dart +++ b/it0_app/lib/features/terminal/presentation/pages/terminal_page.dart @@ -56,7 +56,7 @@ class _TerminalPageState extends ConsumerState { super.initState(); _terminal = Terminal(maxLines: 10000); _terminal.onOutput = _onTerminalInput; - _terminal.write('iAgent 远程终端\r\n'); + _terminal.write('我智能体 远程终端\r\n'); _terminal.write('请选择服务器并点击连接。\r\n'); }