Skip to content

Commit c394078

Browse files
committed
update prep/run dojo scripts
1 parent 8ee1e12 commit c394078

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,57 +44,58 @@ Examples:
4444
}
4545

4646
const gitRoot = execSync("git rev-parse --show-toplevel", { encoding: "utf-8" }).trim();
47-
const integrationsRoot = path.join(gitRoot, "typescript-sdk", "integrations");
47+
const integrationsRoot = path.join(gitRoot, "integrations");
48+
const middlewaresRoot = path.join(gitRoot, "middlewares");
4849

4950
// Define all prep targets keyed by a stable id
5051
const ALL_TARGETS = {
5152
"server-starter": {
5253
command: "poetry install",
5354
name: "Server Starter",
54-
cwd: path.join(integrationsRoot, "server-starter/server/python"),
55+
cwd: path.join(integrationsRoot, "server-starter/python/examples"),
5556
},
5657
"server-starter-all": {
5758
command: "poetry install",
5859
name: "Server AF",
59-
cwd: path.join(integrationsRoot, "server-starter-all-features/server/python"),
60+
cwd: path.join(integrationsRoot, "server-starter-all-features/python/examples"),
6061
},
6162
agno: {
6263
command: "uv sync",
6364
name: "Agno",
64-
cwd: path.join(integrationsRoot, "agno/examples"),
65+
cwd: path.join(integrationsRoot, "agno/python/examples"),
6566
},
6667
"crew-ai": {
6768
command: "poetry install",
6869
name: "CrewAI",
69-
cwd: path.join(integrationsRoot, "crewai/python"),
70+
cwd: path.join(integrationsRoot, "crew-ai/python"),
7071
},
7172
"langgraph-fastapi": {
7273
command: "poetry install",
7374
name: "LG FastAPI",
74-
cwd: path.join(integrationsRoot, "langgraph/examples/python"),
75+
cwd: path.join(integrationsRoot, "langgraph/python/examples"),
7576
env: {
7677
POETRY_VIRTUALENVS_IN_PROJECT: "false",
7778
},
7879
},
7980
"langgraph-platform-typescript": {
8081
command: "pnpm install",
8182
name: "LG Platform TS",
82-
cwd: path.join(integrationsRoot, "langgraph/examples/typescript/"),
83+
cwd: path.join(integrationsRoot, "langgraph/typescript/examples"),
8384
},
8485
"llama-index": {
8586
command: "uv sync",
8687
name: "Llama Index",
87-
cwd: path.join(integrationsRoot, "llamaindex/server-py"),
88+
cwd: path.join(integrationsRoot, "llama-index/python/examples"),
8889
},
8990
mastra: {
9091
command: "pnpm install --no-frozen-lockfile",
9192
name: "Mastra",
92-
cwd: path.join(integrationsRoot, "mastra/example"),
93+
cwd: path.join(integrationsRoot, "mastra/typescript/examples"),
9394
},
9495
"pydantic-ai": {
9596
command: "uv sync",
9697
name: "Pydantic AI",
97-
cwd: path.join(integrationsRoot, "pydantic-ai/examples"),
98+
cwd: path.join(integrationsRoot, "pydantic-ai/python/examples"),
9899
},
99100
"adk-middleware": {
100101
command: "uv sync",
@@ -104,12 +105,12 @@ const ALL_TARGETS = {
104105
"a2a-middleware": {
105106
command: "uv sync",
106107
name: "A2A Middleware",
107-
cwd: path.join(integrationsRoot, "a2a-middleware/examples"),
108+
cwd: path.join(middlewaresRoot, "a2a-middleware/examples"),
108109
},
109110
dojo: {
110111
command: "pnpm install --no-frozen-lockfile && pnpm build --filter=demo-viewer...",
111112
name: "Dojo",
112-
cwd: path.join(gitRoot, "typescript-sdk"),
113+
cwd: gitRoot,
113114
},
114115
};
115116

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

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,38 +43,39 @@ Examples:
4343
}
4444

4545
const gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf-8' }).trim();
46-
const integrationsRoot = path.join(gitRoot, 'typescript-sdk', 'integrations');
46+
const integrationsRoot = path.join(gitRoot, 'integrations');
47+
const middlewaresRoot = path.join(gitRoot, 'middlewares');
4748

4849
// Define all runnable services keyed by a stable id
4950
const ALL_SERVICES = {
5051
'server-starter': [{
5152
command: 'poetry run dev',
5253
name: 'Server Starter',
53-
cwd: path.join(integrationsRoot, 'server-starter/server/python'),
54+
cwd: path.join(integrationsRoot, 'server-starter/python/examples'),
5455
env: { PORT: 8000 },
5556
}],
5657
'server-starter-all': [{
5758
command: 'poetry run dev',
5859
name: 'Server AF',
59-
cwd: path.join(integrationsRoot, 'server-starter-all-features/server/python'),
60+
cwd: path.join(integrationsRoot, 'server-starter-all-features/python/examples'),
6061
env: { PORT: 8001 },
6162
}],
6263
'agno': [{
6364
command: 'uv run dev',
6465
name: 'Agno',
65-
cwd: path.join(integrationsRoot, 'agno/examples'),
66+
cwd: path.join(integrationsRoot, 'agno/python/examples'),
6667
env: { PORT: 8002 },
6768
}],
6869
'crew-ai': [{
6970
command: 'poetry run dev',
7071
name: 'CrewAI',
71-
cwd: path.join(integrationsRoot, 'crewai/python'),
72+
cwd: path.join(integrationsRoot, 'crew-ai/python'),
7273
env: { PORT: 8003 },
7374
}],
7475
'langgraph-fastapi': [{
7576
command: 'poetry run dev',
7677
name: 'LG FastAPI',
77-
cwd: path.join(integrationsRoot, 'langgraph/examples/python'),
78+
cwd: path.join(integrationsRoot, 'langgraph/python/examples'),
7879
env: {
7980
PORT: 8004,
8081
POETRY_VIRTUALENVS_IN_PROJECT: 'false',
@@ -83,31 +84,31 @@ const ALL_SERVICES = {
8384
'langgraph-platform-python': [{
8485
command: 'pnpx @langchain/langgraph-cli@latest dev --no-browser --host 127.0.0.1 --port 8005',
8586
name: 'LG Platform Py',
86-
cwd: path.join(integrationsRoot, 'langgraph/examples/python'),
87+
cwd: path.join(integrationsRoot, 'langgraph/python/examples'),
8788
env: { PORT: 8005 },
8889
}],
8990
'langgraph-platform-typescript': [{
9091
command: 'pnpx @langchain/langgraph-cli@latest dev --no-browser --host 127.0.0.1 --port 8006',
9192
name: 'LG Platform TS',
92-
cwd: path.join(integrationsRoot, 'langgraph/examples/typescript/'),
93+
cwd: path.join(integrationsRoot, 'langgraph/typescript/examples'),
9394
env: { PORT: 8006 },
9495
}],
9596
'llama-index': [{
9697
command: 'uv run dev',
9798
name: 'Llama Index',
98-
cwd: path.join(integrationsRoot, 'llamaindex/server-py'),
99+
cwd: path.join(integrationsRoot, 'llama-index/python/examples'),
99100
env: { PORT: 8007 },
100101
}],
101102
'mastra': [{
102103
command: 'npm run dev',
103104
name: 'Mastra',
104-
cwd: path.join(integrationsRoot, 'mastra/example'),
105+
cwd: path.join(integrationsRoot, 'mastra/typescript/examples'),
105106
env: { PORT: 8008 },
106107
}],
107108
'pydantic-ai': [{
108109
command: 'uv run dev',
109110
name: 'Pydantic AI',
110-
cwd: path.join(integrationsRoot, 'pydantic-ai/examples'),
111+
cwd: path.join(integrationsRoot, 'pydantic-ai/python/examples'),
111112
env: { PORT: 8009 },
112113
}],
113114
'adk-middleware': [{
@@ -119,31 +120,31 @@ const ALL_SERVICES = {
119120
'a2a-middleware': [{
120121
command: 'uv run buildings_management.py',
121122
name: 'A2A Middleware: Buildings Management',
122-
cwd: path.join(integrationsRoot, 'a2a-middleware/examples'),
123+
cwd: path.join(middlewaresRoot, "a2a-middleware/examples"),
123124
env: { PORT: 8011 },
124125
},
125126
{
126127
command: 'uv run finance.py',
127128
name: 'A2A Middleware: Finance',
128-
cwd: path.join(integrationsRoot, 'a2a-middleware/examples'),
129+
cwd: path.join(middlewaresRoot, "a2a-middleware/examples"),
129130
env: { PORT: 8012 },
130131
},
131132
{
132133
command: 'uv run it.py',
133134
name: 'A2A Middleware: IT',
134-
cwd: path.join(integrationsRoot, 'a2a-middleware/examples'),
135+
cwd: path.join(middlewaresRoot, "a2a-middleware/examples"),
135136
env: { PORT: 8013 },
136137
},
137138
{
138139
command: 'uv run orchestrator.py',
139140
name: 'A2A Middleware: Orchestrator',
140-
cwd: path.join(integrationsRoot, 'a2a-middleware/examples'),
141+
cwd: path.join(middlewaresRoot, "a2a-middleware/examples"),
141142
env: { PORT: 8014 },
142143
}],
143144
'dojo': [{
144145
command: 'pnpm run start',
145146
name: 'Dojo',
146-
cwd: path.join(gitRoot, 'typescript-sdk/apps/dojo'),
147+
cwd: path.join(gitRoot, 'apps/dojo'),
147148
env: {
148149
PORT: 9999,
149150
SERVER_STARTER_URL: 'http://localhost:8000',

0 commit comments

Comments
 (0)