Implement dynamic file discovery for components (PR #133)

Replace hardcoded file arrays with dynamic discovery system:
- CoreComponent: Auto-discovers framework .md files in Core directory
- CommandsComponent: Auto-discovers command .md files in Commands directory
- Eliminates manual maintenance of file lists
- Maintains backward compatibility and error handling
- Adds comprehensive logging and validation

Key changes:
- Added _discover_framework_files() and _discover_command_files() methods
- Added shared _discover_files_in_directory() utility
- Replaced hardcoded arrays with dynamic discovery calls
- Includes filtering, sorting, and error handling
- Validates 9 framework files and 16 command files correctly
- Clean up documentation formatting

Resolves maintenance burden described in PR #133 while preserving
all existing functionality and security validation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NomenAK
2025-07-15 11:16:58 +02:00
parent 5279cdd4e0
commit a0def375e1
4 changed files with 128 additions and 42 deletions

View File

@@ -1,11 +1,5 @@
# COMMANDS.md - SuperClaude Command Execution Framework
---
framework: "SuperClaude v3.0"
execution-engine: "Claude Code"
wave-compatibility: "Full"
---
Command execution framework for Claude Code SuperClaude integration.
## Command System Architecture

View File

@@ -531,8 +531,3 @@ orchestrator_config:
### Custom Routing Rules
Users can add custom routing patterns via YAML configuration files.
---