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>
This commit is contained in:
2025-12-10 12:43:18 -03:00
parent bbd67f88c4
commit 41fba59bf7
197 changed files with 3185 additions and 15500 deletions

28
storybook/package.json Normal file
View File

@@ -0,0 +1,28 @@
{
"name": "dss-mvp1",
"version": "1.0.0",
"description": "Design System Server MVP1 - External tool dependencies",
"private": true,
"scripts": {
"test": "pytest",
"test:unit": "pytest tests/unit -m unit",
"test:integration": "pytest tests/integration -m integration",
"storybook": "storybook dev -p 6006 --no-open",
"build-storybook": "storybook build"
},
"dependencies": {
"style-dictionary": "^4.4.0",
"@babel/parser": "^7.24.7"
},
"devDependencies": {
"@babel/preset-env": "^7.28.5",
"@babel/preset-react": "^7.28.5",
"@chromatic-com/storybook": "^3.2.7",
"@storybook/addon-essentials": "^8.6.14",
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
"@storybook/html": "^8.6.14",
"@storybook/html-webpack5": "^8.6.14",
"shadcn-ui": "^0.8.0",
"storybook": "^8.6.14"
}
}