- Add 60 new agents across all 10 categories (75 -> 135) - Add 95 new plugins with command files (25 -> 120) - Update all agents to use model: opus - Update README with complete plugin/agent tables - Update marketplace.json with all 120 plugins
1.5 KiB
1.5 KiB
Validate environment configuration against the template and runtime requirements.
Steps
- Read
.env.exampleto get the expected variable list. - Read
.env(or the active environment) to get actual values. - Check for missing variables:
- Required variables without values.
- Variables in
.env.examplenot present in.env.
- Check for extra variables:
- Variables in
.envnot documented in.env.example.
- Variables in
- Validate variable formats:
- URLs: Valid URL format with expected scheme.
- Ports: Numeric, in valid range (1-65535).
- Booleans:
true/false, notyes/noor1/0. - Emails: Valid email format.
- Check for common issues:
- Trailing whitespace in values.
- Unquoted values with special characters.
- Duplicate variable definitions.
- Verify connectivity for database URLs and API endpoints if
--liveflag is set.
Format
Environment Validation: <environment>
Missing (required):
- DATABASE_URL: No value set
Missing (optional):
- LOG_LEVEL: Using default "info"
Format issues:
- PORT: "abc" is not a valid port number
Extra (undocumented):
- LEGACY_MODE: Not in .env.example
Status: <valid/invalid>
Rules
- Fail on any missing required variable.
- Warn on undocumented variables (may be leftover from old code).
- Do not print actual secret values in validation output.
- Support multiple environment files (.env.development, .env.production).
- Exit with non-zero code if validation fails (for CI integration).