resolveAgentFactory
resolveAgentFactory(
_config,_defaultBackend?):GthAgentFactory
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/resolveAgentFactory.ts:17
Resolve the agent backend factory from config (B5).
There is one backend — the lean gthLeanAgentFactory — so every call resolves to it, and
agent.backend can only name it. The seam is kept rather than inlined at the ten call sites
because it is the single place a backend choice is made: reinstating a choice (EXT-46’s ACP
rebuild, or any later runtime) is an edit here, not an edit spread across every command.
The parameters are accepted and ignored for the same reason. defaultBackend is each caller’s
per-command default, and every caller passes 'lean'; typing it as the literal keeps a caller
that means something else from compiling silently.
Parameters
Section titled “Parameters”_config
Section titled “_config”_defaultBackend?
Section titled “_defaultBackend?”"lean" = 'lean'