Skip to content

Commit a6fb301

Browse files
authored
Merge pull request #169 from badaitech/feat/claude-extended-thinking-with-execution-storage
[WIP] Release v0.2.0. Claude extended thinking, execution storage, secret nodes
2 parents 8bb3693 + 5ce5d4b commit a6fb301

268 files changed

Lines changed: 19258 additions & 2472 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.

.dockerignore

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Dependencies
2+
node_modules/
3+
**/node_modules/
4+
.pnpm-store/
5+
6+
# Build outputs
7+
dist/
8+
build/
9+
out/
10+
.next/
11+
.turbo/
12+
**/dist/
13+
**/build/
14+
**/.turbo/
15+
16+
# Testing
17+
coverage/
18+
.nyc_output/
19+
**/coverage/
20+
**/.nyc_output/
21+
22+
# Development
23+
.env.local
24+
.env.development.local
25+
.env.test.local
26+
.env.production.local
27+
*.log
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
pnpm-debug.log*
32+
33+
# IDE
34+
.vscode/
35+
.idea/
36+
*.swp
37+
*.swo
38+
*.swn
39+
*.bak
40+
.DS_Store
41+
42+
# Git
43+
.git/
44+
.gitignore
45+
.gitattributes
46+
47+
# CI/CD
48+
.github/
49+
.gitlab-ci.yml
50+
.travis.yml
51+
52+
# Documentation
53+
*.md
54+
docs/
55+
LICENSE*
56+
CHANGELOG*
57+
58+
# Docker
59+
Dockerfile*
60+
docker-compose*.yml
61+
.dockerignore
62+
63+
# Temporary files
64+
tmp/
65+
temp/
66+
*.tmp
67+
*.temp
68+
.cache/
69+
70+
# OS files
71+
Thumbs.db
72+
desktop.ini
73+
74+
# Project specific
75+
.changeset/
76+
.husky/
77+
storybook-static/
78+
*.storybook.log
79+
.eslintcache
80+
.prettiercache
81+
82+
# Test files
83+
*.test.ts
84+
*.test.tsx
85+
*.spec.ts
86+
*.spec.tsx
87+
__tests__/
88+
e2e/
89+
90+
# Config files (keep only essential ones in image)
91+
.eslintrc*
92+
.prettierrc*
93+
vitest.config.*
94+
jest.config.*
95+
*.config.js
96+
*.config.ts
97+
!next.config.js
98+
!vite.config.ts
99+
!tsconfig.json
100+
!turbo.json
101+
102+
# Local dev files
103+
*.local
104+
local/
105+
.env
106+
107+
# Logs
108+
logs/
109+
*.log
110+
111+
# Editor directories and files
112+
.vscode/*
113+
!.vscode/extensions.json
114+
!.vscode/settings.json
115+
.idea
116+
*.suo
117+
*.ntvs*
118+
*.njsproj
119+
*.sln
120+
*.sw?
121+
122+
# macOS
123+
.DS_Store
124+
.AppleDouble
125+
.LSOverride
126+
127+
# Windows
128+
Thumbs.db
129+
ehthumbs.db
130+
Desktop.ini
131+
132+
# Linux
133+
*~
134+
.directory
135+
.Trash-*
136+
137+
# Package manager files
138+
yarn.lock
139+
package-lock.json
140+
141+
# Misc
142+
*.pem
143+
*.key
144+
*.crt
145+
*.p12
146+
.vercel
147+
.netlify
148+
149+
# Research and documentation files
150+
CLAUDE.md
151+
COMMIT_MESSAGE.md
152+
REFACTORING_PLAN.md
153+
research.md
154+
prompts/
155+
a.json
156+
a.txt
157+
asfasf.asfa
158+
mm.html

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ Use the included Docker Compose configuration to start a PostgreSQL database:
115115
docker compose up -d postgres
116116
```
117117

118-
This will start a PostgreSQL instance accessible on port 5431.
118+
This will start a PostgreSQL instance accessible on port 5432.
119119

120120
### 2. Configure Database Connection
121121

122122
Create a `.env` file in the project root with your database connection parameters based on the provided `.env.example`:
123123

124124
```
125-
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5431/postgres?sslmode=disable
125+
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable
126126
```
127127

128128
### 3. Run Database Migrations
@@ -322,8 +322,9 @@ You can manually trigger releases from the GitHub Actions tab:
322322
1. Navigate to the "Release" workflow
323323
2. Click "Run workflow"
324324
3. Choose the desired action:
325-
- Create a changeset version PR
326-
- Publish packages immediately
325+
326+
- Create a changeset version PR
327+
- Publish packages immediately
327328

328329
### Commands for Local Development
329330

apps/chaingraph-backend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TRPC_SERVER_HOST=localhost
55
TRPC_SERVER_PORT=3001
66

77
# Database Configuration
8-
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5431/postgres?sslmode=disable
8+
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable
99

1010
# Authentication Configuration
1111
AUTH_ENABLED=true

apps/chaingraph-backend/CHANGELOG.md

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

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- 2fbcfe4: Claude extended thinking with the tools usage. Execution storage with X-ray history. Secret node types.
8+
9+
### Patch Changes
10+
11+
- 2fbcfe4: DEV build
12+
- feat: Add DirectSecret types for various API keys and update SecretNode type
13+
- feat: Enhance node resizing logic with visibility and dimension checks
14+
- feat: Refactor node selection logic into a reusable hook and enhance copy/paste functionality
15+
- 2fbcfe4: feat: comprehensive copy-paste functionality with node cloning, deep structure handling, and improved execution performance
16+
- Updated dependencies [2fbcfe4]
17+
- Updated dependencies
18+
- Updated dependencies
19+
- Updated dependencies [2fbcfe4]
20+
- Updated dependencies
21+
- Updated dependencies [2fbcfe4]
22+
- @badaitech/chaingraph-nodes@0.2.0
23+
- @badaitech/chaingraph-types@0.2.0
24+
- @badaitech/chaingraph-trpc@0.2.0
25+
26+
## 0.2.0-dev.5
27+
28+
### Patch Changes
29+
30+
- feat: Refactor node selection logic into a reusable hook and enhance copy/paste functionality
31+
- Updated dependencies
32+
- @badaitech/chaingraph-nodes@0.2.0-dev.5
33+
- @badaitech/chaingraph-types@0.2.0-dev.5
34+
- @badaitech/chaingraph-trpc@0.2.0-dev.5
35+
36+
## 0.2.0-dev.4
37+
38+
### Patch Changes
39+
40+
- feat: Enhance node resizing logic with visibility and dimension checks
41+
- Updated dependencies
42+
- @badaitech/chaingraph-nodes@0.2.0-dev.4
43+
- @badaitech/chaingraph-types@0.2.0-dev.4
44+
- @badaitech/chaingraph-trpc@0.2.0-dev.4
45+
46+
## 0.2.0-dev.3
47+
48+
### Patch Changes
49+
50+
- feat: Add DirectSecret types for various API keys and update SecretNode type
51+
- Updated dependencies
52+
- @badaitech/chaingraph-nodes@0.2.0-dev.3
53+
- @badaitech/chaingraph-types@0.2.0-dev.3
54+
- @badaitech/chaingraph-trpc@0.2.0-dev.3
55+
56+
## 0.2.0-dev.2
57+
58+
### Patch Changes
59+
60+
- feat: comprehensive copy-paste functionality with node cloning, deep structure handling, and improved execution performance
61+
- Updated dependencies
62+
- @badaitech/chaingraph-nodes@0.2.0-dev.2
63+
- @badaitech/chaingraph-types@0.2.0-dev.2
64+
- @badaitech/chaingraph-trpc@0.2.0-dev.2
65+
66+
## 0.2.0-dev.1
67+
68+
### Minor Changes
69+
70+
- Claude extended thinking with the tools usage. Execution storage with X-ray history. Secret node types.
71+
72+
### Patch Changes
73+
74+
- Updated dependencies
75+
- @badaitech/chaingraph-nodes@0.2.0-dev.1
76+
- @badaitech/chaingraph-types@0.2.0-dev.1
77+
- @badaitech/chaingraph-trpc@0.2.0-dev.1
78+
79+
## 0.1.29-dev.0
80+
81+
### Patch Changes
82+
83+
- DEV build
84+
- Updated dependencies
85+
- @badaitech/chaingraph-nodes@0.1.29-dev.0
86+
- @badaitech/chaingraph-types@0.1.29-dev.0
87+
- @badaitech/chaingraph-trpc@0.1.29-dev.0
88+
389
## 0.1.28
490

591
### Patch Changes

apps/chaingraph-backend/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ChainGraph Backend can be configured through environment variables. You can set
8282

8383
| Variable | Description | Default | Example |
8484
| -------------- | ---------------------------- | ------------------------------------------------------------- | ----------------------------------------------------------- |
85-
| `DATABASE_URL` | PostgreSQL connection string | `postgres://postgres@localhost:5431/postgres?sslmode=disable` | `postgres://user:password@host:5432/dbname?sslmode=require` |
85+
| `DATABASE_URL` | PostgreSQL connection string | `postgres://postgres@localhost:5432/postgres?sslmode=disable` | `postgres://user:password@host:5432/dbname?sslmode=require` |
8686

8787
#### Authentication Settings
8888

@@ -96,6 +96,7 @@ ChainGraph Backend can be configured through environment variables. You can set
9696
#### Example .env Files
9797

9898
**Basic Configuration:**
99+
99100
```env
100101
# Basic server setup
101102
TRPC_SERVER_HOST=localhost
@@ -104,6 +105,7 @@ DATABASE_URL=postgres://postgres:postgres@localhost:5432/chaingraph
104105
```
105106

106107
**Production Configuration:**
108+
107109
```env
108110
# Production setup with authentication
109111
TRPC_SERVER_HOST=0.0.0.0
@@ -118,11 +120,12 @@ BADAI_API_URL=https://api.badai.com/graphql
118120
```
119121

120122
**Development Configuration:**
123+
121124
```env
122125
# Development setup
123126
TRPC_SERVER_HOST=localhost
124127
TRPC_SERVER_PORT=3001
125-
DATABASE_URL=postgres://postgres@localhost:5431/postgres?sslmode=disable
128+
DATABASE_URL=postgres://postgres@localhost:5432/postgres?sslmode=disable
126129
AUTH_ENABLED=true
127130
AUTH_DEV_MODE=true
128131
```

apps/chaingraph-backend/package.json

Lines changed: 1 addition & 1 deletion
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.28",
4+
"version": "0.2.0",
55
"private": false,
66
"description": "Backend server for the Chaingraph project",
77
"license": "BUSL-1.1",

apps/chaingraph-backend/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const appConfig = {
2121
pongWaitMs: Number.parseInt(process.env.TRPC_SERVER_KEEP_ALIVE_PONG_WAIT_MS || '10000', 10),
2222
},
2323

24-
databaseUrl: process.env.DATABASE_URL || 'postgres://postgres@localhost:5431/postgres?sslmode=disable',
24+
databaseUrl: process.env.DATABASE_URL || 'postgres://postgres@localhost:5432/postgres?sslmode=disable',
2525
authEnabled: process.env.AUTH_ENABLED === 'true',
2626
authDevMode: process.env.AUTH_DEV_MODE === 'true',
2727
badAIAuthEnabled: process.env.BADAI_AUTH_ENABLED === 'true',

apps/chaingraph-backend/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
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 { setMaxListeners } from 'node:events'
10+
import process from 'node:process'
911
import { init } from '@badaitech/chaingraph-trpc/server'
1012
import { prettyPrintConfig } from './config'
1113
import { setupPolyfills } from './setup-polyfills'
1214
import { wsServer } from './ws-server'
1315
import './config'
1416

17+
setMaxListeners(100000)
18+
process.setMaxListeners(0)
19+
1520
setupPolyfills()
1621

1722
prettyPrintConfig()

0 commit comments

Comments
 (0)