(app_name: str)
| 490 | # TODO: remove this endpoint once build_graph_image is completed |
| 491 | @app.get("/dev/apps/{app_name}/build_graph") |
| 492 | async def get_app_info(app_name: str) -> Any: |
| 493 | runner = await self.get_runner_async(app_name) |
| 494 | |
| 495 | if not runner.app: |
| 496 | raise HTTPException( |
| 497 | status_code=404, detail=f"App not found: {app_name}" |
| 498 | ) |
| 499 | |
| 500 | # Read README.md if it exists |
| 501 | readme_content = None |
| 502 | if self.agents_dir: |
| 503 | import os |
| 504 | |
| 505 | readme_path = os.path.join(self.agents_dir, app_name, "README.md") |
| 506 | if os.path.exists(readme_path): |
| 507 | try: |
| 508 | with open(readme_path, "r", encoding="utf-8") as f: |
| 509 | readme_content = f.read() |
| 510 | except Exception as e: |
| 511 | print(f"Error reading README.md: {e}") |
| 512 | |
| 513 | return serialize_app_info(runner.app, readme_content) |
| 514 | |
| 515 | @app.get("/dev/apps/{app_name}/build_graph_image") |
| 516 | async def get_app_info_image( |
nothing calls this directly
no test coverage detected