(agent: ResolvedAgent)
| 18 | import { getCwd } from '../../utils/cwd.js' |
| 19 | |
| 20 | function formatAgent(agent: ResolvedAgent): string { |
| 21 | const model = resolveAgentModelDisplay(agent) |
| 22 | const parts = [agent.agentType] |
| 23 | if (model) { |
| 24 | parts.push(model) |
| 25 | } |
| 26 | if (agent.memory) { |
| 27 | parts.push(`${agent.memory} memory`) |
| 28 | } |
| 29 | return parts.join(' · ') |
| 30 | } |
| 31 | |
| 32 | export async function agentsHandler(): Promise<void> { |
| 33 | const cwd = getCwd() |
no test coverage detected