Commit Graph

32 Commits

Author SHA1 Message Date
9e4e94c75e Add log system with three log types (agent/system/chat)
Implemented a complete log system for tracking:
- Agent logs:智能体调用
- System logs: 系统运行
- Chat logs: 问答对话

Backend:
- Log model with type, level, user_id, message, source, duration_ms
- LogService with methods for logging and querying
- API endpoints: GET /api/logs, GET /api/logs/stats, GET /api/logs/recent

Frontend:
- LogView.vue with filters, stats, pagination, auto-refresh
- log.ts API client with TypeScript interfaces
- Added "运行日志" nav item to sidebar
2026-03-21 11:58:51 +08:00
30568846b3 fix(settings): use deep copy to fix SQLAlchemy change detection
SQLAlchemy wasn't detecting changes when we modified the dict in place
and re-assigned the same object reference. Using deep copy ensures
the ORM sees the update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:53:20 +08:00
e9ce0235fd fix(settings): auto-save after deleting a model
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:49:40 +08:00
977ef34aad fix(settings): add stop modifier to delete button click
Prevent click event from bubbling to row toggle handler

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:48:37 +08:00
2114880e47 fix: add 4-column grid for conversations and ensure chart visibility 2026-03-21 11:46:29 +08:00
c7ce916cca fix(settings): sync enabled state after test passes
When test passes, props.model.enabled is updated but editingModel wasn't
synced, causing save button to remain disabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:45:09 +08:00
9606d4d9e1 feat: rename data metrics to runtime status with more charts 2026-03-21 11:44:38 +08:00
b284f395fd feat: rename Skill 市场 to 技能中心 with Star icon 2026-03-21 11:42:49 +08:00
edee597d5f fix(settings): add name field editing in LLMTableRow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:41:23 +08:00
c85e3e6988 chore(settings): remove dead code from SettingsView.vue
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:37:29 +08:00
e7c1a57287 fix(settings): wire up saveModel to persist changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:35:45 +08:00
7bbaf67591 feat(settings): refactor LLM config to table inline-edit UI
- Remove old card-based model list UI
- Add LLM config state management (expandedRow, editingSnapshot)
- Implement addModel/removeModel with embedding/rerank constraints
- Implement updateModel, testModel, saveModel, toggleRow, cancelEdit
- Add showRequiredWarning computed property
- Rewrite template with 4 LLM type sections using LLMTableRow
- Add styles for llm-type-section, warning-bar, etc.
- Update loadSettings to initialize with empty arrays

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:33:42 +08:00
99c30d9534 feat: add SkillView page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:30:31 +08:00
9824bc2d6c feat: add SkillRegistry for agent integration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:29:57 +08:00
fad41ce94a fix(settings): use local state in LLMTableRow to avoid props mutation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:29:49 +08:00
6966ced359 feat: add Skill route and navigation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:29:22 +08:00
0f63ac82f4 feat: add skill API client
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:29:15 +08:00
c552f71e28 feat: add Skill API endpoints
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:28:20 +08:00
d3749817b0 feat(settings): create LLMTableRow component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:27:50 +08:00
cdde7e3bc9 feat: add SkillService
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:27:47 +08:00
672adf9287 feat: add Skill Pydantic schemas
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:27:36 +08:00
0e6828722c feat: add Skill model
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:26:25 +08:00
79f25a3a74 docs: update LLM config implementation plan
Fix delete constraint for embedding/rerank, add max 1 constraint

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:25:32 +08:00
fcd13d8d9f Add skill system implementation plan 2026-03-21 11:22:29 +08:00
089975badb docs: add LLM config table UI design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 11:21:17 +08:00
4ab2c101cb Add skill system design document 2026-03-21 11:19:46 +08:00
3a7f4174ab Add project documentation and specs 2026-03-21 10:13:45 +08:00
e76f0828b9 Add project startup scripts 2026-03-21 10:13:43 +08:00
5af586610c Add Docker Compose configuration 2026-03-21 10:13:40 +08:00
b40a6ebd3a Add Vue frontend application 2026-03-21 10:13:35 +08:00
6ffa07adde Add FastAPI backend with agent system 2026-03-21 10:13:29 +08:00
ed6bab59fe Add project root files and gitignore 2026-03-21 10:13:26 +08:00