forked from kent/consciousness
Both hippocampus/config.rs and agent/config.rs read from the same config file (~/.config/poc-agent/config.json5). Having two separate implementations was a footgun — load_context_groups() was duplicated three times across the codebase. Merged into src/config.rs: - Config (memory settings, global get()/reload()) - AppConfig (agent backend/model settings, figment-based loading) - SessionConfig (resolved agent session, renamed from agent's Config) - Single ContextGroup/ContextSource definition used everywhere Eliminated: duplicate load_context_groups(), duplicate ContextGroup definition in identity.rs, duplicate config file path constants. Co-Authored-By: Proof of Concept <poc@bcachefs.org> |
||
|---|---|---|
| .. | ||
| api | ||
| tools | ||
| cli.rs | ||
| context.rs | ||
| dmn.rs | ||
| identity.rs | ||
| journal.rs | ||
| log.rs | ||
| mod.rs | ||
| observe.rs | ||
| parsing.rs | ||
| runner.rs | ||
| tui.rs | ||
| types.rs | ||
| ui_channel.rs | ||