@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 CHANGED
@@ -5,6 +5,7 @@ export declare const args: {
5
5
  sample: string | undefined;
6
6
  d: string | undefined;
7
7
  v: boolean;
8
+ a: boolean;
8
9
  m: boolean;
9
10
  yaml: boolean;
10
11
  json: boolean;
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",
@@ -73,7 +73,8 @@ const main = async () => {
73
73
  graph.onLogCallback = test_utils_1.callbackLog;
74
74
  }
75
75
  try {
76
- const results = await graph.run();
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, graphData.version ?? 0.2);
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, graphData.version ?? 0.2);
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.16",
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.28",
41
+ "@graphai/agents": "^0.1.0",
42
42
  "@receptron/test_utils": "^0.0.7",
43
43
  "dotenv": "^16.4.5",
44
- "graphai": "^0.5.8",
44
+ "graphai": "^0.5.9",
45
45
  "json-schema-generator": "^2.0.6",
46
46
  "yargs": "^17.7.2"
47
47
  },