feat: add config profiles data model and migrations

- Add ConfigProfile model with user ownership, name, description
- Add ConfigInclude model for ordered profile self-references
- Add ConfigMount model for mount/file definitions
- Add selected_profile_id to ToolInstance for per-instance profile selection
- Add default profile properties to UserConfig JSONB config
- Create Alembic migration 0013 for new tables and columns
- Register new models in models/__init__.py
- Mark config_folders.is_active as deprecated
- Add migration metadata test

Quality gates: syntax check passed (all files parse successfully)
OpenSpec: add-config-profiles task 1.1
This commit is contained in:
2026-05-24 12:54:45 +00:00
parent d35037df01
commit 22c035984e
15 changed files with 404 additions and 4 deletions
@@ -5,11 +5,11 @@
- [x] 1.3 Create ConfigMount model for mount/file definitions
- [x] 1.4 Add selected_profile_id to ToolInstance model
- [x] 1.5 Add default profile fields to UserConfig model
- [ ] 1.6 Create Alembic migration for new tables and columns
- [x] 1.6 Create Alembic migration for new tables and columns
- [x] 1.7 Register new models in models/__init__.py
- [ ] 1.8 Add migration metadata and test
- [x] 1.8 Add migration metadata and test
## 2. Legacy Deprecation
- [ ] 2.1 Mark config_folders.is_active as deprecated in model
- [x] 2.1 Mark config_folders.is_active as deprecated in model
- [ ] 2.2 Remove auto-mounting logic from tool launch (separate change)