- Prevents routing conflicts with API endpoints
- Root '/' now returns service info JSON with endpoint links
- More robust separation of concerns (API vs UI)
fix: add missing _public_base_url helper
SIN-Deploy-Bot
eca30a0
-agent_card endpoint requires base URL extraction from request
-adds utility function to construct correct base URL from Request object
fix: reorder routes - mount Gradio after API routes to avoid 404
SIN-Deploy-Bot
3bcb7c3
- Move app.mount('/') to end of file after all @app decorators
- This ensures /a2a/v1, /health, /.well-known/* are not shadowed by Gradio catch-all
- Standard FastAPI pattern for mixed API+Gradio apps
fix: rename app.py to main.py to avoid package import conflict
SIN-Deploy-Bot
822e7e1
- uvicorn now uses main:app instead of app:app
- Prevents Python from importing the 'app' package instead of app.py
feat: clone OpenSIN-Code repo at runtime if missing
SIN-Deploy-Bot
66c20ef
- Add git clone in start.sh using GITHUB_TOKEN
- Ensure REPO_DIR is set correctly
- Fail fast if GITHUB_TOKEN not set
- Update opencode config with correct model: opencode/qwen3.6-plus-free
fix: add execute permission for start.sh to prevent runtime crash
SIN-Deploy-Bot
4995aaa
The container was failing with 'permission denied' on /app/start.sh.
Adding chmod +x after COPY ensures the entrypoint is executable.