feat(admin): Manus-style 管理台 — 文件树 + 活动时间线 + SSE 实时推送
新增: - src/events.ts: 工具调用事件总线(EventEmitter + 500 条 ring buffer) - src/admin.ts: /admin/api/* 路由(users/files/file/events/start/stop) - src/admin-ui.ts: 两张 HTML 页面 - Dashboard: 所有用户卡片网格,状态彩色徽章 - 单用户视图: 三栏(文件树|预览|时间线),SSE 实时 - src/index.ts: /admin/ 静态页 + 工具调用 emitEvent 埋点 部署: - nginx: sandbox.milejoy.com → 127.0.0.1:8700(含 SSE 长连接 off buffer) - certbot --expand 把 sandbox.milejoy.com 加到现有证书 访问: https://sandbox.milejoy.com/admin/?token=<ADMIN_TOKEN> ADMIN_TOKEN 在 /etc/lobe-sandbox/orchestrator.env Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -286,6 +286,13 @@
|
||||
"message": "auto-save 2026-04-19 22:29 (~1)",
|
||||
"hash": "119afa3",
|
||||
"files_changed": 1
|
||||
},
|
||||
{
|
||||
"ts": "2026-04-19T22:34:43+08:00",
|
||||
"type": "commit",
|
||||
"message": "auto-save 2026-04-19 22:34 (+2, ~2)",
|
||||
"hash": "cca158d",
|
||||
"files_changed": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user