| Field | Type | Description |
|---|---|---|
DEFAULT |
str |
Hard-coded fallback source. |
USER |
str |
~/.teaagent/config.json source. |
WORKSPACE |
str |
<root>/.teaagent/config.json source. |
ENV |
str |
TEAAGENT_* environment source. |
| Field | Type | Description |
|---|---|---|
values |
dict[str, Any] |
Resolved values after precedence merge. |
sources |
dict[str, ConfigLayer] |
Winning source layer per key. |
| Field | Type | Description |
|---|---|---|
workspace_root |
`str | Path` |
user_home |
`Optional[str | Path]` |
Location: teaagent/config_loader.py:142
Pre-condition: root is a readable path.
Post-condition: Returns workspace config dict or {} if missing/unreadable.
Location: teaagent/config_loader.py:171
Pre-condition: None.
Post-condition: Returns merged config with source attribution (default < user < workspace < env).
Location: teaagent/config_loader.py:90
Pre-condition: None.
Post-condition: Returns resolved value or provided default.
Location: teaagent/config_loader.py:93
Pre-condition: None.
Post-condition: Returns source layer for key, else None.
Location: teaagent/config_loader.py:96
Pre-condition: None.
Post-condition: Returns human-readable key = value [layer] lines.