Replace SQLite with JSON file storage
- Remove database.py (SQLite) from tools/storage/ and dss-mvp1/ - Add json_store.py with full JSON-based storage layer - Update 16 files to use new json_store imports - Storage now mirrors DSS canonical structure: .dss/data/ ├── _system/ (config, cache, activity) ├── projects/ (per-project: tokens, components, styles) └── teams/ (team definitions) - Remove Docker files (not needed) - Update DSS_CORE.json to v1.1.0 Philosophy: "Eat our own food" - storage structure matches DSS design 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "dss-core-v1",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"last_updated": "2025-12-10",
|
||||
"purpose": "Single source of truth for AI agents working with DSS",
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
"layers": {
|
||||
"router": "MCP Server (36 tools), REST API (34 endpoints), CLI",
|
||||
"messaging": "Circuit breaker, Activity log, Event emitter",
|
||||
"workflows": "Figma client, Token ingestion, Storybook generator, Analysis engine, Context compiler, Storage (SQLite)"
|
||||
"workflows": "Figma client, Token ingestion, Storybook generator, Analysis engine, Context compiler, Storage (JSON files)"
|
||||
},
|
||||
"ports": {
|
||||
"rest_api": 3456,
|
||||
@@ -62,8 +62,17 @@
|
||||
"dependencies": {
|
||||
"python": ">=3.10",
|
||||
"node": ">=18",
|
||||
"db": "sqlite3",
|
||||
"services": ["figma-api", "storybook", "nginx"]
|
||||
"services": ["figma-api", "storybook"]
|
||||
},
|
||||
"storage": {
|
||||
"type": "JSON files",
|
||||
"location": ".dss/data/",
|
||||
"structure": {
|
||||
"_system": "config, cache, activity logs",
|
||||
"projects/{id}": "manifest, tokens/, components/, styles/, figma/, metrics/",
|
||||
"teams/{id}": "manifest, members, access"
|
||||
},
|
||||
"philosophy": "Eat our own food - storage mirrors DSS canonical structure"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -98,7 +107,8 @@
|
||||
"rest_api": "tools/api/server.py",
|
||||
"token_parsers": "tools/ingest/",
|
||||
"analysis": "tools/analyze/",
|
||||
"database": ".dss/dss.db",
|
||||
"storage": "tools/storage/json_store.py",
|
||||
"data": ".dss/data/",
|
||||
"schemas": ".dss/schema/",
|
||||
"admin_ui": "admin-ui/",
|
||||
"skills": "dss-claude-plugin/skills/",
|
||||
@@ -201,8 +211,8 @@
|
||||
"debounce_ms": 250
|
||||
},
|
||||
"storage": {
|
||||
"db": ".dss/dss.db",
|
||||
"cache": ".dss/cache"
|
||||
"data": ".dss/data/",
|
||||
"cache": ".dss/data/_system/cache/"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -213,6 +223,7 @@
|
||||
},
|
||||
|
||||
"changelog": [
|
||||
{"version": "1.1.0", "date": "2025-12-10", "notes": "Migrate from SQLite to JSON file storage"},
|
||||
{"version": "1.0.0", "date": "2025-12-10", "notes": "Initial core definition"}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user