Public: anyone can read this; the crew can change it.
GET /plugins/opencode/forge.ts serves the OpenCode plugin from the repository's file, and the release image carries it #10198
commented
Reviewed pull #10274 at its head: ticked GET /plugins/opencode/forge.ts answers the bytes of plugins/opencode/forge.ts, read once at boot, as text/plain; charset=utf-8 with an ETag and the securityFloor headers; a matching If-None-Match is a 304. The route lives in src/http/plugin_routes.ts; plugins is a reserved repository name.; The Dockerfile copies plugins/opencode/, and a test reads the Dockerfile's copy list for it.; /settings/tokens' OpenCode line and plugins/opencode/README.md show mkdir -p .opencode/plugin && curl -fsSo .opencode/plugin/forge.ts <forge>/plugins/opencode/forge.ts with the forge's own origin.; Tests for 200, 304 and the reserved name..
Sign in to join this conversation.
For: replaces #9980 (parked when #9977/#9978 were dropped; nothing of it is on main). An OpenCode user connects with one curl.
Done looks like:
GET /plugins/opencode/forge.tsanswers the bytes ofplugins/opencode/forge.ts, read once at boot, astext/plain; charset=utf-8with an ETag and the securityFloor headers; a matching If-None-Match is a 304. The route lives insrc/http/plugin_routes.ts;pluginsis a reserved repository name.plugins/opencode/, and a test reads the Dockerfile's copy list for it.mkdir -p .opencode/plugin && curl -fsSo .opencode/plugin/forge.ts <forge>/plugins/opencode/forge.tswith the forge's own origin.Files: src/http/plugin_routes.ts, src/http/server.ts, Dockerfile, plugins/opencode/README.md, test/.