feat(#696): Config template system — environment-specific overlays
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 26s
PR Checklist / pr-checklist (pull_request) Failing after 3m55s
Smoke Test / smoke (pull_request) Failing after 13s
Validate Config / YAML Lint (pull_request) Failing after 15s
Validate Config / JSON Validate (pull_request) Successful in 8s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 33s
Validate Config / Shell Script Lint (pull_request) Failing after 28s
Validate Config / Cron Syntax Check (pull_request) Successful in 6s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 5s
Validate Config / Playbook Schema Validation (pull_request) Successful in 10s
Architecture Lint / Lint Repository (pull_request) Has been cancelled
Validate Config / Python Test Suite (pull_request) Has been cancelled
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 26s
PR Checklist / pr-checklist (pull_request) Failing after 3m55s
Smoke Test / smoke (pull_request) Failing after 13s
Validate Config / YAML Lint (pull_request) Failing after 15s
Validate Config / JSON Validate (pull_request) Successful in 8s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 33s
Validate Config / Shell Script Lint (pull_request) Failing after 28s
Validate Config / Cron Syntax Check (pull_request) Successful in 6s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 5s
Validate Config / Playbook Schema Validation (pull_request) Successful in 10s
Architecture Lint / Lint Repository (pull_request) Has been cancelled
Validate Config / Python Test Suite (pull_request) Has been cancelled
Base config + env overlay merge system:
- config_overlay.py: deep_merge() for dict merging, load_config() for
loading base + overlay, detect_env() for auto-detection
- config.dev.yaml: local dev (qwen3, verbose, reasoning shown)
- config.prod.yaml: production (claude-opus, compact, privacy)
- config.cron.yaml: headless/cron (no memory, minimal display)
- config.gateway.yaml: messaging gateway (balanced settings)
- tests/test_config_overlay.py: 13 tests, all passing
Usage:
from config_overlay import load_config
config = load_config('config.yaml', env='prod')
Overlay naming: config.{env}.yaml
Auto-detect: TIMMY_ENV, HERMES_ENV, ENVIRONMENT, NODE_ENV
This commit is contained in:
14
config.dev.yaml
Normal file
14
config.dev.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Dev environment overlay
|
||||
# Merges with config.yaml — these keys override the base
|
||||
model:
|
||||
default: qwen3:30b
|
||||
provider: custom
|
||||
agent:
|
||||
max_turns: 50
|
||||
verbose: true
|
||||
display:
|
||||
show_reasoning: true
|
||||
streaming: true
|
||||
show_cost: true
|
||||
terminal:
|
||||
timeout: 300
|
||||
Reference in New Issue
Block a user