Commit Graph

60 Commits

Author SHA1 Message Date
peanut 808a590b8d fix: nginx 根路径 301 重定向到 /emotion-museum/(修复首页 404) 2026-06-28 23:21:03 +08:00
peanut 5b31845b33 docs:新增本地服务管理规则优化设计文档
- 强制使用 dev-services.py 控制本地服务
- 前端/H5 固定端口从 5178 开始累加
- 优化 restart 命令,避免无意义重启
2026-06-28 10:16:29 +08:00
peanut f7dba6ba60 docs:新增 MessageCard 组件统一设计文档
- 提取 MessageCard.vue 独立组件
- 按 100 字阈值自动切换短消息/完整卡片模式
- story-card 和 result-chat-list 复用同一组件
2026-06-27 23:25:26 +08:00
peanut e014450aa3 docs:新增 AI 消息卡片功能按钮统一设计文档
- 修复 story-card 展开失效 bug
- 为每条 AI 消息添加完整功能按钮组
- 采用方案 A:在现有单文件组件内修复 + 扩展
2026-06-27 20:40:37 +08:00
peanut 591f70a2f6 docs: 批量更新历史文档中的 backend-single 引用为 server 2026-06-27 17:27:27 +08:00
peanut 4b235fa5d3 docs:短信登录开关与通用系统配置设计文档 2026-06-27 10:09:24 +08:00
peanut 1900ba6efc docs:添加标签按钮简化与自定义弹窗设计 2026-06-24 22:31:54 +08:00
peanut 1cdee47f3a docs:小程序编辑资料页性格标签与兴趣爱好库扩展设计 2026-06-24 21:20:41 +08:00
peanut 6b6af757d0 docs:ScriptView 对话结果页 UI 调整设计文档 2026-06-23 22:49:15 +08:00
peanut a00ce0bf95 docs:去除编辑资料页与剧本列表 mock 数据设计文档 2026-06-23 22:14:31 +08:00
peanut 41ed8257f6 docs:小程序编辑资料页昵称必填提示优化设计文档 2026-06-23 21:29:54 +08:00
peanut 49f73679d0 docs:个人信息组件合并设计文档 2026-06-15 10:43:42 +08:00
peanut d710f529fc docs:补充人生轨迹详情页操作区调整设计 2026-06-09 22:51:46 +08:00
peanut 55f06e8caf docs: add user profile real data design spec 2026-06-04 00:39:50 +08:00
peanut a6dcc0843d docs: add mine view dynamic data design spec 2026-06-04 00:34:48 +08:00
peanut 8ded0cc3ad docs: add login route fix design spec 2026-06-04 00:17:55 +08:00
peanut 82c308b40a docs: 修复 spec 评审 Round 2 发现的 1 P0 编译错误 + 3 P2 一致性问题
P0 编译错误:
- MediaType.includesCompatibleWith() 不存在于 Spring Framework
  改为 MediaType.APPLICATION_JSON.isCompatibleWith(contentType)
  (避免实现阶段 mvn 编译直接阻塞)

P2 一致性:
- WechatResponseErrorHandler 类注释第 1 条错误('显式重写返回 true')
  改为正确的 '委托父类 4xx/5xx 判断'
- hasError() 方法内联注释自相矛盾
  改为正确的 '委托父类 DefaultResponseErrorHandler.hasError()'
- GlobalExceptionHandler.handleWechatApiException rawBody 日志未脱敏
  (Interceptor 已脱敏响应 body,但 rawBody 字段在异常对象中再次传递会绕过脱敏)
  新增 desensitizeForLog() 方法复用正则,覆盖 code 字段(authorization code 也需脱敏)
- 移除 @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
  (与现有 BusinessException handler 不一致;HTTP 层统一返回 200,业务错误由 Result.code 表达)
2026-06-03 07:42:59 +08:00
peanut 13f773f3f0 docs: 修复 spec 评审 17 个问题(4 P0 阻塞 + 7 P1 重要 + 6 P2 次要)
P0(阻塞):
- BufferingClientHttpRequestFactory 解决响应体流被消费破坏其他 7 个使用点
- WechatApiException 显式 handler 避免泄露原始错误消息给前端
- LoggingInterceptor 脱敏 session_key/openid/unionid 解决敏感信息泄露
- WechatResponseErrorHandler 显式重写 hasError 避免流消费冲突

P1(重要):
- 包结构统一(LoggingInterceptor → interceptor 包,ErrorHandler → config 包)
- WechatApiException 用 HTTP 风格错误码(400/500/502)替代负数
- app-id/app-secret 一致性:都删除硬编码默认值
- WAF 验证改为后端日志验证 UA(不再用 Postman)
- 列出 7 个其他 RestTemplate 使用点逐一评估

P2(次要):
- body 日志改 DEBUG(生产 INFO 不打印)
- 统一 [WeChatAPI] 日志前缀便于 grep
- rawBody 不放在 DTO(保持纯 DTO)
- 增加回滚方案说明
2026-06-03 07:35:50 +08:00
peanut 5631f22566 docs: 修复微信小程序登录 text/plain 错误设计文档(WAF 拦截 + 凭据硬编码) 2026-06-03 07:28:30 +08:00
deploy-bot 85ba685bba docs: 修复 spec 评审 3 发现的 3 个问题(步骤 3 两段式、domain 结构校验、步骤 4 warning+步骤 5 验证 default) 2026-06-02 21:52:04 +08:00
deploy-bot 78e97f6fee docs: 修复 spec 评审 7 个问题(test 命令、失败短路、变量校验等) 2026-06-02 21:43:57 +08:00
deploy-bot f6b3ba2d8c docs: 添加 nginx 站点启用超时修复设计文档 2026-06-02 21:41:07 +08:00
peanut 2189ed24e6 docs: refine wechat auth design and plan 2026-05-31 23:37:02 +08:00
peanut 9f829acb0e docs: add mini program wechat auth design 2026-05-31 23:22:25 +08:00
peanut 763e1df662 docs: 调用日志列表增加用户字段设计文档 2026-05-25 20:52:05 +08:00
peanut 6e5a379bef docs: 补充 AI 打字机输出、小程序灵感卡片、脚本主页布局等设计文档和计划
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 18:39:26 +08:00
peanut 72faa34954 docs: 修复第四轮 spec review 问题,定稿设计文档
- 删除 LogQueryParams 重复定义
- JSON 高亮改为无依赖正则方案(highlight.js 未安装)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:38:20 +08:00
peanut 03dfdd13fa docs: 修复第三轮 spec review 问题
- Service 返回 PageResult,内部做 Page 转换
- 修正展开行预览截断逻辑(lastIndexOf)
- PageResult 类型移至 types/common.ts
- 明确旧 GET 接口保留策略
- 弹窗增加响应式、ESC/遮罩关闭、错误信息格式
- 补充 keyword SQL 注入安全和大小写说明

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:37:13 +08:00
peanut 90fca4922e docs: 修复第二轮 spec review 问题
- 分页返回类型改为 PageResult
- JSON 高亮改为 highlight.js
- 补充 Service 接口变更、前端类型定义、分页适配
- 修正展开行预览截断逻辑
- 明确旧接口共存策略、下拉数据来源、时间边界
- 补充 Request 存放路径、keyword 空值处理

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:35:26 +08:00
peanut b9cf39f562 docs: 修复 AI 调用日志设计文档评审问题
- 补充 Request 校验注解和 @Schema
- 修正 keyword 搜索的 MyBatis-Plus 嵌套逻辑
- 明确旧接口废弃策略
- 弹窗布局增加 userId/requestId
- 展开行预览截断逻辑优化
- 补充性能量化阈值
- 增加 JsonViewer props 定义
- 明确时间筛选交互和非法 JSON 处理

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:32:50 +08:00
peanut f98617a70a docs: AI 调用日志详情查看功能设计文档
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:30:34 +08:00
peanut 9838e7626b feat: 分析模块、接口管理及其他功能优化
- 后端: WebMvcConfig/拦截器/AnalyticsService/Mapper/测试优化,新增 Knife4jConfig、AnalyticsDictionary、数据库迁移脚本
- 前端: 分析仪表盘 UI 优化、接口管理列表及详情测试面板
- 小程序: analytics 服务优化、request 增强
- 文档: 分析模块中文标签设计文档、品牌重命名设计文档
- 部署: conf 配置优化、deploy.py 脚本更新

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:52:39 +08:00
peanut 88bec9b5df docs: 全量Controller接口中文注解补全设计文档
- 明确31个Controller需要实施(4个部分注解+27个无注解)
- 按业务模块分3批:AI+社区(7)、情绪+日记+互动(11)、其他(13)
- 补充每个Controller关联的完整DTO文件列表
- 定义验收标准和DTO作用范围

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 22:03:01 +08:00
peanut 377821f449 docs: 添加接口管理中文描述与测试面板改造设计文档
- 设计后端 Controller/DTO 注解补全方案(4 个批次)
- 设计前端测试面板表单化改造(参数表单 + JSON 预填充)
- 定义操作列"测试"按钮和 defaultTab 交互
- 补充边缘情况处理和验收标准

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 21:17:03 +08:00
peanut a4c99b9b0b feat: 接口管理功能 - 分页查询、详情查看、测试代理
- 后端:OpenAPI spec 解析同步、接口分页查询、代理测试(SSRF防护)
- 前端:接口列表页、详情对话框(详情/测试双标签)、Token来源选择
- 服务启动自动同步接口数据,支持手动触发同步
- 测试代理路径修复:自动添加 /api 前缀以匹配后端 SSRF 校验

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 19:19:08 +08:00
peanut bdb4fd8c8e feat: AI测试输出渲染Markdown/流式响应、Coze/Dify适配器优化
- 新增 MarkdownPreview 组件,支持 AI 测试输出 Markdown 渲染
- Coze 适配器优化:支持流式响应、工作流接口调用、SSE事件处理
- Dify 适配器优化:支持停止接口、流式聊天、SSE事件解析
- web-admin 添加 markdown-it 和 highlight.js 依赖
- AI 配置列表页面优化测试对话框输出显示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 16:24:07 +08:00
peanut 5888816646 docs: 添加 AI 测试参数动态表单设计文档
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 14:56:37 +08:00
peanut fe4a39f0d4 docs: 修复 AI 配置行内测试设计文档 - 补充 DTO/类型定义/UI 细节
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 14:00:00 +08:00
peanut 49ba487e56 docs: 修复 AI 配置行内测试设计文档 - 补充 DTO/类型定义/UI 细节
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 13:36:57 +08:00
peanut a0fd6692b3 docs: 添加 AI 配置行内测试功能设计文档
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 13:33:26 +08:00
peanut 89fc42819d feat: AI 场景路由、ASR 服务及前后端全链路同步
- 新增 AI 场景路由控制器和管理接口
- 新增 ASR 语音识别服务及前后端集成
- 同步 AI Runtime 客户端到 Web/小程序/Life-Script
- 完善 AI 配置测试修复和管理后台路由配置
- 新增数据库迁移脚本

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 13:25:21 +08:00
peanut 0968f9418f docs: tighten AI stream lifecycle requirements 2026-05-22 22:51:17 +08:00
peanut f12a49d4ae docs: require streaming AI runtime outputs 2026-05-22 22:39:06 +08:00
peanut dfbf68989b docs: refine AI scene routing spec 2026-05-22 22:33:14 +08:00
peanut 8a4486801f docs: add AI scene routing design spec 2026-05-22 22:28:29 +08:00
peanut ee5a6aba5d feat: 小程序脚本首页重构 + 社交数据导入 + TTS 播放优化
- 后端:新增社交数据导入/审批/洞察生成 API(SocialContent/SocialInsight)
- 后端:优化脚本上下文服务,TTS 服务增强
- 小程序:重构脚本首页布局,新增社交导入页面
- 小程序:新增 useTtsPlayer composable,移除旧 ScriptAudioPlayer 组件
- 小程序:新增社交导入服务,优化请求服务
- SQL:新增社交数据导入建表脚本
- 文档:补充设计文档和实施计划

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 07:18:02 +08:00
peanut 73c292b7c2 docs: add analytics and tts design spec 2026-05-17 09:54:17 +08:00
peanut f0074321c4 docs: add mini program auth restore design 2026-05-08 21:42:38 +08:00
peanut 52071d0d77 docs: add mini program prototype redesign spec 2026-05-01 23:35:23 +08:00
peanut 646ab3d300 feat: 更新服务管理脚本优化设计文档
添加 10 项优化修复的设计说明:中文编码修复、动态可执行文件查找、
依赖等待逻辑修复、restart 支持 all、clean 增强、PID 严格验证、
进度条稳定、mini-program 补充配置。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 12:47:54 +08:00