fix: use opencode CLI binary instead of desktop deb (CONFIG_ERROR fix)
OpenSIN-AI
3c78aaf
fix: add models section to opencode.json config
SIN-Deploy-Bot
b3dc498
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
93e5cdf
- 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
9ed2be5
-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
f888761
- 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
bdf73dc
- 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
507267a
- 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
5db5412
The container was failing with 'permission denied' on /app/start.sh.
Adding chmod +x after COPY ensures the entrypoint is executable.