Commit Graph

17 Commits

Author SHA1 Message Date
digua
53208de60e feat: 实验室新增基础工具用于调试 2026-04-07 23:43:01 +08:00
digua
346a38da5a feat: 重构 AI 工具分类体系 2026-04-02 23:29:06 +08:00
digua
b6fdc3887e fix: 修复 AI 会话链路与前端 type-check 错误 2026-03-25 22:42:31 +08:00
digua
39b06523d4 fix: 增加默认assistant兜底 2026-03-25 22:10:44 +08:00
digua
9e8f9e8678 feat: 完成助手市场和技能市场 2026-03-16 23:39:49 +08:00
digua
4b10cf21dd feat: 移除旧版提示词系统 2026-03-16 00:27:55 +08:00
digua
db9b67071c feat: 支持@选择成员 2026-03-16 00:27:55 +08:00
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
c36878c58d feat(ai): 实现聊天记录预处理管道
- 新增 preprocessor 模块:数据清洗(XML卡片)、黑名单过滤、智能去噪、连续发言合并、数据脱敏
- 内置多国脱敏规则(中国手机号/身份证、美国SSN、日韩号码等)+ 自定义规则支持
- 工具层统一 wrapWithPreprocessing 包装,自动对 rawMessages 执行预处理+格式化
- 昵称匿名化:用 U{id} 替代真实昵称,跨工具调用一致
- SQL 查询补充 senderId/senderPlatformId
- PreprocessConfig 类型定义(preload + 主进程)
2026-02-28 00:02:08 +08:00
digua
07fffb0112 refactor: data flow inversion, IPC contract fixes, and frontend adaptation
Data flow inversion:
- Add getHistoryForAgent() in conversations.ts — Agent now reads
  history directly from SQLite instead of receiving it from frontend
- Remove historyMessages parameter from agent:runStream IPC chain,
  add maxHistoryRounds for configurable context window
- Frontend (useAIChat.ts) pre-creates conversation before Agent call,
  removes history message collection logic

IPC fixes:
- Restore llm:chat and llm:chatStream handlers using pi-ai's
  completeSimple/streamSimple (P0-1: SQLLab compatibility)
- Send agent:complete with aborted flag in all abort paths to prevent
  hanging Promises in renderer (P0-2)
- Fix createConversation parameter order to match preload/data layer
  contract: (sessionId, title?) instead of (title, sessionId?) (P1)

Preload/frontend:
- Update preload API signatures and type declarations
- Use shared types for TokenUsage and AgentRuntimeStatus
2026-02-26 21:06:27 +08:00
n-WN
284118ca21 feat(agent): add session-based context timeline and runtime status 2026-02-23 19:17:25 +08:00
digua
878507ba8a fix: 修复windows用户自定义筛选时消息量过大导致软件崩溃的BUG 2026-02-03 00:25:09 +08:00
digua
55878256c3 refactor: preload模块化拆分 2026-02-01 12:50:05 +08:00