fix: use opencode CLI binary instead of desktop deb (CONFIG_ERROR fix)
OpenSIN-AI
404d90c
fix: add models section to opencode.json config
SIN-Deploy-Bot
cd77d2b
The opencode-qwen-auth plugin requires a 'models' section in the
provider config. Adding proper model definitions for qwen3.6-plus-free
and minimax-m2.5-free to prevent TypeError: provider.models undefined
feat: mount Gradio UI at /ui instead of root
SIN-Deploy-Bot
da23da2
- 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
a14d5ed
-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
3ce6f18
- 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
af17b2a
- 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
28bd726
- 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
8bee9cd
The container was failing with 'permission denied' on /app/start.sh.
Adding chmod +x after COPY ensures the entrypoint is executable.