@receptron/graphai_cli 0.5.16 → 0.5.18
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/lib/args.d.ts +1 -0
- package/lib/args.js +7 -0
- package/lib/graphai_cli.js +2 -1
- package/lib/mermaid.js +2 -2
- package/package.json +3 -3
package/lib/args.d.ts
CHANGED
package/lib/args.js
CHANGED
|
@@ -28,6 +28,13 @@ exports.args = yargs_1.default
|
|
|
28
28
|
demandOption: true,
|
|
29
29
|
default: false,
|
|
30
30
|
type: "boolean",
|
|
31
|
+
})
|
|
32
|
+
.option("a", {
|
|
33
|
+
alias: "all",
|
|
34
|
+
describe: "all result",
|
|
35
|
+
demandOption: true,
|
|
36
|
+
default: false,
|
|
37
|
+
type: "boolean",
|
|
31
38
|
})
|
|
32
39
|
.option("m", {
|
|
33
40
|
alias: "mermaid",
|
package/lib/graphai_cli.js
CHANGED
|
@@ -73,7 +73,8 @@ const main = async () => {
|
|
|
73
73
|
graph.onLogCallback = test_utils_1.callbackLog;
|
|
74
74
|
}
|
|
75
75
|
try {
|
|
76
|
-
const
|
|
76
|
+
const resultAll = !!args_1.args.all;
|
|
77
|
+
const results = await graph.run(resultAll);
|
|
77
78
|
console.log(JSON.stringify(results, null, 2));
|
|
78
79
|
}
|
|
79
80
|
catch (e) {
|
package/lib/mermaid.js
CHANGED
|
@@ -11,7 +11,7 @@ const mermaid = (graphData) => {
|
|
|
11
11
|
if (node.inputs) {
|
|
12
12
|
if (Array.isArray(node.inputs)) {
|
|
13
13
|
node.inputs.forEach((input) => {
|
|
14
|
-
const source = (0, utils_1.parseNodeName)(input
|
|
14
|
+
const source = (0, utils_1.parseNodeName)(input);
|
|
15
15
|
if (source.propIds) {
|
|
16
16
|
console.log(` ${source.nodeId}(${source.nodeId}) -- ${source.propIds.join(".")} --> ${nodeId}`);
|
|
17
17
|
}
|
|
@@ -25,7 +25,7 @@ const mermaid = (graphData) => {
|
|
|
25
25
|
const inputNames = Object.keys(node.inputs);
|
|
26
26
|
inputNames.forEach((inputName) => {
|
|
27
27
|
const input = node.inputs[inputName];
|
|
28
|
-
const source = (0, utils_1.parseNodeName)(input
|
|
28
|
+
const source = (0, utils_1.parseNodeName)(input);
|
|
29
29
|
if (source.propIds) {
|
|
30
30
|
console.log(` ${source.nodeId}(${source.nodeId}) -- ${source.propIds.join(".")} --> ${nodeId}`);
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@receptron/graphai_cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "GraphAI command line tools.",
|
|
5
5
|
"main": "lib/graphai_cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@graphai/agent_filters": "^0.0.6",
|
|
41
|
-
"@graphai/agents": "^0.0
|
|
41
|
+
"@graphai/agents": "^0.1.0",
|
|
42
42
|
"@receptron/test_utils": "^0.0.7",
|
|
43
43
|
"dotenv": "^16.4.5",
|
|
44
|
-
"graphai": "^0.5.
|
|
44
|
+
"graphai": "^0.5.9",
|
|
45
45
|
"json-schema-generator": "^2.0.6",
|
|
46
46
|
"yargs": "^17.7.2"
|
|
47
47
|
},
|