Description
Implement the cli.sh init command to initialize a JitAI development workspace. The command should perform environment validation before setting up the workspace structure.
Requirements
1. Environment Checks
Before proceeding with initialization, verify:
-
Python Environment:
- Python >= 3.12 is installed and accessible
- Required Python packages can be installed
- Virtual environment can be created
-
Node.js Environment:
- Node.js >= 20 is installed and accessible
- npm/yarn is available
- Can install required packages
2. Directory Construction
After successful environment checks:
- Create the jitai-workspace directory structure
- Copy template files from the repository
- Download required directory files:
system/bin/builder
system/bin/jitnode
- Download framework applications as needed
- Set up configuration files with default values
- Initialize Python virtual environment
- Install initial dependencies
3. Error Handling
- Provide clear error messages if environment checks fail
- Suggest remediation steps for common issues
4. Output
- Display progress during initialization
- Show summary of what was installed/configured
- Provide next steps for the developer
Acceptance Criteria
Technical Notes
- Consider using a configuration file to specify download URLs and versions
- Implement retry logic for network downloads
Description
Implement the
cli.sh initcommand to initialize a JitAI development workspace. The command should perform environment validation before setting up the workspace structure.Requirements
1. Environment Checks
Before proceeding with initialization, verify:
Python Environment:
Node.js Environment:
2. Directory Construction
After successful environment checks:
system/bin/buildersystem/bin/jitnode3. Error Handling
4. Output
Acceptance Criteria
Technical Notes