Setup¶
setup_crux
¶
Crux setup — fresh install and migration from old layout.
Provides run_setup() which:
1. Creates the ~/.crux/ directory structure.
2. Writes config.toml with platform defaults.
3. Installs the bundled Crux skill to ~/.claude/skills/crux/SKILL.md.
4. Detects and reports missing external dependencies.
5. Optionally migrates data from the old marketplace/ repo layout.
LauncherInstallResult
dataclass
¶
Summary of shared launcher script installation.
SetupResult
dataclass
¶
SetupResult(dirs_created=list(), config_written=False, skill_installed=False, launchers=LauncherInstallResult(), missing_deps=list(), migration=None)
Collects everything run_setup did so callers can report it.
MigrationResult
dataclass
¶
Summary of what the migration step copied.
install_skill
¶
Copy the bundled Crux skill to the Claude skills directory.
Source code in src/crux_cli/setup_crux.py
check_dependencies
¶
Return a list of missing required tools.
Source code in src/crux_cli/setup_crux.py
run_setup
¶
run_setup(*, search_path=None, skill_target_dir=None, bundled_skill_path=None, launcher_target_dir=None, bundled_launcher_path=None)
Run the full Crux setup sequence.