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
d1a0018d1b
feat: 全量 Controller 接口中文注解补全完成
...
- 39 个 Controller 全部添加 @Tag/@Operation/@Parameter 中文注解(共 278 个 @Operation)
- 分 3 批实施:Batch 1 AI+社区(7)、Batch 2 情绪+日记+互动(11)、Batch 3 其他(13)
- 已有注解的 8 个 Controller 不重复修改
- 编译验证通过:mvn clean install -DskipTests — BUILD SUCCESS
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 23:27: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
c80c7b6bbe
feat: 为 Batch 1 请求 DTO 补全 @Schema 中文描述注解
...
13 个 DTO 共补全 73 个字段的中文描述:
- 认证相关: LoginRequest, RegisterRequest, ResetPasswordRequest, RefreshTokenRequest
- 管理员相关: AdminLoginRequest, AdminCreateRequest, AdminUpdateRequest, AdminPageRequest
- 用户相关: UserCreateRequest, UserUpdateRequest, UserPageRequest, UserProfileUpdateRequest
- 分析相关: AnalyticsQueryRequest
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 21:37:47 +08:00
peanut
f010761871
feat: 为 Admin/Token/AdminAnalytics/User/UserProfile Controller 补全 OpenAPI 注解
...
- AdminController: 4 个 @RequestParam 补全 @Parameter
- TokenController: 调整 @Operation 注解顺序
- AdminAnalyticsController: 新增 @Tag + 6 个 @Operation
- UserController: 新增 @Tag + 7 个 @Operation + 2 个 @Parameter
- UserProfileController: 新增 @Tag + 7 个 @Operation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 21:29:31 +08:00
peanut
58cf073625
feat: 补全 AuthController 缺失的 @Operation 和 @Parameter 注解
...
为 8 个缺少 OpenAPI 注解的方法补全中文描述:
getCurrentUserInfo, logout, refreshToken, validateToken,
getUsernameFromToken, checkAccount, checkEmail, checkPhone
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 21:25:44 +08:00
peanut
f0f66427cd
docs: 添加接口管理改造实现计划
...
- 8 个 Task 覆盖后端注解补全 + 前端测试面板改造
- 每个 Task 包含具体文件路径、代码示例、验证方式
- 附带 Controller 注解完整对照表和验收标准对应关系
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 21:20:16 +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
128e163688
fix: 修复 OpenAPI 方法名大小写解析问题,添加建表 SQL
2026-05-23 18:40:27 +08:00
peanut
89fbc6437a
feat: 添加接口管理功能(后端OpenAPI解析入库+前端列表/详情/测试)
...
- 新增 ApiEndpoint/ApiParam 实体和 Mapper
- 新增 DTO 层(分页查询请求、列表项、详情项、参数项、代理测试请求/响应)
- 新增 ApiEndpointService 含 OpenAPI JSON 解析、\ 展开(最大10层)、分页查询
- 新增 ApiEndpointSyncRunner 启动时异步同步
- 新增 ApiEndpointController 分页/详情/手动同步接口
- 新增 ApiTestProxyController 代理测试接口(SSRF 防护)
- 前端新增接口列表页、详情弹窗(含测试面板、Token 来源选择)
- 前端新增菜单和路由
2026-05-23 18:21:07 +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
d3746fa6c7
feat: AI端点测试动态参数表单、接口工作流行内测试、本地开发环境改为线上域名
...
- 后端新增 /ai/endpoint/test 和 /ai/endpoint/stream 接口,支持直接端点测试
- 前端增加行内测试功能(场景绑定+接口工作流)
- 测试对话框增加动态参数表单和参数定义编辑
- 支持 _meta 格式的默认输入参数处理
- web、web-admin 本地开发环境 API 调用改为线上域名 https://lifescript.happylifeos.com
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 16:10:24 +08:00
peanut
e06b22ad69
feat: AI 测试对话框增加动态参数表单和参数定义编辑
...
- 测试对话框支持从 defaultInputs 解析参数并渲染动态表单
- 支持 _meta 格式的参数定义(label/type/required/value)
- 接口工作流编辑页面增加参数定义区域(增删改)
- 后端 AiTemplateRenderer.mergeInputs 兼容 _meta 格式
- JSON 编辑区折叠为「高级编辑」模式
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 15:01:21 +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
c8f22bb157
feat: 前端增加行内测试功能(场景绑定+接口工作流)
...
- 场景绑定表和接口工作流表操作列增加「测试」按钮
- 新增接口工作流测试对话框(流式+非流式)
- API 层提取 fetchSseStream 共享辅助函数
- 新增 testEndpointRuntime 和 streamEndpointRuntime
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 14:17:41 +08:00
peanut
cccb720060
feat: 后端新增 /ai/endpoint/test 和 /ai/endpoint/stream 接口
...
- AiRuntimeRequest DTO 新增 endpointId 字段
- AiRuntimeService 接口新增 testEndpoint 和 invokeEndpointStream
- AiRuntimeServiceImpl 实现 endpoint 直调链路(绕过场景解析)
- AiRoutingController 新增 /endpoint/test 和 /endpoint/stream
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 14:13:25 +08:00
peanut
e5fc52ff84
docs: 添加 AI 配置行内测试实施计划
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 14:09:11 +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
d77090aa5e
fix: 修复 Dify 非流式测试 user_id 缺失和超时问题
...
- enrichInputs 增加 user_id 下划线字段注入(Dify API 要求下划线格式)
- testAiRuntime 接口超时从 15 秒延长到 60 秒
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-23 13:19:18 +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
8f8434ec14
fix: 小程序 DEV 环境回退地址从 localhost 改为生产域名
...
env.js 中 DEV 配置的 fallback 地址为 localhost:19089,当 Vite 环境变量
未正确注入时(UniApp 小程序编译常见问题),会回退到 localhost 导致
微信开发者工具请求失败。改为指向生产域名 lifescript.happylifeos.com。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 20:07:19 +08:00
peanut
a8b490eea3
fix: Windows 下子进程 python3 命令不存在的问题
...
Windows 上没有 python3 命令,只有 python。使用 sys.executable
作为当前 Python 可执行文件路径,兼容 Windows 和 Linux/Mac。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-22 18:16:56 +08:00
peanut
f61f74a4cd
fix: 部署脚本子进程输出被Python缓冲的问题
...
子进程Python脚本运行时,Python自动缓冲stdout(因为检测到非TTY)。
设置PYTHONUNBUFFERED=1环境变量,确保所有Python子进程实时输出。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 22:19:42 +08:00
peanut
37fbd6671d
fix: 部署脚本输出缓冲导致日志不实时打印的问题
...
io.TextIOWrapper 默认使用块缓冲,子脚本长时间输出时被缓冲不显示。
添加 line_buffering=True 确保每行实时刷新到终端。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 22:18:11 +08:00
peanut
623dd55696
fix: 修复 Windows 下 SSH 命令找不到的问题
...
subprocess.run(cmd, shell=True) 在 Windows 调用 cmd.exe 时找不到 ssh/scp。
改为使用列表参数 + shell=False 直接执行 ssh/scp 二进制,避开
cmd.exe PATH 解析问题。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-21 22:13:42 +08:00
peanut
2869ffadf5
fix: 部署脚本子脚本输出实时可见,解决长时间无反馈问题
...
将 backend/frontend/admin/life-script 子部署命令改为 capture=False,
让 npm build、Maven 编译、scp 上传等长时间操作的输出实时展示,
避免看起来像卡死。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-20 23:27:06 +08:00
peanut
1392daf2ad
feat: 部署脚本打印 API 文档地址
...
部署完成后输出 Knife4j、Swagger UI、v3 api-docs 文档链接。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-20 22:56:10 +08:00
peanut
492c09feeb
fix: Nginx 配置添加 Swagger/Knife4j API 文档代理
...
在 emotion-museum.conf 中新增 /swagger-ui、/v3/api-docs、/doc.html、/webjars
代理规则,防止前端 try_files 拦截导致 API 文档页面无法访问。
修复后文档地址:
- Swagger UI: https://lifescript.happylifeos.com/api/swagger-ui/index.html
- Knife4j: https://lifescript.happylifeos.com/api/doc.html
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-20 22:08:35 +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
83cc32999b
docs: 添加 UI 设计更新文档
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-18 07:58:16 +08:00
peanut
f1b31fc9c0
重构:移除部署脚本中的 SSL 证书操作
...
SSL 证书已配置完成,不再需要从部署脚本中执行 certbot。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-17 19:29:49 +08:00
peanut
06b2e16813
重构:统一 Python 部署脚本并修复编码问题
...
- 新增 deploy.py 统一部署脚本(调用各子目录 .py 脚本)
- 保留 deploy.sh 统一部署脚本(调用各子目录 .sh 脚本)
- 删除旧的 deploy-all.sh / deploy-domain.sh / deploy-to-prod.sh
- 修复 Windows GBK 编码导致的 UnicodeDecodeError/UnicodeEncodeError
- 修复 nginx 远程目录自动创建
- 移除 backend-single/deploy.py 和 web/deploy.py 中的 emoji 字符
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-17 18:09:34 +08:00
peanut
363e17385b
refactor: 合并三个部署脚本为统一的 deploy.sh
...
- 新增 deploy.sh 作为统一部署入口,支持 ssl|backend|frontend|admin|life-script|nginx|verify|all
- deploy-all.sh / deploy-to-prod.sh / deploy-domain.sh 改为向后兼容的 wrapper
- 消除原脚本中后端/前端/管理后台部署逻辑的重复
- 统一使用各子目录的 deploy.sh/deploy.py 脚本,避免重复构建逻辑
- 新增 verify 子命令用于部署后验证
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-17 16:56:57 +08:00
peanut
6b426c2b68
feat: add script tts backend
2026-05-17 16:36:06 +08:00
peanut
1016111d19
feat: add frontend analytics tracking
2026-05-17 10:18:56 +08:00
peanut
3decff526a
feat: add analytics backend
2026-05-17 10:14:08 +08:00
peanut
6542912d93
feat: add script tts player UI
2026-05-17 10:10:01 +08:00
peanut
917b0e5848
docs: add analytics and tts implementation plans
2026-05-17 10:02:46 +08:00
peanut
73c292b7c2
docs: add analytics and tts design spec
2026-05-17 09:54:17 +08:00
peanut
eb83384623
feat: 优化小程序人生事件详情、表单页及人生剧本页面样式
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-12 22:52:26 +08:00
peanut
f62ae880be
feat: 优化小程序人生事件详情页、表单页和记录视图页样式
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-12 00:30:37 +08:00
peanut
6230e2bc8d
chore: 更新 .gitignore,忽略 Playwright 快照、测试截图和 Windows 临时文件
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-11 07:54:44 +08:00
peanut
d40ecdde19
fix: 优化 web-admin 部署脚本,解决 SSH 卡死和旧文件清理问题
...
- 所有 SSH/SCP 命令添加 BatchMode=yes 和超时限制
- 新增 SSH 预检步骤,失败立即退出
- 清理旧文件改为先删后传策略,避免 find -printf 兼容性问题
- 使用 rsync 上传 assets,fallback 到 scp
- 文件/目录权限分别设置为 644/755
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-10 23:49:55 +08:00