How amandot/devset works
DevSet is a local project-analysis and environment-setup CLI. Its main workflow scans a repository, identifies components and technologies, checks environment and dependencies, proposes a setup plan, and executes approved steps; a separate command runs configured services. The graph also shows analysis, diagnostics, cleanup, and the shared process layer. Some subsystems are represented at directory level where their source was not excerpted; those links are omitted unless supported by the README or source index.
Main entry points: project-analyzer.ts Project Analyzer · index.ts CLI Entry · setup.ts Setup Command · plan-generator.ts Plan Generator
Components 27
CLI Commands
- CLI Entry
src/cli/index.ts - Setup Command
src/cli/commands/setup.ts - Analyze Command
src/cli/commands/analyze.ts - Doctor Command
src/cli/commands/doctor.ts - Clean Command
src/cli/commands/clean.ts - Run Command
src/cli/commands/run.ts
Project Discovery
- File Scanner
src/scanner/file-scanner.ts - Component Discovery
src/scanner/directory-scanner.ts - Project Analyzer
src/analyzers/project-analyzer.ts - Technology Detectors
src/detectors - Structure Analyzer
src/analyzers/structure-analyzer.ts - Dependency Analysis
src/analyzers/dependency-analyzer.ts - Dependency Validator
src/validators/dependency-validator.ts - Environment Validator
src/validators/environment-validator.ts
Setup Planning
- Plan Generator
src/core/plan-generator.ts
Setup and Runtime
- Execution Engine
src/core/execution-engine.ts - Platform Installers
src/installers - Python Installer
src/installers/python-installer.ts - Runtime Validator
src/validators/runtime-validator.ts - Service Runner
src/runner/service-runner.ts - Process Manager
src/runner/process-manager.ts
Shared Infrastructure
- Filesystem Utilities
src/utils/filesystem.ts - Process Utilities
src/utils/process.ts - Logger
src/utils/logger.ts - Project Model
src/types/project.ts - Setup Plan Model
src/types/setup-plan.ts
Other components
- Developer
Connections 33
- Developer → CLI Entry: invokes
README.md - CLI Entry → Setup Command: dispatches
src/cli/index.ts - CLI Entry → Analyze Command: dispatches
src/cli/index.ts - CLI Entry → Doctor Command: dispatches
src/cli/index.ts - CLI Entry → Clean Command: dispatches
src/cli/index.ts - CLI Entry → Run Command: dispatches
src/cli/index.ts - Analyze Command → Project Analyzer: analyzes with
src/cli/commands/analyze.ts - Setup Command → Project Analyzer: analyzes with
src/cli/commands/setup.ts - Project Analyzer → File Scanner: scans files
src/analyzers/project-analyzer.ts - Project Analyzer → Component Discovery: discovers components
src/analyzers/project-analyzer.ts - Project Analyzer → Technology Detectors: detects technologies
src/analyzers/project-analyzer.ts - Project Analyzer → Structure Analyzer: classifies project
src/analyzers/project-analyzer.ts - Project Analyzer → Dependency Validator: checks dependencies
src/analyzers/project-analyzer.ts - Project Analyzer → Dependency Analysis: analyzes dependencies
src/analyzers/project-analyzer.ts - Technology Detectors → File Scanner: uses scan results
src/detectors/package-manager-detector.ts - Setup Command → Plan Generator: generates plan
src/cli/commands/setup.ts - Plan Generator → Dependency Validator: validates dependencies
src/core/plan-generator.ts - Plan Generator → Filesystem Utilities: reads project files
src/core/plan-generator.ts - Setup Command → Execution Engine: executes plan
src/cli/commands/setup.ts - Execution Engine → Platform Installers: dispatches steps
src/core/execution-engine.ts - Execution Engine → Filesystem Utilities: reads and writes
src/core/execution-engine.ts - Platform Installers → Python Installer: includes
src/installers/python-installer.ts - Python Installer → Runtime Validator: checks Python
src/installers/python-installer.ts - Python Installer → Dependency Validator: finds virtualenv
src/installers/python-installer.ts - Doctor Command → Runtime Validator: runs diagnostics
src/cli/commands/doctor.ts - Run Command → Service Runner: starts services
README.md - Service Runner → Process Manager: manages processes
- Process Manager → Process Utilities: runs commands
src/runner/process-manager.ts - Clean Command → Filesystem Utilities: removes generated files
src/cli/commands/clean.ts - Process Utilities → Logger: logs execution
src/utils/process.ts - Project Analyzer → Project Model: produces analysis
src/analyzers/project-analyzer.ts - Plan Generator → Setup Plan Model: produces setup plan
src/core/plan-generator.ts - Execution Engine → Setup Plan Model: consumes plan
src/core/execution-engine.ts