@receptron/graphai_cli 0.2.1 β 0.3.1
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/README.md +5 -5
- package/lib/graphai_cli.js +1 -1
- package/lib/mermaid.js +2 -2
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GraphAI cliπ€
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
GraphAI command line tool
|
|
4
4
|
|
|
5
5
|
## Install π
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ graphai command line tool
|
|
|
8
8
|
npm i -g @receptron/graphai_cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
## Usage
|
|
11
|
+
## Usage π
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
graphai_cli.ts <yaml_or_json_file>
|
|
@@ -31,13 +31,13 @@ Options:
|
|
|
31
31
|
--log output log [string]
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
### Run
|
|
34
|
+
### Run GraphAI π₯
|
|
35
35
|
|
|
36
36
|
```
|
|
37
37
|
graphai test_yaml/test_base.yml
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
### Get Agents List
|
|
40
|
+
### Get Agents List π
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
graphai -l
|
package/lib/graphai_cli.js
CHANGED
package/lib/mermaid.js
CHANGED
|
@@ -7,10 +7,10 @@ const mermaid = (graphData) => {
|
|
|
7
7
|
Object.keys(graphData.nodes).forEach((nodeId) => {
|
|
8
8
|
const node = graphData.nodes[nodeId];
|
|
9
9
|
// label / name
|
|
10
|
-
if ("
|
|
10
|
+
if ("agent" in node) {
|
|
11
11
|
if (node.inputs) {
|
|
12
12
|
node.inputs.forEach((input) => {
|
|
13
|
-
const source = (0, utils_1.parseNodeName)(input);
|
|
13
|
+
const source = (0, utils_1.parseNodeName)(input, graphData.version ?? 0.2);
|
|
14
14
|
if (source.propIds) {
|
|
15
15
|
console.log(` ${source.nodeId}(${source.nodeId}) -- ${source.propIds.join(".")} --> ${nodeId}`);
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@receptron/graphai_cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "GraphAI command line tools.",
|
|
5
5
|
"main": "lib/graphai_cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc && tsc-alias",
|
|
14
14
|
"eslint": "eslint --fix --ext .ts ./src",
|
|
15
|
-
"format": "prettier --write '{src,
|
|
16
|
-
"test": "node --test -r tsconfig-paths/register --require ts-node/register ./
|
|
15
|
+
"format": "prettier --write '{src,test_yaml,samples}/**/*.{yaml,ts,json}' .eslintrc.js",
|
|
16
|
+
"test": "node --test -r tsconfig-paths/register --require ts-node/register ./test_yaml/test_*.ts",
|
|
17
17
|
"cli": "npx ts-node -r tsconfig-paths/register ./src/graphai_cli.ts",
|
|
18
18
|
"b": "yarn run format && yarn run eslint && yarn run build"
|
|
19
19
|
},
|
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
"deepmerge": "^4.3.1",
|
|
48
48
|
"dotenv": "^16.4.5",
|
|
49
49
|
"express": "^4.19.2",
|
|
50
|
-
"graphai": "^0.
|
|
50
|
+
"graphai": "^0.3.1",
|
|
51
51
|
"groq-sdk": "^0.3.3",
|
|
52
52
|
"openai": "^4.12.4",
|
|
53
53
|
"slashgpt": "^0.0.8",
|
|
54
54
|
"tiktoken": "^1.0.14",
|
|
55
55
|
"wikipedia": "^2.1.2",
|
|
56
|
+
"xml2js": "^0.6.2",
|
|
56
57
|
"yaml": "^2.3.3",
|
|
57
58
|
"yargs": "^17.7.2"
|
|
58
59
|
},
|