Files
dss/storybook/config.yaml
Bruno Sarlo 41fba59bf7 Major refactor: Consolidate DSS into unified package structure
- Create new dss/ Python package at project root
- Move MCP core from tools/dss_mcp/ to dss/mcp/
- Move storage layer from tools/storage/ to dss/storage/
- Move domain logic from dss-mvp1/dss/ to dss/
- Move services from tools/api/services/ to dss/services/
- Move API server to apps/api/
- Move CLI to apps/cli/
- Move Storybook assets to storybook/
- Create unified dss/__init__.py with comprehensive exports
- Merge configuration into dss/settings.py (Pydantic-based)
- Create pyproject.toml for proper package management
- Update startup scripts for new paths
- Remove old tools/ and dss-mvp1/ directories

Architecture changes:
- DSS is now MCP-first with 40+ tools for Claude Code
- Clean imports: from dss import Projects, Components, FigmaToolSuite
- No more sys.path.insert() hacking
- apps/ contains thin application wrappers (API, CLI)
- Single unified Python package for all DSS logic

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 12:46:43 -03:00

177 lines
4.7 KiB
YAML

# DSS Configuration for dss.overbits.luz.uy
# Production configuration for Overbits Design System
# ==========================================
# Project Information
# ==========================================
project:
name: "Overbits Design System"
version: "1.0.0"
description: "Design system for Overbits projects"
url: "https://dss.overbits.luz.uy"
# ==========================================
# API Configuration
# ==========================================
api:
# Anthropic Claude API
anthropic:
api_key: "${ANTHROPIC_API_KEY}" # Set in .env file
model: "claude-sonnet-4-5-20250929"
max_tokens: 4096
# Figma API
figma:
token: "${FIGMA_TOKEN}" # TODO: Add your Figma token to .env
file_key: "" # TODO: Add your Figma file key
use_cache: true
cache_ttl_seconds: 300
# OpenAI (Optional - for comparison testing)
openai:
api_key: ""
model: "gpt-4"
# ==========================================
# Server Configuration
# ==========================================
server:
host: "0.0.0.0" # Allow external connections
port: 3456
mcp_port: 3457
reload: false # Production mode
cors_origins:
- "https://dss.overbits.luz.uy"
- "https://overbits.luz.uy"
- "http://localhost:3000" # Development
# ==========================================
# Database Configuration
# ==========================================
database:
path: "/home/overbits/.dss/dss.db"
backup_path: "/home/overbits/.dss/backups/"
auto_backup: true
# ==========================================
# Theme Configuration
# ==========================================
themes:
default_light: "DSS Light"
default_dark: "DSS Dark"
custom_themes_dir: "/home/overbits/dss/dss-mvp1/themes/"
# ==========================================
# Style Dictionary Configuration
# ==========================================
style_dictionary:
output_formats:
- "css"
- "scss"
- "json"
build_path: "/home/overbits/dss/dss-mvp1/dist/tokens/"
platforms:
- name: "css"
transformGroup: "css"
files:
- destination: "variables.css"
format: "css/variables"
- name: "scss"
transformGroup: "scss"
files:
- destination: "variables.scss"
format: "scss/variables"
- name: "json"
transformGroup: "js"
files:
- destination: "tokens.json"
format: "json/nested"
# ==========================================
# Component Configuration
# ==========================================
components:
# shadcn/ui
shadcn:
enabled: true
components_dir: "/home/overbits/dss/dss-mvp1/components/"
registry_url: "https://ui.shadcn.com/registry"
# HeroUI
heroui:
enabled: true
theme_mapping: "heroui_to_shadcn"
import_url: "https://heroui.com"
# ==========================================
# Testing Configuration
# ==========================================
testing:
use_mock_apis: false # Use real APIs in production tests
test_db_path: "/home/overbits/.dss/test.db"
coverage_threshold: 80
markers:
- "unit"
- "integration"
- "e2e"
- "slow"
# ==========================================
# Logging Configuration
# ==========================================
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
file: "/home/overbits/.dss/logs/dss.log"
max_bytes: 10485760 # 10MB
backup_count: 5
# ==========================================
# Cache Configuration
# ==========================================
cache:
enabled: true
dir: "/home/overbits/.dss/cache/"
ttl_seconds: 3600
max_size_mb: 100
# ==========================================
# Security Configuration
# ==========================================
security:
jwt_secret: "${JWT_SECRET}" # Set in .env: openssl rand -hex 32
jwt_algorithm: "HS256"
access_token_expire_minutes: 30
allowed_origins:
- "https://dss.overbits.luz.uy"
- "https://overbits.luz.uy"
- "http://localhost:3000"
# ==========================================
# Feature Flags
# ==========================================
features:
figma_sync: true
ai_chat: true
component_library: true
theme_switching: true
analytics: true # Enable for production
# ==========================================
# Deployment Configuration
# ==========================================
deployment:
environment: "production"
domain: "dss.overbits.luz.uy"
ssl_enabled: true
nginx_config: "/etc/nginx/sites-available/dss.overbits.luz.uy"
# ==========================================
# Monitoring & Analytics
# ==========================================
monitoring:
enabled: true
sentry_dsn: "" # Optional: Add Sentry DSN for error tracking
log_errors: true
track_usage: true