peanut
436145a5c8
feat: 调用日志列表新增调用用户列
2026-05-25 22:38:54 +08:00
peanut
d2e449ec4c
feat: 日志保存时写入 userName 字段
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-25 22:34:29 +08:00
peanut
d818367a32
feat: 调用日志实体新增 userName 字段及数据库迁移脚本
2026-05-25 22:29:50 +08:00
peanut
e3e1903d93
docs: 调用日志列表增加用户字段实现计划
2026-05-25 21:45:43 +08:00
peanut
763e1df662
docs: 调用日志列表增加用户字段设计文档
2026-05-25 20:52:05 +08:00
peanut
812e126b2b
refactor: 移除爽文页面我的剧本按钮和人生素材画像容器
...
移除我的剧本按钮(模板、样式、方法),用户可通过底部我的Tab查看剧本
移除人生素材画像容器组件(模板、样式、JS逻辑)
保留导入社交数据按钮及完整流程
useSocialInsights 改为默认 true,后端自动判断是否有可用画像
清理未使用的 socialImport 导入、confirmedInsights、loadConfirmedInsights 等
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 21:28:29 +08:00
peanut
ba196486c0
chore: 将后端运行时日志 backend.err 加入 gitignore
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 18:42:10 +08:00
peanut
84af570841
test: AI 流式服务单元测试
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 18:39:31 +08:00
peanut
fc14051073
feat: 小程序菜单按钮安全区域适配工具
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 18:39:28 +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
886f04046b
feat: AI 流式服务完善、ProviderHttp 优化及 web-admin API 调整
...
- AiRuntimeServiceImpl: 流式输出逻辑优化,支持多 Provider 适配
- ProviderHttpSupport: HTTP 请求处理优化
- AiRoutingController: 新增日志查询接口
- AiCallLogService: 分页查询支持
- AiRuntimeRequest: 补充用户字段
- web-admin aiconfig API: 新增分页查询接口
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 18:35:56 +08:00
peanut
64476eee6d
feat: AI 打字机流式输出、小程序脚本主页布局及灵感卡片优化
...
- life-script: 新增 aiRuntime 打字机流式服务,PathView/ScriptView/TimelineView 接入打字机效果
- mini-program: ScriptView 重构为打字机输出 + 卡片式灵感列表,主页布局优化
- web: aiRuntime 服务新增流式输出支持
- chat store: 消息状态管理和打字机流式渲染支持
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 18:35:33 +08:00
peanut
c900f56174
feat: AI 调用日志详情查看功能完成
...
- 后端编译验证通过 (BUILD SUCCESS)
- 前端管理后台服务正常启动 (localhost:5174)
- AI配置管理 → 调用日志 Tab 验证通过:
- 筛选栏显示正常(状态、场景、服务商、接口、时间、关键词搜索)
- 分页数据正确加载(33条记录,20条/页)
- 表格行展开功能正常(入参/出参预览、错误信息)
- 详情弹窗显示完整(基本信息、入参JSON、出参内容、错误信息)
- JSON 格式化高亮显示正常
- 复制按钮功能正常
- 分页切换正常
- 浏览器 Console 无报错
2026-05-24 12:13:35 +08:00
peanut
e3edc319e8
feat: 调用日志 Tab 增加筛选栏、展开行、分页和详情弹窗
2026-05-24 11:56:33 +08:00
peanut
b4af9fc99b
feat: AI 调用日志 Service 分页查询和 Controller POST 接口
2026-05-24 11:49:15 +08:00
peanut
3888a40a5c
feat: 新增 JsonViewer 和 AiCallLogDetailDialog 组件
2026-05-24 11:48:07 +08:00
peanut
902068387b
feat: 添加 AI 调用日志查询参数类型和分页查询接口
2026-05-24 11:45:49 +08:00
peanut
b39a9b8b4b
feat: 新增 AI 调用日志查询请求 DTO
2026-05-24 11:45:41 +08:00
peanut
56535dbcb0
docs: AI 调用日志详情查看功能实施计划
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-24 11:43:40 +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
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