feat: 工作台外壳重构 + /home 改为智能助手 + 产品更名

前端
- MainLayout: 移除顶部标题栏,Workspace Tabs 提至最顶层,通知铃随行
- 账号入口由右上角移至左下角侧边栏底部(下拉:我的资料 / 退出登录),
  折叠态仅保留头像
- /home 现渲染智能助手并作为其规范 URL;/tools/smart-assistant 保留为重定向别名
- 工作台总览移至 /overview,侧边栏入口同步调整
- workbench store: 新增 tab 归一化,迁移已持久化的旧标签与旧路由
- 智能助手欢迎语改为「我 Bosheng 数字员工,我帮你」
- 最佳实践卡片: 4 张减为 3 张,图片块高度减半(aspect-ratio 4/3 → 8/3)

产品更名
- 后端 system prompt、CLAUDE.md、PROJECT_STATE.md 及设计文档:
  博昇内部培训平台 → EAI 数字员工平台

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
eaiadmin
2026-09-14 08:19:42 +08:00
co-authored by Claude Code
parent 5c0870af97
commit 95fcf161b0
21 changed files with 999 additions and 1176 deletions
@@ -197,7 +197,7 @@ func ChatMessage(c *gin.Context) {
func buildSystemPrompt(ctx map[string]any, knowledge []string) string {
ctxJSON, _ := json.Marshal(ctx)
kc := strings.Join(knowledge, "\n\n")
return fmt.Sprintf(`你是博昇内部培训平台的 AI 助教 PathCoach。
return fmt.Sprintf(`你是 EAI 数字员工平台的 AI 助手。
职责:
1. 解答公司介绍、产品知识、佣金规则、销售话术、业务规则相关问题
@@ -17,7 +17,7 @@ func gradeEssay(userID uint, stem, rubric, userAnswer string) (float64, string,
if err != nil {
return 0, "", err
}
systemPrompt := "你是培训平台阅卷老师。请严格依据「评分标准」对学员的简答题答案打分。" +
systemPrompt := "你是数字员工平台的阅卷助手。请严格依据「评分标准」对学员的简答题答案打分。" +
"只输出一个 JSON 对象,格式:{\"score\": <0到1之间的得分率数字>, \"comment\": \"<一句中文评语>\"}。" +
"不要输出任何其他内容。"
userPrompt := "题目:" + stem + "\n评分标准:" + rubric + "\n学员答案:" + userAnswer
@@ -118,7 +118,7 @@ func retrieveReportKnowledge(topic string, spaceKey string) string {
// promptReportWithSections 使用用户指定章节生成报告
func promptReportWithSections(req ReportGenRequest, knowledge string) []reportChapter {
sectionsStr := strings.Join(req.Sections, "、")
systemPrompt := `你是博昇内部培训平台的报告生成引擎。你的任务是输出一份结构化的正式报告,语言为中文。`
systemPrompt := `你是 EAI 数字员工平台的报告生成引擎。你的任务是输出一份结构化的正式报告,语言为中文。`
userPrompt := fmt.Sprintf(`请围绕以下主题撰写一份正式报告。
主题:%s
@@ -154,7 +154,7 @@ func promptReportWithSections(req ReportGenRequest, knowledge string) []reportCh
// promptReportAutoChapters 让 LLM 自动规划报告章节
func promptReportAutoChapters(req ReportGenRequest, knowledge string) []reportChapter {
systemPrompt := `你是博昇内部培训平台的报告生成引擎。先规划报告章节,再撰写内容。输出必须严格为 JSON 数组,不要输出其他内容。`
systemPrompt := `你是 EAI 数字员工平台的报告生成引擎。先规划报告章节,再撰写内容。输出必须严格为 JSON 数组,不要输出其他内容。`
userPrompt := fmt.Sprintf(`请围绕以下主题撰写一份正式报告。
主题:%s