Replace full *config.Config reference with config.MCPConfig value type in AgentLoop to allow garbage collection of unused configuration data. Changes: - AgentLoop now stores only MCPConfig and workspacePath (minimal deps) - Add mcp.Manager.LoadFromMCPConfig() for minimal dependency version - Keep LoadFromConfig() for backward compatibility - Full Config object can be GC'd after NewAgentLoop() returns This optimization reduces memory usage by not holding references to unused channel, provider, gateway, and device configurations. |
||
|---|---|---|
| .. | ||
| agent | ||
| auth | ||
| bus | ||
| channels | ||
| config | ||
| constants | ||
| cron | ||
| devices | ||
| health | ||
| heartbeat | ||
| logger | ||
| mcp | ||
| migrate | ||
| providers | ||
| session | ||
| skills | ||
| state | ||
| tools | ||
| utils | ||
| voice | ||