MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / node

Function node

test/orchestration.test.ts:7–13  ·  view source on GitHub ↗
(id: string, deps: string[] = [], targetFiles: string[] = [`${id}.ts`])

Source from the content-addressed store, hash-verified

5import type { TaskGraph, TaskNode, WorkerResult, QaVerdict } from '../src/orchestration/protocol.js';
6
7function node(id: string, deps: string[] = [], targetFiles: string[] = [`${id}.ts`]): TaskNode {
8 return {
9 id, kind: 'generic', title: id, instruction: `build ${id}`,
10 targetFiles, contextFiles: [], dependsOn: deps,
11 status: 'pending', attempts: 0,
12 };
13}
14
15function graphOf(...nodes: TaskNode[]): TaskGraph {
16 const map = new Map(nodes.map(n => [n.id, n]));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected