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

Function recordingHooks

test/orchestration.test.ts:21–31  ·  view source on GitHub ↗

Hooks that record execution order and always succeed.

(order: string[])

Source from the content-addressed store, hash-verified

19
20/** Hooks that record execution order and always succeed. */
21function recordingHooks(order: string[]): SchedulerHooks {
22 return {
23 runNode: async (n) => {
24 order.push(n.id);
25 return { taskId: n.id, ok: true, fileEdits: [{ path: n.targetFiles[0]!, content: `// ${n.id}`, isNew: true }], summary: '', toolCallsRun: 1 };
26 },
27 review: async (n): Promise<QaVerdict> => ({ taskId: n.id, passed: true, blockers: [], warnings: [] }),
28 dryRunMerge: async () => [],
29 commit: async () => {},
30 };
31}
32
33describe('topoSort', () => {
34 it('orders a linear chain', () => {

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected