Commit Graph

7 Commits

Author SHA1 Message Date
digua 7a1a9fc2b1 feat: 聊天对话支持使用技能 2026-03-16 00:27:55 +08:00
digua e7f2ee7db7 style: format and lint codebase 2026-03-16 00:27:55 +08:00
digua 6edb3e3b95 feat: 优化助手逻辑 2026-03-10 21:35:53 +08:00
digua 60be78b767 feat: 完善助手功能,新增分析tools 2026-03-10 20:42:25 +08:00
digua f36623d72e feat: 完成助手模式初版 2026-03-02 01:19:54 +08:00
digua 9ce333afe3 feat(ai): 增加 DEBUG 模式与 AI 日志增强
- 设置>关于 新增 DEBUG 模式开关,开启后日志记录完整消息不截断
- aiLogger 支持 debugMode 控制截断行为
- Agent 执行前在 DEBUG 模式下记录完整 System Prompt 和消息历史
- INFO 日志增强:记录模型/Provider/API地址、上下文配置、预处理开关
- 工具调用日志升级:记录完整参数(tool_start)
- 预处理管道统计提升至 INFO 级别
2026-02-28 00:02:12 +08:00
digua e6849af698 refactor(agent): split monolithic Agent into modular architecture
- Delete monolithic agent.ts (−1464 lines)
- Add agent/index.ts: Agent orchestrator class with runAgent/runAgentStream
- Add agent/types.ts: AgentConfig, AgentStreamChunk, AgentResult, PromptConfig
- Add agent/prompt-builder.ts: system prompt construction with i18n
- Add agent/content-parser.ts: thinking tag and tool call tag parsing
- Add agent/event-handler.ts: runtime state, event mapping, token estimation
2026-02-26 21:05:50 +08:00