Skip to content

Commit b4c6000

Browse files
committed
updates for rebase
1 parent d1ffa7d commit b4c6000

File tree

6 files changed

+88
-25
lines changed

6 files changed

+88
-25
lines changed

typescript-sdk/apps/dojo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"eslint-config-next": "15.2.1",
8989
"tailwindcss": "^4",
9090
"tsx": "^4.7.0",
91-
"typescript": "^5"
91+
"typescript": "^5",
92+
"wait-port": "^1.1.0"
9293
}
9394
}

typescript-sdk/apps/dojo/scripts/prep-dojo-everything.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ const langgraphFastapi = {
4444
cwd: path.join(integrationsRoot, 'langgraph/python/ag_ui_langgraph/examples'),
4545
}
4646

47+
// Langgraph (Platorm {typescript})
48+
const langgraphPlatformTypescript = {
49+
command: 'pnpm install',
50+
name: 'LG Platform TS',
51+
cwd: path.join(integrationsRoot, 'langgraph/examples/typescript/'),
52+
}
53+
4754
// Llama Index
4855
const llamaIndex = {
4956
command: 'uv sync',
@@ -78,7 +85,8 @@ async function main() {
7885
serverStarterAllFeatures,
7986
agno,
8087
crewai,
81-
langgraphFastapi,
88+
// langgraphFastapi, // Disabled until build fixes
89+
langgraphPlatformTypescript,
8290
llamaIndex,
8391
mastra,
8492
pydanticAi,

typescript-sdk/apps/dojo/scripts/run-dojo-everything.js

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const concurrently = require('concurrently');
77
const gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf-8' }).trim();
88
const integrationsRoot = path.join(gitRoot, 'typescript-sdk', 'integrations');
99

10-
11-
1210
// Server Starter
1311
const serverStarter = {
1412
command: 'poetry run dev',
@@ -49,36 +47,44 @@ const langgraphFastapi = {
4947
env: {PORT: 8004},
5048
}
5149

52-
// Langgraph (Platform)
53-
const langgraph = {
50+
// Langgraph (Platform {python})
51+
const langgraphPlatformPython = {
5452
command: 'pnpx @langchain/langgraph-cli@latest dev --no-browser --port 8005',
5553
name: 'LG Platform',
56-
cwd: path.join(integrationsRoot, 'langgraph/examples'),
54+
cwd: path.join(integrationsRoot, 'langgraph/examples/python'),
5755
env: {PORT: 8005},
5856
}
5957

58+
// Langgraph (Platform {typescript})
59+
const langgraphPlatformTypescript = {
60+
command: 'pnpx @langchain/langgraph-cli@latest dev --no-browser --port 8006',
61+
name: 'LG Platform TS',
62+
cwd: path.join(integrationsRoot, 'langgraph/examples/typescript/'),
63+
env: {PORT: 8006},
64+
}
65+
6066
// Llama Index
6167
const llamaIndex = {
6268
command: 'uv run dev',
6369
name: 'Llama Index',
6470
cwd: path.join(integrationsRoot, 'llamaindex/server-py'),
65-
env: {PORT: 8006},
71+
env: {PORT: 8007},
6672
}
6773

6874
// Mastra
6975
const mastra = {
7076
command: 'npm run dev',
7177
name: 'Mastra',
7278
cwd: path.join(integrationsRoot, 'mastra/example'),
73-
env: {PORT: 8007},
79+
env: {PORT: 8008},
7480
}
7581

7682
// Pydantic AI
7783
const pydanticAi = {
7884
command: 'uv run dev',
7985
name: 'Pydantic AI',
8086
cwd: path.join(integrationsRoot, 'pydantic-ai/examples'),
81-
env: {PORT: 8008},
87+
env: {PORT: 8009},
8288
}
8389

8490
// THE ACTUAL DOJO
@@ -87,31 +93,51 @@ const dojo = {
8793
name: 'Dojo',
8894
cwd: path.join(gitRoot, 'typescript-sdk/apps/dojo'),
8995
env: {
96+
PORT: 9999,
9097
SERVER_STARTER_URL: 'http://localhost:8000',
9198
SERVER_STARTER_ALL_FEATURES_URL: 'http://localhost:8001',
9299
AGNO_URL: 'http://localhost:8002',
93100
CREW_AI_URL: 'http://localhost:8003',
94101
LANGGRAPH_FAST_API_URL: 'http://localhost:8004',
102+
// TODO: Move this to run 2 platforms for testing.
95103
LANGGRAPH_URL: 'http://localhost:8005',
96-
LLAMA_INDEX_URL: 'http://localhost:8006',
97-
MASTRA_URL: 'http://localhost:8007',
98-
PYDANTIC_AI_URL: 'http://localhost:8008',
104+
// LANGGRAPH_PLATFORM_PYTHON_URL: 'http://localhost:8005',
105+
// LANGGRAPH_PLATFORM_TYPESCRIPT_URL: 'http://localhost:8006',
106+
LLAMA_INDEX_URL: 'http://localhost:8007',
107+
MASTRA_URL: 'http://localhost:8008',
108+
PYDANTIC_AI_URL: 'http://localhost:8009',
99109
}
100110
}
101111

112+
// TODO: wire in actual tests here
113+
const e2e = {
114+
// Silly little sleep until we have a healthcheck or something on agents to know they're ready
115+
command: 'npx wait-port 9999 && sleep 10 && echo "I AM ECHOING INSTEAD OF RUNNING TESTS"',
116+
name: 'E2E',
117+
cwd: path.join(gitRoot, 'typescript-sdk/apps/dojo'),
118+
}
119+
120+
const procs = [
121+
serverStarter,
122+
serverStarterAllFeatures,
123+
agno,
124+
crewai,
125+
// langgraphFastapi, // Disabled until it runs
126+
langgraphPlatformPython,
127+
// TODO: Also run the typescript version of langgraph.
128+
langgraphPlatformTypescript,
129+
llamaIndex,
130+
mastra,
131+
pydanticAi,
132+
dojo
133+
];
134+
135+
if (process.argv.includes('--e2e')) {
136+
procs.push(e2e);
137+
}
138+
102139
async function main() {
103-
const {result} = concurrently([
104-
serverStarter,
105-
serverStarterAllFeatures,
106-
agno,
107-
crewai,
108-
langgraphFastapi,
109-
langgraph,
110-
llamaIndex,
111-
mastra,
112-
pydanticAi,
113-
dojo,
114-
]);
140+
const {result} = concurrently(procs);
115141

116142
result.then(() => process.exit(0)).catch((err) => {
117143
console.error(err);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# LangGraph API
3+
.langgraph_api
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# LangGraph API
3+
.langgraph_api

typescript-sdk/pnpm-lock.yaml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)