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:
@@ -99,7 +99,6 @@ emergency:
|
||||
```yaml
|
||||
framework_exclusions:
|
||||
patterns:
|
||||
- "/SuperClaude/SuperClaude/"
|
||||
- "~/.claude/"
|
||||
- ".claude/"
|
||||
- "SuperClaude/*"
|
||||
|
||||
@@ -151,7 +151,6 @@ use_cases:
|
||||
```yaml
|
||||
framework_exclusions:
|
||||
patterns:
|
||||
- "/SuperClaude/SuperClaude/"
|
||||
- "~/.claude/"
|
||||
- ".claude/"
|
||||
- "SuperClaude/*"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -117,9 +117,10 @@ project_profile:
|
||||
learned_optimizations:
|
||||
file_patterns:
|
||||
high_frequency_files:
|
||||
- "/SuperClaude/Commands/*.md"
|
||||
- "/SuperClaude/Core/*.md"
|
||||
- "/SuperClaude/Modes/*.md"
|
||||
- "commands/*.md"
|
||||
- "Core/*.md"
|
||||
- "Modes/*.md"
|
||||
- "MCP/*.md"
|
||||
frequency_weight: 0.9
|
||||
cache_priority: "high"
|
||||
access_pattern: "frequent_reference"
|
||||
|
||||
Reference in New Issue
Block a user