Major cleanup: Remove redundant code, consolidate knowledge base

- Delete redundant directories: demo/, server/, orchestrator/, team-portal/, servers/
- Remove all human-readable documentation (docs/, .dss/*.md, admin-ui/*.md)
- Consolidate 4 knowledge JSON files into single DSS_CORE.json
- Clear browser logs (7.5MB), backups, temp files
- Remove obsolete configs (.cursorrules, .dss-boundaries.yaml, .ds-swarm/)
- Reduce project from 20MB to ~8MB

Kept: tools/, admin-ui/, cli/, dss-claude-plugin/, .dss/schema/

🤖 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 07:34:52 -03:00
parent 3e4295457d
commit 7a3044bccc
470 changed files with 233 additions and 252780 deletions

View File

@@ -1,64 +0,0 @@
# Git Hooks Configuration
This directory contains git hooks that protect the project's critical configuration and enforce code quality standards.
## Setup
To enable these hooks in your local git configuration, run:
```bash
git config core.hooksPath .githooks
```
Or set it globally:
```bash
git config --global core.hooksPath .githooks
```
## Protected Files
The `pre-commit` hook enforces immutability on these critical files:
- `.knowledge/dss-principles.json` - Core DSS principles
- `.knowledge/dss-architecture.json` - Architecture documentation
- `.clauderc` - Claude Code configuration
- `PROJECT_CONFIG.md` - Production deployment configuration
### Modifying Protected Files
If you need to modify a protected file, you must explicitly allow the change:
```bash
ALLOW_CORE_CHANGES=true git commit -m "your message"
```
## Quality Checks
The pre-commit hook also runs DSS code quality verification via `scripts/verify-quality.sh`, checking for:
- Inline event handlers (must use event delegation)
- Excessive inline styles (extract to Shadow DOM)
- Accessibility compliance
- Console statement limits
- Potential hardcoded secrets
- File size limits
To bypass quality checks (not recommended):
```bash
git commit --no-verify
```
## Hook Details
### pre-commit
- **Purpose:** Guard immutable files and enforce code quality
- **Trigger:** Before every commit
- **Exit Code:** 1 if checks fail (blocks commit), 0 if pass
- **Output:** Detailed report of any violations
---
**Last Updated:** 2025-12-08