Move config directory to setup/config and remove unused configurations

- Move config/ to setup/config/ to consolidate installation files
- Delete 3 unused hooks configuration files:
  - hooks-config.json (367 lines of unimplemented hooks config)
  - claude-code-settings-template.json (unused Claude Code hooks template)
  - superclaude-config-template.json (unused SuperClaude config template)
- Keep active configuration files:
  - features.json (component registry)
  - requirements.json (system requirements)
- Update all references to use new CONFIG_DIR path:
  - setup/__init__.py: CONFIG_DIR = SETUP_DIR / "config"
  - setup/operations/install.py: Use CONFIG_DIR import
  - setup/core/validator.py: Use CONFIG_DIR import
- Verify installation functionality works correctly

This consolidates all setup-related configuration in one location
and removes unused configuration cruft from the framework.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NomenAK
2025-08-14 21:12:48 +02:00
parent 2e0f2cff6c
commit 41d1ef4de4
9 changed files with 6 additions and 599 deletions

View File

@@ -11,7 +11,7 @@ from pathlib import Path
# Core paths
SETUP_DIR = Path(__file__).parent
PROJECT_ROOT = SETUP_DIR.parent
CONFIG_DIR = PROJECT_ROOT / "config"
CONFIG_DIR = SETUP_DIR / "config"
# Installation target
DEFAULT_INSTALL_DIR = Path.home() / ".claude"

0
setup/config/__init__.py Normal file
View File

View File

@@ -0,0 +1,58 @@
{
"components": {
"core": {
"name": "core",
"version": "3.0.0",
"description": "SuperClaude framework documentation and core files",
"category": "core",
"dependencies": [],
"enabled": true,
"required_tools": []
},
"commands": {
"name": "commands",
"version": "3.0.0",
"description": "SuperClaude slash command definitions",
"category": "commands",
"dependencies": ["core"],
"enabled": true,
"required_tools": []
},
"mcp": {
"name": "mcp",
"version": "4.0.0",
"description": "MCP server configuration management via .claude.json",
"category": "integration",
"dependencies": ["core"],
"enabled": true,
"required_tools": []
},
"modes": {
"name": "modes",
"version": "4.0.0",
"description": "SuperClaude behavioral modes (Brainstorming, Introspection, Task Management, Token Efficiency)",
"category": "modes",
"dependencies": ["core"],
"enabled": true,
"required_tools": []
},
"mcp_docs": {
"name": "mcp_docs",
"version": "4.0.0",
"description": "MCP server documentation and usage guides",
"category": "documentation",
"dependencies": ["core"],
"enabled": true,
"required_tools": []
},
"agents": {
"name": "agents",
"version": "4.0.0",
"description": "13 specialized AI agents with domain expertise and intelligent routing",
"category": "agents",
"dependencies": ["core"],
"enabled": true,
"required_tools": []
}
}
}

View File

@@ -0,0 +1,54 @@
{
"python": {
"min_version": "3.8.0"
},
"node": {
"min_version": "16.0.0",
"required_for": ["mcp"]
},
"disk_space_mb": 500,
"external_tools": {
"claude_cli": {
"command": "claude --version",
"min_version": "0.1.0",
"required_for": ["mcp"],
"optional": false
},
"git": {
"command": "git --version",
"min_version": "2.0.0",
"required_for": ["development"],
"optional": true
}
},
"installation_commands": {
"python": {
"linux": "sudo apt update && sudo apt install python3 python3-pip",
"darwin": "brew install python3",
"win32": "Download Python from https://python.org/downloads/",
"description": "Python 3.8+ is required for SuperClaude framework"
},
"node": {
"linux": "sudo apt update && sudo apt install nodejs npm",
"darwin": "brew install node",
"win32": "Download Node.js from https://nodejs.org/",
"description": "Node.js 16+ is required for MCP server integration"
},
"claude_cli": {
"all": "Visit https://claude.ai/code for installation instructions",
"description": "Claude CLI is required for MCP server management"
},
"git": {
"linux": "sudo apt update && sudo apt install git",
"darwin": "brew install git",
"win32": "Download Git from https://git-scm.com/downloads",
"description": "Git is recommended for development workflows"
},
"npm": {
"linux": "sudo apt update && sudo apt install npm",
"darwin": "npm is included with Node.js",
"win32": "npm is included with Node.js",
"description": "npm is required for installing MCP servers"
}
}
}

View File

@@ -534,9 +534,9 @@ class Validator:
"""
try:
from ..managers.config_manager import ConfigManager
from .. import PROJECT_ROOT
from .. import CONFIG_DIR
config_manager = ConfigManager(PROJECT_ROOT / "config")
config_manager = ConfigManager(CONFIG_DIR)
requirements = config_manager.load_requirements()
return requirements.get("installation_commands", {})
except Exception:

View File

@@ -18,7 +18,7 @@ from ..utils.ui import (
display_warning, Menu, confirm, ProgressBar, Colors, format_size
)
from ..utils.logger import get_logger
from .. import DEFAULT_INSTALL_DIR, PROJECT_ROOT
from .. import DEFAULT_INSTALL_DIR, PROJECT_ROOT, CONFIG_DIR
from . import OperationBase
@@ -87,7 +87,7 @@ def validate_system_requirements(validator: Validator, component_names: List[str
try:
# Load requirements configuration
config_manager = ConfigManager(PROJECT_ROOT / "config")
config_manager = ConfigManager(CONFIG_DIR)
requirements = config_manager.get_requirements_for_components(component_names)
# Validate requirements
@@ -518,7 +518,7 @@ def run(args: argparse.Namespace) -> int:
registry = ComponentRegistry(PROJECT_ROOT / "setup" / "components")
registry.discover_components()
config_manager = ConfigManager(PROJECT_ROOT / "config")
config_manager = ConfigManager(CONFIG_DIR)
validator = Validator()
# Validate configuration