graphai 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +27 -46
- package/.github/workflows/node.js.yml +1 -0
- package/README.md +42 -10
- package/lib/graphai.d.ts +57 -27
- package/lib/graphai.js +157 -39
- package/package.json +11 -5
- package/samples/agents/arxiv_agent.ts +46 -0
- package/samples/agents/slashgpt_agent.ts +21 -0
- package/samples/express.ts +47 -0
- package/samples/graphs/arxiv.yml +29 -0
- package/{tests → samples}/sample_gpt.ts +11 -11
- package/samples/sample_paper_ai.ts +26 -0
- package/src/graphai.ts +213 -77
- package/tests/agents/agents.ts +24 -0
- package/tests/graphai/test_dispatch.ts +42 -0
- package/tests/graphai/test_http_client.ts +40 -0
- package/tests/{test_multiple_functions.ts → graphai/test_multiple_functions.ts} +13 -14
- package/tests/graphai/test_sample_flow.ts +72 -0
- package/tests/graphs/test_dispatch.yml +24 -0
- package/tests/graphs/test_error.yml +22 -0
- package/tests/graphs/test_multiple_functions_1.yml +8 -2
- package/tests/graphs/test_source.yml +18 -0
- package/tests/graphs/test_source2.yml +17 -0
- package/tests/graphs/test_timeout.yml +22 -0
- package/tests/http-server/README.md +10 -0
- package/tests/http-server/docs/llm.json +4 -0
- package/tests/http-server/docs/llm2.json +4 -0
- package/tests/{file_utils.ts → utils/file_utils.ts} +10 -1
- package/tests/utils/runner.ts +40 -0
- package/tsconfig.json +5 -2
- package/tests/test_sample_flow.ts +0 -63
- /package/{tests/graphs/sample3.yml → samples/graphs/slash_gpt.yml} +0 -0
- /package/tests/graphs/{sample1.yml → test_base.yml} +0 -0
- /package/tests/graphs/{sample2.yml → test_retry.yml} +0 -0
- /package/tests/{utils.ts → utils/utils.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AgentFunction } from "@/graphai";
|
|
2
|
+
import { fileTestRunner } from "~/utils/runner";
|
|
3
|
+
|
|
4
|
+
import { sleep } from "~/utils/utils";
|
|
5
|
+
|
|
6
|
+
import { testAgent } from "~/agents/agents";
|
|
7
|
+
|
|
8
|
+
import test from "node:test";
|
|
9
|
+
import assert from "node:assert";
|
|
10
|
+
|
|
11
|
+
const dispatchAgent: AgentFunction<{ delay: number; fail: boolean }> = async (context) => {
|
|
12
|
+
const { nodeId, retry, params, payload } = context;
|
|
13
|
+
console.log("executing", nodeId);
|
|
14
|
+
await sleep(params.delay / (retry + 1));
|
|
15
|
+
|
|
16
|
+
if (params.fail && retry < 2) {
|
|
17
|
+
const result = { [nodeId]: "failed" };
|
|
18
|
+
console.log("failed (intentional)", nodeId, retry);
|
|
19
|
+
throw new Error("Intentional Failure");
|
|
20
|
+
} else {
|
|
21
|
+
const result = Object.keys(payload).reduce(
|
|
22
|
+
(result, key) => {
|
|
23
|
+
result = { ...result, ...payload[key] };
|
|
24
|
+
return result;
|
|
25
|
+
},
|
|
26
|
+
{ [nodeId]: "dispatch" },
|
|
27
|
+
);
|
|
28
|
+
console.log("completing", nodeId);
|
|
29
|
+
return { output1: result };
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
test("test dispatch", async () => {
|
|
34
|
+
const result = await fileTestRunner("/graphs/test_dispatch.yml", { default: testAgent, alt: dispatchAgent });
|
|
35
|
+
assert.deepStrictEqual(result, {
|
|
36
|
+
node1: { node1: "output" },
|
|
37
|
+
node20: { node2: "dispatch" },
|
|
38
|
+
node3: { node3: "output", node1: "output", node2: "dispatch" },
|
|
39
|
+
node4: { node4: "output", node3: "output", node1: "output", node2: "dispatch" },
|
|
40
|
+
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "dispatch" },
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GraphAI, AgentFunction } from "@/graphai";
|
|
2
|
+
import { graphDataTestRunner } from "~/utils/runner";
|
|
3
|
+
|
|
4
|
+
import test from "node:test";
|
|
5
|
+
import assert from "node:assert";
|
|
6
|
+
|
|
7
|
+
const httpClientAgent: AgentFunction<Record<string, string>> = async (context) => {
|
|
8
|
+
const { nodeId, retry, params, payload } = context;
|
|
9
|
+
console.log("executing", nodeId, params, payload);
|
|
10
|
+
|
|
11
|
+
const response = await fetch(params.url);
|
|
12
|
+
const result = await response.json();
|
|
13
|
+
|
|
14
|
+
console.log("completing", nodeId, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const graph_data = {
|
|
19
|
+
nodes: {
|
|
20
|
+
node1: {
|
|
21
|
+
params: {
|
|
22
|
+
url: "http://127.0.0.1:8080/llm.json",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
node2: {
|
|
26
|
+
params: {
|
|
27
|
+
url: "http://127.0.0.1:8080/llm2.json",
|
|
28
|
+
},
|
|
29
|
+
inputs: ["node1"],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
test("test sample1", async () => {
|
|
35
|
+
const result = await graphDataTestRunner("http.log", graph_data, httpClientAgent);
|
|
36
|
+
assert.deepStrictEqual(result, {
|
|
37
|
+
node1: { result: true, messages: ["hello"] },
|
|
38
|
+
node2: { result: true, messages: ["hello2"] },
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import { GraphAI,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { GraphAI, AgentFunction } from "@/graphai";
|
|
3
|
+
import { readGraphaiData } from "~/utils/file_utils";
|
|
4
|
+
import { fileTestRunner } from "~/utils/runner";
|
|
5
5
|
|
|
6
6
|
import test from "node:test";
|
|
7
7
|
import assert from "node:assert";
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const testAgent1: AgentFunction = async (context) => {
|
|
10
10
|
const { nodeId, retry, params } = context;
|
|
11
11
|
console.log("executing", nodeId, params);
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ const testFunction1 = async (context: NodeExecuteContext<Record<string, string>>
|
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const testAgent2: AgentFunction = async (context) => {
|
|
19
19
|
const { nodeId, retry, params } = context;
|
|
20
20
|
console.log("executing", nodeId, params);
|
|
21
21
|
|
|
@@ -24,24 +24,23 @@ const testFunction2 = async (context: NodeExecuteContext<Record<string, string>>
|
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const graph = new GraphAI(graph_data, { default: testFunction1, test2: testFunction2 });
|
|
27
|
+
const numberTestAgent: AgentFunction<{ number: number }, { [key: string]: number }> = async (context) => {
|
|
28
|
+
const { nodeId, retry, params } = context;
|
|
29
|
+
console.log("executing", nodeId, params);
|
|
32
30
|
|
|
33
|
-
const
|
|
34
|
-
console.log(
|
|
35
|
-
return
|
|
31
|
+
const result = { [nodeId]: params.number };
|
|
32
|
+
console.log("completing", nodeId, result);
|
|
33
|
+
return result;
|
|
36
34
|
};
|
|
37
35
|
|
|
38
36
|
test("test sample1", async () => {
|
|
39
|
-
const result = await
|
|
37
|
+
const result = await fileTestRunner("/graphs/test_multiple_functions_1.yml", { default: testAgent1, test2: testAgent2, numberTestAgent });
|
|
40
38
|
assert.deepStrictEqual(result, {
|
|
41
39
|
node1: { node1: "output 1" },
|
|
42
40
|
node2: { node2: "output 1" },
|
|
43
41
|
node3: { node3: "output 2" },
|
|
44
42
|
node4: { node4: "output 1" },
|
|
45
43
|
node5: { node5: "output 2" },
|
|
44
|
+
node6: { node6: 10 },
|
|
46
45
|
});
|
|
47
46
|
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { GraphAI } from "@/graphai";
|
|
2
|
+
import { testAgent } from "~/agents/agents";
|
|
3
|
+
import { fileTestRunner } from "~/utils/runner";
|
|
4
|
+
|
|
5
|
+
import test from "node:test";
|
|
6
|
+
import assert from "node:assert";
|
|
7
|
+
|
|
8
|
+
test("test base", async () => {
|
|
9
|
+
const result = await fileTestRunner("/graphs/test_base.yml", testAgent);
|
|
10
|
+
assert.deepStrictEqual(result, {
|
|
11
|
+
node1: { node1: "output" },
|
|
12
|
+
node2: { node2: "output" },
|
|
13
|
+
node3: { node3: "output", node1: "output", node2: "output" },
|
|
14
|
+
node4: { node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
15
|
+
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("test retry", async () => {
|
|
20
|
+
const result = await fileTestRunner("/graphs/test_retry.yml", testAgent);
|
|
21
|
+
assert.deepStrictEqual(result, {
|
|
22
|
+
node1: { node1: "output" },
|
|
23
|
+
node2: { node2: "output" },
|
|
24
|
+
node3: { node3: "output", node1: "output", node2: "output" },
|
|
25
|
+
node4: { node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
26
|
+
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test("test error", async () => {
|
|
31
|
+
const result = await fileTestRunner("/graphs/test_error.yml", testAgent);
|
|
32
|
+
assert.deepStrictEqual(result, {
|
|
33
|
+
node1: { node1: "output" },
|
|
34
|
+
node2: { node2: "output" },
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test("test timeout", async () => {
|
|
39
|
+
const result = await fileTestRunner("/graphs/test_timeout.yml", testAgent);
|
|
40
|
+
assert.deepStrictEqual(result, {
|
|
41
|
+
node1: { node1: "output" },
|
|
42
|
+
node2: { node2: "output" },
|
|
43
|
+
node3: { node3: "output", node1: "output", node2: "output" },
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
test("test source", async () => {
|
|
48
|
+
const result = await fileTestRunner("/graphs/test_source.yml", testAgent, (graph: GraphAI) => {
|
|
49
|
+
graph.injectResult("node2", { node2: "injected" });
|
|
50
|
+
});
|
|
51
|
+
assert.deepStrictEqual(result, {
|
|
52
|
+
node1: { node1: "output" },
|
|
53
|
+
node2: { node2: "injected" },
|
|
54
|
+
node3: { node3: "output", node1: "output", node2: "injected" },
|
|
55
|
+
node4: { node4: "output", node3: "output", node1: "output", node2: "injected" },
|
|
56
|
+
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "injected" },
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test("test source2", async () => {
|
|
61
|
+
const result = await fileTestRunner("/graphs/test_source2.yml", testAgent, (graph: GraphAI) => {
|
|
62
|
+
graph.injectResult("node1", { node1: "injected" });
|
|
63
|
+
graph.injectResult("node2", { node2: "injected" });
|
|
64
|
+
});
|
|
65
|
+
assert.deepStrictEqual(result, {
|
|
66
|
+
node1: { node1: "injected" },
|
|
67
|
+
node2: { node2: "injected" },
|
|
68
|
+
node3: { node3: "output", node1: "injected", node2: "injected" },
|
|
69
|
+
node4: { node4: "output", node3: "output", node1: "injected", node2: "injected" },
|
|
70
|
+
node5: { node5: "output", node4: "output", node3: "output", node1: "injected", node2: "injected" },
|
|
71
|
+
});
|
|
72
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
nodes:
|
|
2
|
+
node1:
|
|
3
|
+
params:
|
|
4
|
+
delay: 500
|
|
5
|
+
node2:
|
|
6
|
+
params:
|
|
7
|
+
delay: 100
|
|
8
|
+
agentId: alt
|
|
9
|
+
dispatch:
|
|
10
|
+
output1: node20
|
|
11
|
+
node20:
|
|
12
|
+
source: true
|
|
13
|
+
node3:
|
|
14
|
+
params:
|
|
15
|
+
delay: 500
|
|
16
|
+
inputs: [node1, node20]
|
|
17
|
+
node4:
|
|
18
|
+
params:
|
|
19
|
+
delay: 100
|
|
20
|
+
inputs: [node3]
|
|
21
|
+
node5:
|
|
22
|
+
params:
|
|
23
|
+
delay: 500
|
|
24
|
+
inputs: [node20, node4]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
nodes:
|
|
2
|
+
node1:
|
|
3
|
+
params:
|
|
4
|
+
delay: 500
|
|
5
|
+
node2:
|
|
6
|
+
params:
|
|
7
|
+
delay: 100
|
|
8
|
+
node3:
|
|
9
|
+
params:
|
|
10
|
+
delay: 500
|
|
11
|
+
fail: true
|
|
12
|
+
inputs: [node1, node2]
|
|
13
|
+
node4:
|
|
14
|
+
timeout: 200
|
|
15
|
+
retry: 2
|
|
16
|
+
params:
|
|
17
|
+
delay: 300
|
|
18
|
+
inputs: [node3]
|
|
19
|
+
node5:
|
|
20
|
+
params:
|
|
21
|
+
delay: 100
|
|
22
|
+
inputs: [node4]
|
|
@@ -9,7 +9,7 @@ nodes:
|
|
|
9
9
|
params:
|
|
10
10
|
delay: 500
|
|
11
11
|
inputs: [node1, node2]
|
|
12
|
-
|
|
12
|
+
agentId: test2
|
|
13
13
|
node4:
|
|
14
14
|
params:
|
|
15
15
|
delay: 100
|
|
@@ -18,4 +18,10 @@ nodes:
|
|
|
18
18
|
params:
|
|
19
19
|
delay: 500
|
|
20
20
|
inputs: [node2, node4]
|
|
21
|
-
|
|
21
|
+
agentId: test2
|
|
22
|
+
node6:
|
|
23
|
+
params:
|
|
24
|
+
delay: 100
|
|
25
|
+
number: 10
|
|
26
|
+
inputs: [node4]
|
|
27
|
+
agentId: numberTestAgent
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
nodes:
|
|
2
|
+
node1:
|
|
3
|
+
params:
|
|
4
|
+
delay: 500
|
|
5
|
+
node2:
|
|
6
|
+
params:
|
|
7
|
+
delay: 100
|
|
8
|
+
node3:
|
|
9
|
+
params:
|
|
10
|
+
delay: 500
|
|
11
|
+
fail: true
|
|
12
|
+
inputs: [node1, node2]
|
|
13
|
+
retry: 2
|
|
14
|
+
node4:
|
|
15
|
+
timeout: 200
|
|
16
|
+
params:
|
|
17
|
+
delay: 300
|
|
18
|
+
inputs: [node3]
|
|
19
|
+
node5:
|
|
20
|
+
params:
|
|
21
|
+
delay: 100
|
|
22
|
+
inputs: [node4]
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
2
3
|
import YAML from "yaml";
|
|
3
4
|
|
|
4
|
-
export const
|
|
5
|
+
export const mkdirLogDir = () => {
|
|
6
|
+
const logsDir = path.join(__dirname, "../logs");
|
|
7
|
+
|
|
8
|
+
if (!fs.existsSync(logsDir)) {
|
|
9
|
+
fs.mkdirSync(logsDir, { recursive: true });
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const readGraphaiData = (file: string) => {
|
|
5
14
|
if (file.endsWith(".yaml") || file.endsWith(".yml")) {
|
|
6
15
|
return readYamlManifest(file);
|
|
7
16
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { GraphAI, GraphData, AgentFunctionDictonary, AgentFunction } from "@/graphai";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import * as fs from "fs";
|
|
4
|
+
import { readGraphaiData, mkdirLogDir } from "~/utils/file_utils";
|
|
5
|
+
|
|
6
|
+
export const fileTestRunner = async (
|
|
7
|
+
file: string,
|
|
8
|
+
callbackDictonary: AgentFunctionDictonary | AgentFunction<any, any, any>,
|
|
9
|
+
callback: (graph: GraphAI) => void = () => {},
|
|
10
|
+
) => {
|
|
11
|
+
const file_path = path.resolve(__dirname) + "/.." + file;
|
|
12
|
+
const graph_data = readGraphaiData(file_path);
|
|
13
|
+
return await graphDataTestRunner(file, graph_data, callbackDictonary, callback);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const graphDataTestRunner = async (
|
|
17
|
+
logFileName: string,
|
|
18
|
+
graph_data: GraphData,
|
|
19
|
+
callbackDictonary: AgentFunctionDictonary | AgentFunction<any, any, any>,
|
|
20
|
+
callback: (graph: GraphAI) => void = () => {},
|
|
21
|
+
) => {
|
|
22
|
+
mkdirLogDir();
|
|
23
|
+
|
|
24
|
+
const log_path = path.resolve(__dirname) + "/../logs/" + path.basename(logFileName).replace(/\.yml$/, ".log");
|
|
25
|
+
const graph = new GraphAI(graph_data, callbackDictonary);
|
|
26
|
+
callback(graph);
|
|
27
|
+
|
|
28
|
+
try {
|
|
29
|
+
const results = await graph.run();
|
|
30
|
+
fs.writeFileSync(log_path, JSON.stringify(graph.transactionLogs(), null, 2));
|
|
31
|
+
// console.log(graph.transactionLogs());
|
|
32
|
+
return results;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
if (error instanceof Error) {
|
|
35
|
+
console.log("Error:", error.message);
|
|
36
|
+
}
|
|
37
|
+
// console.log(graph.transactionLogs());
|
|
38
|
+
return graph.results();
|
|
39
|
+
}
|
|
40
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -28,8 +28,11 @@
|
|
|
28
28
|
"module": "commonjs", /* Specify what module code is generated. */
|
|
29
29
|
"rootDir": "./src/", /* Specify the root folder within your source files. */
|
|
30
30
|
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
"baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
+
"paths": {
|
|
33
|
+
"@/*": ["./src/*"],
|
|
34
|
+
"~/*": ["./tests/*"],
|
|
35
|
+
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
36
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
37
|
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
38
|
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import { GraphAI, NodeExecuteContext } from "../src/graphai";
|
|
3
|
-
import { readManifestData } from "./file_utils";
|
|
4
|
-
import { sleep } from "./utils";
|
|
5
|
-
|
|
6
|
-
import test from "node:test";
|
|
7
|
-
import assert from "node:assert";
|
|
8
|
-
|
|
9
|
-
const testFunction = async (context: NodeExecuteContext<Record<string, string>>) => {
|
|
10
|
-
const { nodeId, retry, params, payload } = context;
|
|
11
|
-
console.log("executing", nodeId, params);
|
|
12
|
-
await sleep(params.delay / (retry + 1));
|
|
13
|
-
|
|
14
|
-
if (params.fail && retry < 2) {
|
|
15
|
-
const result = { [nodeId]: "failed" };
|
|
16
|
-
console.log("failed", nodeId, result, retry);
|
|
17
|
-
throw new Error("Intentional Failure");
|
|
18
|
-
} else {
|
|
19
|
-
const result = Object.keys(payload).reduce(
|
|
20
|
-
(result, key) => {
|
|
21
|
-
result = { ...result, ...payload[key] };
|
|
22
|
-
return result;
|
|
23
|
-
},
|
|
24
|
-
{ [nodeId]: "output" },
|
|
25
|
-
);
|
|
26
|
-
console.log("completing", nodeId, result);
|
|
27
|
-
return result;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const runTest = async (file: string) => {
|
|
32
|
-
const file_path = path.resolve(__dirname) + file;
|
|
33
|
-
const graph_data = readManifestData(file_path);
|
|
34
|
-
|
|
35
|
-
const graph = new GraphAI(graph_data, testFunction);
|
|
36
|
-
|
|
37
|
-
const results = await graph.run();
|
|
38
|
-
console.log(results);
|
|
39
|
-
return results;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
test("test sample1", async () => {
|
|
43
|
-
const result = await runTest("/graphs/sample1.yml");
|
|
44
|
-
assert.deepStrictEqual(result, {
|
|
45
|
-
node1: { node1: "output" },
|
|
46
|
-
node2: { node2: "output" },
|
|
47
|
-
node3: { node3: "output", node1: "output", node2: "output" },
|
|
48
|
-
node4: { node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
49
|
-
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
test("test sample1", async () => {
|
|
54
|
-
const result = await runTest("/graphs/sample2.yml");
|
|
55
|
-
assert.deepStrictEqual(result, {
|
|
56
|
-
node1: { node1: "output" },
|
|
57
|
-
node2: { node2: "output" },
|
|
58
|
-
node3: { node3: "output", node1: "output", node2: "output" },
|
|
59
|
-
node4: { node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
60
|
-
node5: { node5: "output", node4: "output", node3: "output", node1: "output", node2: "output" },
|
|
61
|
-
});
|
|
62
|
-
console.log("COMPLETE 2");
|
|
63
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|