@@ -144,10 +144,11 @@ async function getFeatureFrontendFiles(featureId: string) {
144144}
145145
146146const integrationsFolderPath = "../../../integrations" ;
147+ const middlewaresFolderPath = "../../../middlewares" ;
147148const agentFilesMapper : Record < string , ( agentKeys : string [ ] ) => Record < string , string [ ] > > = {
148149 "middleware-starter" : ( ) => ( {
149150 agentic_chat : [
150- path . join ( __dirname , integrationsFolderPath , `/middleware-starter/src/index.ts` ) ,
151+ path . join ( __dirname , middlewaresFolderPath , `/middleware-starter/src/index.ts` ) ,
151152 ] ,
152153 } ) ,
153154 "pydantic-ai" : ( agentKeys : string [ ] ) => {
@@ -158,7 +159,7 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
158159 path . join (
159160 __dirname ,
160161 integrationsFolderPath ,
161- `/pydantic-ai/examples/server/api/${ agentId } .py` ,
162+ `/pydantic-ai/python/ examples/server/api/${ agentId } .py` ,
162163 ) ,
163164 ] ,
164165 } ) ,
@@ -170,7 +171,7 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
170171 path . join (
171172 __dirname ,
172173 integrationsFolderPath ,
173- `/server-starter/server/ python/example_server/__init__.py` ,
174+ `/server-starter/python/examples /example_server/__init__.py` ,
174175 ) ,
175176 ] ,
176177 } ) ,
@@ -182,7 +183,7 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
182183 path . join (
183184 __dirname ,
184185 integrationsFolderPath ,
185- `/server-starter-all-features/server/ python/example_server/${ agentId } .py` ,
186+ `/server-starter-all-features/python/examples /example_server/${ agentId } .py` ,
186187 ) ,
187188 ] ,
188189 } ) ,
@@ -194,37 +195,14 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
194195 path . join (
195196 __dirname ,
196197 integrationsFolderPath ,
197- `/mastra/example /src/mastra/agents/weather-agent.ts` ,
198+ `/mastra/typescript/examples /src/mastra/agents/weather-agent.ts` ,
198199 ) ,
199200 ] ,
200201 backend_tool_rendering : [
201202 path . join (
202203 __dirname ,
203204 integrationsFolderPath ,
204- `/mastra/example/src/mastra/agents/backend-tool-rendering.ts` ,
205- ) ,
206- ] ,
207- tool_based_generative_ui : [
208- path . join (
209- __dirname ,
210- integrationsFolderPath ,
211- `/mastra/example/src/mastra/agents/haiku-agent.ts` ,
212- ) ,
213- ] ,
214- } ) ,
215- "mastra-agent-lock" : ( ) => ( {
216- agentic_chat : [
217- path . join (
218- __dirname ,
219- integrationsFolderPath ,
220- `/mastra/example/src/mastra/agents/weather-agent.ts` ,
221- ) ,
222- ] ,
223- backend_tool_rendering : [
224- path . join (
225- __dirname ,
226- integrationsFolderPath ,
227- `/mastra/example/src/mastra/agents/backend-tool-rendering.ts` ,
205+ `/mastra/typescript/examples/src/mastra/agents/backend-tool-rendering.ts` ,
228206 ) ,
229207 ] ,
230208 tool_based_generative_ui : [
@@ -235,9 +213,21 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
235213 ) ,
236214 ] ,
237215 } ) ,
216+
217+ "mastra-agent-local" : ( agentKeys : string [ ] ) => {
218+ return agentKeys . reduce (
219+ ( acc , agentId ) => ( {
220+ ...acc ,
221+ [ agentId ] : [ path . join ( __dirname , '../src/mastra/index.ts' ) ]
222+ } ) ,
223+ { } ,
224+ ) ;
225+ } ,
226+
238227 "vercel-ai-sdk" : ( ) => ( {
239228 agentic_chat : [ path . join ( __dirname , integrationsFolderPath , `/vercel-ai-sdk/src/index.ts` ) ] ,
240229 } ) ,
230+
241231 langgraph : ( agentKeys : string [ ] ) => {
242232 return agentKeys . reduce (
243233 ( acc , agentId ) => ( {
@@ -246,12 +236,12 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
246236 path . join (
247237 __dirname ,
248238 integrationsFolderPath ,
249- `/langgraph/examples/ python/agents/${ agentId } /agent.py` ,
239+ `/langgraph/python/examples /agents/${ agentId } /agent.py` ,
250240 ) ,
251241 path . join (
252242 __dirname ,
253243 integrationsFolderPath ,
254- `/langgraph/examples/ typescript/src/agents/${ agentId } /agent.ts` ,
244+ `/langgraph/typescript/examples /src/agents/${ agentId } /agent.ts` ,
255245 ) ,
256246 ] ,
257247 } ) ,
@@ -266,12 +256,12 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
266256 path . join (
267257 __dirname ,
268258 integrationsFolderPath ,
269- `/langgraph/examples/ python/agents/${ agentId } /agent.py` ,
259+ `/langgraph/python/examples /agents/${ agentId } /agent.py` ,
270260 ) ,
271261 path . join (
272262 __dirname ,
273263 integrationsFolderPath ,
274- `/langgraph/examples/ typescript/src/agents/${ agentId } /agent.ts` ,
264+ `/langgraph/typescript/examples /src/agents/${ agentId } /agent.ts` ,
275265 ) ,
276266 ] ,
277267 } ) ,
@@ -286,15 +276,29 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
286276 path . join (
287277 __dirname ,
288278 integrationsFolderPath ,
289- `/langgraph/examples/ python/agents/${ agentId } /agent.py` ,
279+ `/langgraph/python/examples /agents/${ agentId } /agent.py` ,
290280 ) ,
291281 ] ,
292282 } ) ,
293283 { } ,
294284 ) ;
295285 } ,
296286 'spring-ai' : ( ) => ( { } ) ,
297- agno : ( ) => ( { } ) ,
287+ agno : ( agentKeys : string [ ] ) => {
288+ return agentKeys . reduce (
289+ ( acc , agentId ) => ( {
290+ ...acc ,
291+ [ agentId ] : [
292+ path . join (
293+ __dirname ,
294+ integrationsFolderPath ,
295+ `/agno/python/examples/server/api/${ agentId } .py` ,
296+ ) ,
297+ ] ,
298+ } ) ,
299+ { } ,
300+ ) ;
301+ } ,
298302 "llama-index" : ( agentKeys : string [ ] ) => {
299303 return agentKeys . reduce (
300304 ( acc , agentId ) => ( {
@@ -303,7 +307,7 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
303307 path . join (
304308 __dirname ,
305309 integrationsFolderPath ,
306- `/llamaindex/server-py /server/routers/${ agentId } .py` ,
310+ `/llama-index/python/examples /server/routers/${ agentId } .py` ,
307311 ) ,
308312 ] ,
309313 } ) ,
@@ -318,7 +322,7 @@ const agentFilesMapper: Record<string, (agentKeys: string[]) => Record<string, s
318322 path . join (
319323 __dirname ,
320324 integrationsFolderPath ,
321- `/crewai /python/ag_ui_crewai/examples/${ agentId } .py` ,
325+ `/crew-ai /python/ag_ui_crewai/examples/${ agentId } .py` ,
322326 ) ,
323327 ] ,
324328 } ) ,
0 commit comments