(t: AgentTarget, body?: string)
| 120 | * pass an explicit `body` to override in tests. |
| 121 | */ |
| 122 | export function renderForTarget(t: AgentTarget, body?: string): { path: string; content: string } { |
| 123 | const spec = TARGETS[t]; |
| 124 | const resolvedBody = |
| 125 | body !== undefined |
| 126 | ? body |
| 127 | : spec.mode === 'managed-section' |
| 128 | ? loadCodexSkillBody() |
| 129 | : loadSkillBody(); |
| 130 | return { path: spec.path, content: spec.wrap(resolvedBody) }; |
| 131 | } |
no test coverage detected