Skip to content

Commit ca2bacb

Browse files
authored
Merge pull request #147 from badaitech/feat/okx-llm-nodes
Enhance Node System: Complex Types, LLM Structured Output, OKX Swap Flow, and Core Improvements
2 parents 113108b + 0a60bc2 commit ca2bacb

155 files changed

Lines changed: 11679 additions & 925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ jobs:
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
NODE_OPTIONS: --max-old-space-size=8192

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
env:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
NODE_OPTIONS: --max-old-space-size=8192
7980

8081
# Create .npmrc file for GitHub Packages
8182
- name: Setup .npmrc

apps/chaingraph-backend/CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,75 @@
11
# @badaitech/chaingraph-backend
22

3+
## 0.1.24
4+
5+
### Patch Changes
6+
7+
- eb4cf29: Add the ArchAI integration tab with configurable session and nodes context. When execution ID exists then disable all port inputs. Merge execution node and editor nodes UI to make it interactive after execution complete. Add BadAI nodes in the hidden category as fallback. Fix ports serialize/deserialize undefined and null values with fallback. Recursive open Any port underlying type. Improve LLM call with structured output node. Now it work well with Groq and any other LLM's. Add retries with error feedback. Other changes and bug fixes.
8+
- Small fixes for the session token in root provider and get variable node
9+
- d5409b8: Fix backend build
10+
- 639038b: Redevelop gate node, now it handles complex types much better. Add LLM Call with structured output node. Add basic value Object node with mutable schema. Rename BadAI to ArchAI nodes and category. Add math And node. Add yaml helper to handlebars template. Add OKX nodes to build whole swap flow. Add PortCreate, PortDelete events to the node. Improve here and there core port, nodes, flow logic as well as port plugins.
11+
- d5409b8: Fix deserialization
12+
- d5409b8: Fix enum deserialize
13+
- Updated dependencies [eb4cf29]
14+
- Updated dependencies
15+
- Updated dependencies [d5409b8]
16+
- Updated dependencies [639038b]
17+
- Updated dependencies [d5409b8]
18+
- Updated dependencies [d5409b8]
19+
- @badaitech/chaingraph-nodes@0.1.24
20+
- @badaitech/chaingraph-types@0.1.24
21+
- @badaitech/chaingraph-trpc@0.1.24
22+
23+
## 0.1.24-dev.4
24+
25+
### Patch Changes
26+
27+
- Add the ArchAI integration tab with configurable session and nodes context. When execution ID exists then disable all port inputs. Merge execution node and editor nodes UI to make it interactive after execution complete. Add BadAI nodes in the hidden category as fallback. Fix ports serialize/deserialize undefined and null values with fallback. Recursive open Any port underlying type. Improve LLM call with structured output node. Now it work well with Groq and any other LLM's. Add retries with error feedback. Other changes and bug fixes.
28+
- Updated dependencies
29+
- @badaitech/chaingraph-nodes@0.1.24-dev.4
30+
- @badaitech/chaingraph-types@0.1.24-dev.4
31+
- @badaitech/chaingraph-trpc@0.1.24-dev.4
32+
33+
## 0.1.24-dev.3
34+
35+
### Patch Changes
36+
37+
- Fix enum deserialize
38+
- Updated dependencies
39+
- @badaitech/chaingraph-nodes@0.1.24-dev.3
40+
- @badaitech/chaingraph-types@0.1.24-dev.3
41+
- @badaitech/chaingraph-trpc@0.1.24-dev.3
42+
43+
## 0.1.24-dev.2
44+
45+
### Patch Changes
46+
47+
- Fix deserialization
48+
- Updated dependencies
49+
- @badaitech/chaingraph-nodes@0.1.24-dev.2
50+
- @badaitech/chaingraph-types@0.1.24-dev.2
51+
- @badaitech/chaingraph-trpc@0.1.24-dev.2
52+
53+
## 0.1.24-dev.1
54+
55+
### Patch Changes
56+
57+
- Fix backend build
58+
- Updated dependencies
59+
- @badaitech/chaingraph-nodes@0.1.24-dev.1
60+
- @badaitech/chaingraph-types@0.1.24-dev.1
61+
- @badaitech/chaingraph-trpc@0.1.24-dev.1
62+
63+
## 0.1.24-dev.0
64+
65+
### Patch Changes
66+
67+
- 639038b: Redevelop gate node, now it handles complex types much better. Add LLM Call with structured output node. Add basic value Object node with mutable schema. Rename BadAI to ArchAI nodes and category. Add math And node. Add yaml helper to handlebars template. Add OKX nodes to build whole swap flow. Add PortCreate, PortDelete events to the node. Improve here and there core port, nodes, flow logic as well as port plugins.
68+
- Updated dependencies [639038b]
69+
- @badaitech/chaingraph-nodes@0.1.24-dev.0
70+
- @badaitech/chaingraph-types@0.1.24-dev.0
71+
- @badaitech/chaingraph-trpc@0.1.24-dev.0
72+
373
## 0.1.23
474

575
### Patch Changes

apps/chaingraph-backend/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-backend",
33
"type": "module",
4-
"version": "0.1.23",
4+
"version": "0.1.24",
55
"private": false,
66
"description": "Backend server for the Chaingraph project",
77
"license": "BUSL-1.1",
@@ -35,6 +35,7 @@
3535
"@badaitech/chaingraph-trpc": "workspace:*",
3636
"@badaitech/chaingraph-types": "workspace:*",
3737
"@types/ws": "^8.18.1",
38+
"bigint-crypto-utils": "^3.3.0",
3839
"cors": "^2.8.5",
3940
"dotenv": "^16.4.7",
4041
"esm": "^3.2.25",
@@ -45,6 +46,7 @@
4546
"devDependencies": {
4647
"@badaitech/typescript-config": "workspace:*",
4748
"@types/cors": "^2.8.17",
48-
"@types/node": "^22.14.0"
49+
"@types/node": "^22.14.0",
50+
"vite-plugin-top-level-await": "^1.5.0"
4951
}
5052
}

apps/chaingraph-backend/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ export default defineConfig({
2121
formats: ['cjs'],
2222
},
2323
outDir: 'dist',
24+
rollupOptions: {
25+
external: ['bigint-crypto-utils'],
26+
},
2427
},
2528
})

apps/chaingraph-frontend/CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
11
# @badaitech/chaingraph-frontend
22

3+
## 0.1.24
4+
5+
### Patch Changes
6+
7+
- eb4cf29: Add the ArchAI integration tab with configurable session and nodes context. When execution ID exists then disable all port inputs. Merge execution node and editor nodes UI to make it interactive after execution complete. Add BadAI nodes in the hidden category as fallback. Fix ports serialize/deserialize undefined and null values with fallback. Recursive open Any port underlying type. Improve LLM call with structured output node. Now it work well with Groq and any other LLM's. Add retries with error feedback. Other changes and bug fixes.
8+
- Small fixes for the session token in root provider and get variable node
9+
- d5409b8: Fix backend build
10+
- 639038b: Redevelop gate node, now it handles complex types much better. Add LLM Call with structured output node. Add basic value Object node with mutable schema. Rename BadAI to ArchAI nodes and category. Add math And node. Add yaml helper to handlebars template. Add OKX nodes to build whole swap flow. Add PortCreate, PortDelete events to the node. Improve here and there core port, nodes, flow logic as well as port plugins.
11+
- d5409b8: Fix deserialization
12+
- d5409b8: Fix enum deserialize
13+
- Updated dependencies [eb4cf29]
14+
- Updated dependencies
15+
- Updated dependencies [d5409b8]
16+
- Updated dependencies [639038b]
17+
- Updated dependencies [d5409b8]
18+
- Updated dependencies [d5409b8]
19+
- @badaitech/chaingraph-nodes@0.1.24
20+
- @badaitech/chaingraph-types@0.1.24
21+
- @badaitech/chaingraph-trpc@0.1.24
22+
- @badaitech/badai-api@0.1.24
23+
24+
## 0.1.24-dev.4
25+
26+
### Patch Changes
27+
28+
- Add the ArchAI integration tab with configurable session and nodes context. When execution ID exists then disable all port inputs. Merge execution node and editor nodes UI to make it interactive after execution complete. Add BadAI nodes in the hidden category as fallback. Fix ports serialize/deserialize undefined and null values with fallback. Recursive open Any port underlying type. Improve LLM call with structured output node. Now it work well with Groq and any other LLM's. Add retries with error feedback. Other changes and bug fixes.
29+
- Updated dependencies
30+
- @badaitech/chaingraph-nodes@0.1.24-dev.4
31+
- @badaitech/chaingraph-types@0.1.24-dev.4
32+
- @badaitech/chaingraph-trpc@0.1.24-dev.4
33+
- @badaitech/badai-api@0.1.24-dev.4
34+
35+
## 0.1.24-dev.3
36+
37+
### Patch Changes
38+
39+
- Fix enum deserialize
40+
- Updated dependencies
41+
- @badaitech/chaingraph-nodes@0.1.24-dev.3
42+
- @badaitech/chaingraph-types@0.1.24-dev.3
43+
- @badaitech/chaingraph-trpc@0.1.24-dev.3
44+
45+
## 0.1.24-dev.2
46+
47+
### Patch Changes
48+
49+
- Fix deserialization
50+
- Updated dependencies
51+
- @badaitech/chaingraph-nodes@0.1.24-dev.2
52+
- @badaitech/chaingraph-types@0.1.24-dev.2
53+
- @badaitech/chaingraph-trpc@0.1.24-dev.2
54+
55+
## 0.1.24-dev.1
56+
57+
### Patch Changes
58+
59+
- Fix backend build
60+
- Updated dependencies
61+
- @badaitech/chaingraph-nodes@0.1.24-dev.1
62+
- @badaitech/chaingraph-types@0.1.24-dev.1
63+
- @badaitech/chaingraph-trpc@0.1.24-dev.1
64+
65+
## 0.1.24-dev.0
66+
67+
### Patch Changes
68+
69+
- 639038b: Redevelop gate node, now it handles complex types much better. Add LLM Call with structured output node. Add basic value Object node with mutable schema. Rename BadAI to ArchAI nodes and category. Add math And node. Add yaml helper to handlebars template. Add OKX nodes to build whole swap flow. Add PortCreate, PortDelete events to the node. Improve here and there core port, nodes, flow logic as well as port plugins.
70+
- Updated dependencies [639038b]
71+
- @badaitech/chaingraph-nodes@0.1.24-dev.0
72+
- @badaitech/chaingraph-types@0.1.24-dev.0
73+
- @badaitech/chaingraph-trpc@0.1.24-dev.0
74+
375
## 0.1.23
476

577
### Patch Changes

apps/chaingraph-frontend/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
<!--
2+
~ Copyright (c) 2025 BadLabs
3+
~
4+
~ Use of this software is governed by the Business Source License 1.1 included in the file LICENSE.txt.
5+
~
6+
~ As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, version 2.0.
7+
-->
8+
19
<!doctype html>
210
<html lang="en">
311
<head>
412
<meta charset="UTF-8" />
513
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
14+
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" />-->
15+
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
716
<title>BadAI Chaingraph V2</title>
817
</head>
918
<body>

apps/chaingraph-frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-frontend",
33
"type": "module",
4-
"version": "0.1.23",
4+
"version": "0.1.24",
55
"private": false,
66
"description": "Frontend application for the Chaingraph project",
77
"license": "BUSL-1.1",
@@ -56,6 +56,7 @@
5656
"react-dom": "^19.0.0"
5757
},
5858
"dependencies": {
59+
"@badaitech/badai-api": "workspace:*",
5960
"@badaitech/chaingraph-nodes": "workspace:*",
6061
"@badaitech/chaingraph-trpc": "workspace:*",
6162
"@badaitech/chaingraph-types": "workspace:*",
Lines changed: 14 additions & 0 deletions
Loading

apps/chaingraph-frontend/src/App.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, version 2.0.
77
*/
88

9+
import { useArchAIConfig } from '@/components/sidebar/tabs/archai-integration'
910
import { NodeRegistry } from '@badaitech/chaingraph-types'
1011
import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom'
1112
import SuperJSON from 'superjson'
@@ -14,6 +15,12 @@ import { RootProvider } from './exports'
1415
import { FlowLayout } from './FlowLayout'
1516

1617
function App() {
18+
const { config } = useArchAIConfig()
19+
20+
if (!config) {
21+
return <div>Loading ArchAI config...</div>
22+
}
23+
1724
return (
1825
<BrowserRouter>
1926
<Routes>
@@ -23,6 +30,7 @@ function App() {
2330
trpcURL={appConfig.chaingraphTRPCWSUrl}
2431
superjsonCustom={SuperJSON}
2532
nodeRegistry={NodeRegistry.getInstance()}
33+
sessionToken={config.userSession || import.meta.env.VITE_CHAINGRAPH_SESSION_TOKEN || 'dev'}
2634
/>
2735
)}
2836
>

0 commit comments

Comments
 (0)