MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resolveSpawnAgentToReal

Function resolveSpawnAgentToReal

cli/src/utils/spawn-agent-matcher.ts:27–55  ·  view source on GitHub ↗
(options: {
  blocks: ContentBlock[]
  match: SpawnAgentMatch
  realAgentId: string
  realAgentType?: string
  parentAgentId?: string
  params?: Record<string, unknown>
  prompt?: string
})

Source from the content-addressed store, hash-verified

25}
26
27export const resolveSpawnAgentToReal = (options: {
28 blocks: ContentBlock[]
29 match: SpawnAgentMatch
30 realAgentId: string
31 realAgentType?: string
32 parentAgentId?: string
33 params?: Record<string, unknown>
34 prompt?: string
35}): ContentBlock[] => {
36 const {
37 blocks,
38 match,
39 realAgentId,
40 realAgentType,
41 parentAgentId,
42 params: agentParams,
43 prompt,
44 } = options
45
46 return moveSpawnAgentBlock(
47 blocks,
48 match.tempId,
49 realAgentId,
50 parentAgentId,
51 agentParams,
52 prompt,
53 realAgentType,
54 )
55}

Callers 1

handleSubagentStartFunction · 0.90

Calls 1

moveSpawnAgentBlockFunction · 0.90

Tested by

no test coverage detected