Fixed all remaining linting errors from the 310 total: - SIM102: Combined nested if statements (31 errors) - adaptors/openai.py - config_extractor.py - codebase_scraper.py - doc_scraper.py - github_fetcher.py - pattern_recognizer.py - pdf_scraper.py - test_example_extractor.py - SIM117: Combined multiple with statements (24 errors) - tests/test_async_scraping.py (2 errors) - tests/test_github_scraper.py (2 errors) - tests/test_guide_enhancer.py (20 errors) - Fixed test fixture parameter (mock_config in test_c3_integration.py) All 700+ tests passing. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
94 lines
2.6 KiB
Python
94 lines
2.6 KiB
Python
"""
|
||
Interactive Setup Wizard for Skill Seekers
|
||
|
||
Guides users through installation options on first run.
|
||
"""
|
||
|
||
from pathlib import Path
|
||
|
||
|
||
def show_installation_guide():
|
||
"""Show installation options"""
|
||
print("""
|
||
╔═══════════════════════════════════════════════════════════╗
|
||
║ ║
|
||
║ Skill Seekers Setup Guide ║
|
||
║ ║
|
||
╚═══════════════════════════════════════════════════════════╝
|
||
|
||
Choose your installation profile:
|
||
|
||
1️⃣ CLI Only (Skill Generation)
|
||
pip install skill-seekers
|
||
|
||
Features:
|
||
• Scrape documentation websites
|
||
• Analyze GitHub repositories
|
||
• Extract from PDFs
|
||
• Package skills for all platforms
|
||
|
||
2️⃣ MCP Integration (Claude Code, Cursor, Windsurf)
|
||
pip install skill-seekers[mcp]
|
||
|
||
Features:
|
||
• Everything from CLI Only
|
||
• MCP server for Claude Code
|
||
• One-command skill installation
|
||
• HTTP/stdio transport modes
|
||
|
||
3️⃣ Multi-LLM Support (Gemini, OpenAI)
|
||
pip install skill-seekers[all-llms]
|
||
|
||
Features:
|
||
• Everything from CLI Only
|
||
• Google Gemini support
|
||
• OpenAI ChatGPT support
|
||
• Enhanced AI features
|
||
|
||
4️⃣ Everything
|
||
pip install skill-seekers[all]
|
||
|
||
Features:
|
||
• All features enabled
|
||
• Maximum flexibility
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
|
||
Current installation: pip install skill-seekers
|
||
Upgrade with: pip install -U skill-seekers[mcp]
|
||
|
||
For configuration wizard:
|
||
skill-seekers config
|
||
|
||
For help:
|
||
skill-seekers --help
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||
""")
|
||
|
||
|
||
def check_first_run():
|
||
"""Check if this is first run"""
|
||
flag_file = Path.home() / ".config" / "skill-seekers" / ".setup_shown"
|
||
|
||
if not flag_file.exists():
|
||
show_installation_guide()
|
||
|
||
# Create flag to not show again
|
||
flag_file.parent.mkdir(parents=True, exist_ok=True)
|
||
flag_file.touch()
|
||
|
||
input("\nPress Enter to continue...")
|
||
return True
|
||
|
||
return False
|
||
|
||
|
||
def main():
|
||
"""Show wizard"""
|
||
show_installation_guide()
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|