Commit Graph
271 Commits
Author SHA1 Message Date
xmanrui bedfe09ef8 fix: auto-discover agents when agents.list is empty
- Scan ~/.openclaw/agents/ directory to find agents when config has no agents.list
- Detect feishu platform by matching feishu account id to agent id (not just bindings)
- Detect discord bindings for non-main agents
- Fallback to at least 'main' agent if no agents found
- Fixes issue where single-agent users with feishu see no bot cards
2026-02-20 20:20:26 +08:00
xmanrui 5fb7ce95fe fix: resolve hydration mismatch in i18n provider
Initialize locale as 'zh' on both server and client, then read
localStorage in useEffect to avoid SSR/client text mismatch.
2026-02-20 17:11:49 +08:00
xmanrui ea345868f4 feat: add i18n support (zh-CN/en) with language switcher
- Add lib/i18n.tsx with translation dictionaries, I18nProvider, useI18n hook, and LanguageSwitcher component
- Add app/providers.tsx client-side provider wrapper
- Internationalize all pages: home, models, stats, sessions, skills
- Update layout.tsx with I18nProvider
- Default language: Chinese, switchable to English via button
- Language preference persisted in localStorage
- Fix DayStat type error in stats API route
2026-02-20 17:00:27 +08:00
xmanrui 44b95f9fe4 feat: 全局统计图表、模型用量统计、模型测试按钮、使用中显示名称
- 新增 /api/stats-all: 聚合所有 agent 的 token 和响应时间统计
- 首页新增 token 趋势和响应时间趋势折线图(天/周/月切换)
- 新增 /api/stats-models: 按模型聚合 input/output token 和平均响应时间
- 模型列表新增 Input 用量、Output 用量、平均响应三列
- 新增 /api/test-model: 支持 anthropic-messages 和 openai-completions 测试
- 每个模型新增测试按钮,显示成功/失败状态和耗时
- 新增「测试全部模型」按钮,并行测试所有模型
- 模型列表「使用中」改为显示 emoji + 机器人名称
- 页面标题改为「OpenClaw接入模型列表」
2026-02-19 22:05:16 +08:00
xmanrui b9f8b8b0e9 feat: 新增消息统计页面 + 会话列表点击跳转chat
- 新增 /stats?agent={id} 统计页面,按天/周/月展示 token 消耗和响应时间图表
- 新增 /api/stats/[agentId] API,解析 JSONL session 文件聚合统计数据
- 会话列表页点击会话行可跳转到对应 chat 页面
- 首页 agent 卡片新增统计入口链接
2026-02-19 14:32:27 +08:00
xmanrui 05cbe5fb78 feat: add session list page with clickable session count on agent cards 2026-02-19 03:40:52 +08:00
xmanrui 56e2cc8412 fix: include all feishu-bound agents in group chat topology 2026-02-19 03:25:31 +08:00
xmanrui 60a57963dd feat: add session status monitoring and group chat topology
- Agent cards now show session count, total token usage, and last active time
- New group chat topology section showing which agents share the same group/channel
- Read session data from OpenClaw sessions.json files
2026-02-19 03:20:04 +08:00
xmanrui be8856302c style: improve platform badge hover effect and add click hint 2026-02-19 03:02:05 +08:00
xmanrui 0d37ff61a8 docs: add dashboard preview screenshot to README 2026-02-19 02:55:11 +08:00
xmanrui d2c7facfd9 fix: resolve nested anchor hydration error by using div+onClick for AgentCard 2026-02-19 02:11:22 +08:00
xmanrui 675c36eaa9 refactor: rename ID label to agentId on agent cards 2026-02-19 02:08:28 +08:00
xmanrui f0f44307f1 fix: 修改session跳转逻辑
- 点击机器人卡片跳转到 agent 的 main session chat 页面
- 点击飞书平台 badge 跳转到对应飞书 DM session (用户 open_id)
- 点击 Discord 平台 badge 跳转到对应 Discord DM session (用户 id)
- 从 OpenClaw sessions 文件读取每个 agent 对应的用户 open_id
2026-02-19 01:58:07 +08:00
xmanrui 2f2223d564 fix: pass gateway token in session URL to fix auth error 2026-02-18 02:23:55 +08:00
xmanrui 14d7b1a6fa feat: clickable platform badges linking to OpenClaw session UI 2026-02-18 02:20:06 +08:00
xmanrui 59bb8586d9 feat: support OPENCLAW_HOME env variable for custom config path 2026-02-18 02:09:10 +08:00
xmanrui 671eb1bcb1 chore: remove .idea and add to gitignore 2026-02-18 01:57:34 +08:00
xmanrui 52e0bd8a84 docs: add README with project background and usage 2026-02-18 01:57:19 +08:00
xmanrui 31aa3df70c feat: 新增刷新下拉框,支持手动/自动定时刷新 2026-02-18 01:43:00 +08:00
xmanrui 79a3f9eef2 feat: 从 IDENTITY.md 读取机器人自定义名字 2026-02-18 01:32:17 +08:00
xmanrui c0c85b378f feat: OpenClaw Bot Dashboard - 查看机器人配置 2026-02-18 01:25:57 +08:00