Commit Graph

42 Commits

Author SHA1 Message Date
c83aefabfa fix: 修复代码审查发现的所有 bug
Critical 级别:
- zhipu.ts: 添加 API 响应边界检查
- DictionaryClient.tsx: 添加 entries 数组边界检查
- subtitleParser.ts: 修复 getNearestIndex 逻辑错误

High 级别:
- text-speaker/page.tsx: 修复非空断言和 ref 检查
- folder-repository.ts: 添加 user 关系 null 检查

Medium 级别:
- InFolder.tsx: 修复 throw result.message 为 throw new Error()
- localStorageOperators.ts: 返回类型改为 T | null,添加 schema 验证
- SaveList.tsx: 处理 data 可能为 null 的情况
2026-03-09 19:11:49 +08:00
719aef5a7f fix(dictionary): 修复语义映射和错误日志
- 修复语义映射:强制将输入转换为查询语言的对应词
- 移除拼写自动纠正,避免错误纠正(如 franch→franchise)
- 修复 winston 日志 Error 对象序列化问题
2026-03-09 18:14:14 +08:00
6c811a77db perf(dictionary): 优化 AI 编排性能,4 次 LLM 调用减少到 2 次
- 合并 Stage 1+2+3 为单次 preprocessInput 调用
- 精简 Stage 4 词条生成 prompt
- 删除旧的 stage 文件
- 预期性能提升 60%+ (33s → ~8-13s)
2026-03-09 18:04:12 +08:00
3652e350e6 fix(dictionary): 修复 AI 编排系统的错误处理和超时控制
- 修复 orchestrator 中 throw 字符串的问题,改为 throw LookUpError
- 为 zhipu.ts 添加 30 秒超时控制,防止 LLM 调用卡死
- stage1 添加 isEmpty 和 isNaturalLanguage 字段验证
- stage2 改为降级处理而非直接失败,提升用户体验
- types.ts 添加 canMap 字段
- AGENTS.md 添加禁止擅自运行 pnpm dev 的说明
2026-03-09 17:19:12 +08:00
6ba5ae993a fix: language selector mutual exclusion with preset buttons
- When "Other" is selected, preset language buttons are deselected
- Only one option can be selected at a time
- Refactor dictionary page with zustand store
- Add custom language input option to dictionary
- Fix multiple issues in dictionary bigmodel pipeline
2026-03-08 16:10:41 +08:00
c01c94abd0 refactor: 替换服务端 console.log/error 为 winston logger
- folder-action.ts: 18处 console.log -> log.error
- auth-action.ts: 4处 console.error -> log.error
- dictionary-action/service.ts: 3处 -> log.error
- translator-action/service.ts: 3处 -> log.error
- bigmodel/translator/orchestrator.ts: console -> log.debug/info/error
- bigmodel/tts.ts: console -> log.error/warn
- bigmodel/dictionary/*.ts: console -> log.error/debug/info

客户端代码(browser、page.tsx)保留 console.error
2026-03-08 14:58:43 +08:00
0881846717 feat(logger): 添加 winston 日志系统
- 新增 src/lib/logger/ 模块
- 支持 dev/prod 环境不同输出格式
- createLogger() 创建带上下文的 logger
- 更新 AGENTS.md 添加日志使用约定
2026-03-08 14:52:24 +08:00
ff57f5e0a5 docs: 更新 AGENTS.md 知识库,新增模块/管道/设计系统文档 2026-03-08 11:32:31 +08:00
9d42a45bb1 ... 2026-02-03 20:29:55 +08:00
d5dde77ee9 ... 2026-02-03 20:00:56 +08:00
eaf97b8279 ... 2026-02-02 23:57:01 +08:00
76749549ff ... 2026-02-02 23:32:39 +08:00
ec265be26b 重构 2026-01-14 16:57:35 +08:00
804baa64b2 重构 2026-01-13 23:02:07 +08:00
f1d706e20c ... 2026-01-13 14:46:27 +08:00
c7cdf40f2f change varchar to text 2026-01-08 10:18:05 +08:00
9715844eae 宽松化pairs表约束
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-06 19:23:35 +08:00
504ecd259d 增加翻译缓存 2026-01-06 19:11:21 +08:00
06e90687f1 优化词典生成效果 2026-01-06 16:45:52 +08:00
37e221d8b8 ... 2026-01-06 15:41:11 +08:00
be3eb17490 重构了tts
All checks were successful
continuous-integration/drone/push Build is passing
2026-01-05 17:34:15 +08:00
bd7eca1bd0 before refractor 2026-01-05 16:55:34 +08:00
3bc804c5e8 ... 2026-01-05 14:31:18 +08:00
13e8789321 ... 2026-01-05 11:15:35 +08:00
5f24929116 ...
All checks were successful
continuous-integration/drone/push Build is passing
...

...

...

...
2025-12-29 11:49:53 +08:00
e17437a5ad 修复登录问题
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-12 16:45:50 +08:00
b69e168558 ...
Some checks failed
continuous-integration/drone/push Build is failing
2025-12-11 21:36:45 +08:00
881d9ca921 将next-auth替换为better-auth 2025-12-10 17:54:14 +08:00
db96b86e65 ... 2025-12-05 14:03:08 +08:00
41005a4aac 今天做了好多工作啊
Some checks failed
continuous-integration/drone/push Build is failing
2025-12-04 21:07:54 +08:00
4eb44422d2 ...
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-20 10:23:22 +08:00
0bf3b718b2 ...
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-17 15:59:35 +08:00
22a0cf46fb 增加翻译器自动保存到文件夹功能
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-17 09:00:24 +08:00
98c771cab4 ... 2025-11-16 22:14:11 +08:00
4ed0f43164 调校了ai提示词
All checks were successful
continuous-integration/drone/push Build is passing
2025-11-16 15:42:08 +08:00
0e3d41829c ...
Some checks failed
continuous-integration/drone/push Build is failing
2025-11-16 12:04:09 +08:00
72c6791d93 完成了对记忆功能的升级
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-11-15 22:16:12 +08:00
cf3cb916b7 ... 2025-11-14 15:30:44 +08:00
adcb7920bd 打算使用prisma 2025-11-13 10:30:28 +08:00
94d570557b 用服务器组件写了点/folders
Some checks failed
continuous-integration/drone/push Build is failing
2025-11-11 22:01:32 +08:00
d4f786c990 重构了translator,写了点数据库、后端api路由
Some checks failed
continuous-integration/drone/push Build is failing
2025-11-10 21:42:44 +08:00
b30f9fb0c3 ...
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-11-07 10:43:41 +08:00