feat(#37-41): Add domains, ideas, relationships, agents, widgets schema

Schema additions for issues #37-41:

New models:
- Domain (#37): Life domains (work, marriage, homelab, etc.)
- Idea (#38): Brain dumps with pgvector embeddings
- Relationship (#39): Generic entity linking (blocks, depends_on)
- Agent (#40): ClawdBot agent tracking with metrics
- AgentSession (#40): Conversation session tracking
- WidgetDefinition (#41): HUD widget registry
- UserLayout (#41): Per-user dashboard configuration

Updated models:
- Task, Event, Project: Added domainId foreign key
- User, Workspace: Added new relations

New enums:
- IdeaStatus: CAPTURED, PROCESSING, ACTIONABLE, ARCHIVED, DISCARDED
- RelationshipType: BLOCKS, BLOCKED_BY, DEPENDS_ON, etc.
- AgentStatus: IDLE, WORKING, WAITING, ERROR, TERMINATED
- EntityType: Added IDEA, DOMAIN

Migration: 20260129182803_add_domains_ideas_agents_widgets
This commit is contained in:
Jason Woltje
2026-01-29 12:29:21 -06:00
parent a220c2dc0a
commit 973502f26e
308 changed files with 18374 additions and 113 deletions

80
CHANGELOG.md Normal file
View File

@@ -0,0 +1,80 @@
# Changelog
All notable changes to Mosaic Stack will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Complete turnkey Docker Compose setup with all services (#8)
- PostgreSQL 17 with pgvector extension
- Valkey (Redis-compatible cache)
- Authentik OIDC provider (optional profile)
- Ollama AI service (optional profile)
- Multi-stage Dockerfiles for API and Web apps
- Health checks for all services
- Service dependency ordering
- Network isolation (internal and public networks)
- Named volumes for data persistence
- Docker Compose profiles for optional services
- Traefik reverse proxy integration (#36)
- Bundled mode: Self-contained Traefik instance with automatic service discovery
- Upstream mode: Connect to external Traefik instances
- None mode: Direct port exposure without reverse proxy
- Automatic SSL/TLS support (Let's Encrypt or self-signed)
- Traefik dashboard for monitoring routes and services
- Flexible domain configuration via environment variables
- Integration tests for all three deployment modes
- Comprehensive deployment guide with production examples
- Comprehensive environment configuration
- Updated .env.example with all Docker variables
- PostgreSQL performance tuning options
- Valkey memory management settings
- Authentik bootstrap configuration
- Docker deployment documentation
- Complete deployment guide
- Docker-specific configuration guide
- Updated installation instructions
- Troubleshooting section
- Production deployment considerations
- Integration testing for Docker stack
- Service health check tests
- Connectivity validation
- Volume and network verification
- Service dependency tests
- Docker helper scripts
- Smoke test script for deployment validation
- Makefile for common operations
- npm scripts for Docker commands
- docker-compose.override.yml.example template for customization
- Environment templates for Traefik deployment modes
- .env.traefik-bundled.example for bundled mode
- .env.traefik-upstream.example for upstream mode
### Changed
- Updated README.md with Docker deployment instructions
- Enhanced configuration documentation with Docker-specific settings
- Improved installation guide with profile-based service activation
- Updated Makefile with Traefik deployment shortcuts
- Enhanced docker-compose.override.yml.example with Traefik examples
## [0.0.1] - 2026-01-28
### Added
- Initial project structure with pnpm workspaces and TurboRepo
- NestJS API application with BetterAuth integration
- Next.js 16 web application foundation
- PostgreSQL 17 database with pgvector extension
- Prisma ORM with comprehensive schema
- Authentik OIDC authentication integration
- Activity logging system
- Authentication module with OIDC support
- Database seeding scripts
- Comprehensive test suite with 85%+ coverage
- Documentation structure (Bookstack-compatible hierarchy)
- Development workflow and coding standards
[Unreleased]: https://git.mosaicstack.dev/mosaic/stack/compare/v0.0.1...HEAD
[0.0.1]: https://git.mosaicstack.dev/mosaic/stack/releases/tag/v0.0.1