mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
feat: Enhanced Framework-Hooks with comprehensive testing and validation
- Update compression engine with improved YAML handling and error recovery - Add comprehensive test suite with 10 test files covering edge cases - Enhance hook system with better MCP intelligence and pattern detection - Improve documentation with detailed configuration guides - Add learned patterns for project optimization - Strengthen notification and session lifecycle hooks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,6 @@ def classify_content(self, content: str, metadata: Dict[str, Any]) -> ContentTyp
|
||||
|
||||
# Framework content - complete exclusion
|
||||
framework_patterns = [
|
||||
'/SuperClaude/SuperClaude/',
|
||||
'~/.claude/',
|
||||
'.claude/',
|
||||
'SuperClaude/',
|
||||
@@ -642,7 +641,6 @@ compression:
|
||||
```yaml
|
||||
content_classification:
|
||||
framework_exclusions:
|
||||
- "/SuperClaude/"
|
||||
- "~/.claude/"
|
||||
- "CLAUDE.md"
|
||||
- "FLAGS.md"
|
||||
@@ -664,9 +662,9 @@ content_classification:
|
||||
### Framework Content Protection
|
||||
```python
|
||||
result = compression_engine.compress_content(
|
||||
content="Content from /SuperClaude/Core/CLAUDE.md with framework patterns",
|
||||
content="Content from ~/.claude/CLAUDE.md with framework patterns",
|
||||
context={'resource_usage_percent': 90},
|
||||
metadata={'file_path': '/SuperClaude/Core/CLAUDE.md'}
|
||||
metadata={'file_path': '~/.claude/CLAUDE.md'}
|
||||
)
|
||||
|
||||
print(f"Compression ratio: {result.compression_ratio}") # 0.0 (no compression)
|
||||
|
||||
Reference in New Issue
Block a user