YoVinchen
3faf22f1c9
feat(init): implement automatic data import on first launch
Add comprehensive first-launch data import system:
Database layer:
- Add is_empty_for_first_import() to detect empty database
- Add init_default_skill_repos() to initialize 3 default skill repositories
Services layer:
- Implement McpService::import_from_claude/codex/gemini()
to import MCP servers from existing config files
- Implement PromptService::import_from_file_on_first_launch()
to import prompt files (CLAUDE.md, AGENTS.md, GEMINI.md)
Startup flow (lib.rs):
- Check if database is empty on startup
- Import existing configurations if detected:
1. Initialize default skill repositories
2. Import provider configurations from live settings
3. Import MCP servers from config files
4. Import prompt files
- All imports are fault-tolerant and logged
This ensures seamless migration from file-based configs to database.
2025-11-23 16:24:54 +08:00
..
2025-11-22 19:18:35 +08:00
2025-09-14 21:55:41 +08:00
2025-11-23 16:24:54 +08:00
2025-11-19 11:45:07 +08:00
2025-09-23 20:55:30 +08:00
2025-08-23 19:59:29 +08:00
2025-08-27 11:00:53 +08:00
2025-11-22 23:23:56 +08:00
2025-11-22 23:23:56 +08:00
2025-11-19 09:03:18 +08:00
2025-11-22 19:18:35 +08:00