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:
10
scripts/dss
10
scripts/dss
@@ -15,8 +15,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
DSS_ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
API_DIR="$DSS_ROOT/tools/api"
|
||||
DSS_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
API_DIR="$DSS_ROOT/apps/api"
|
||||
UI_DIR="$DSS_ROOT/admin-ui"
|
||||
VENV_DIR="$DSS_ROOT/.venv"
|
||||
PID_FILE="$DSS_ROOT/.dss/dss.pid"
|
||||
@@ -68,7 +68,7 @@ check_deps() {
|
||||
# Check if dependencies installed
|
||||
if ! python3 -c "import fastapi" 2>/dev/null; then
|
||||
log "Installing dependencies..."
|
||||
pip install -q -r "$API_DIR/requirements.txt"
|
||||
pip install -q -r "$DSS_ROOT/requirements.txt"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -99,8 +99,8 @@ start_server() {
|
||||
log "Starting DSS server..."
|
||||
fi
|
||||
|
||||
# Export Python path
|
||||
export PYTHONPATH="$DSS_ROOT/tools:$PYTHONPATH"
|
||||
# Export Python path (project root for dss package)
|
||||
export PYTHONPATH="$DSS_ROOT:$PYTHONPATH"
|
||||
export PORT="$PORT"
|
||||
|
||||
if [ "$dev_mode" = "true" ]; then
|
||||
|
||||
Reference in New Issue
Block a user