     code: component.code
     tests: component.tests
 
-sendGraph = (namespace, graph, runtime, project) ->
+sendGraph = (namespace, graph, runtime) ->
   if graph.properties.environment?.type
     return unless graph.properties.environment.type in ['all', runtime.definition.type]
 

    id: graphId
    name: graph.name
    library: namespace
    main: (not project or graph.properties.id is project.main)
    icon: graph.properties.icon or ''
    description: graph.properties.description or ''
  for node in graph.nodes

  if project.components
    sendComponent namespace, component, runtime for component in project.components
  if project.graphs
    sendGraph namespace, graph, runtime for graph in project.graphs

sendComponent = (namespace, component, runtime) ->
  return unless component.code
