MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / renderForTarget

Function renderForTarget

src/lib/agent-targets.ts:122–131  ·  view source on GitHub ↗
(t: AgentTarget, body?: string)

Source from the content-addressed store, hash-verified

120 * pass an explicit `body` to override in tests.
121 */
122export 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}

Callers 4

runInstallFunction · 0.85
agent.test.tsFile · 0.85

Calls 3

loadCodexSkillBodyFunction · 0.85
loadSkillBodyFunction · 0.85
wrapMethod · 0.80

Tested by

no test coverage detected