opencode/packages/www
Shoubhit Dash fbd9feda6a refactor(session): diff turns by user message
A turn is the assistant steps that follow a user message up to the next user message, so a steer is its own turn. That is fully derivable from session_message, so the session_turn projection, its migration, the turn list route, and the Session.Turn contract go away. session.diff takes messageID (default: newest user message) plus an optional to for contiguous ranges, resolves the range's Location from location-switched messages, and only compares against the working copy while the Session is actively executing. Shared missingMessage and failedSnapshot handler helpers replace the inlined mappings.
2026-09-07 21:40:33 +05:30
..
public refactor(session): diff turns by user message 2026-09-07 21:40:33 +05:30
script feat(www): serve cached markdown documentation 2026-08-25 00:34:34 -04:00
src feat(session): add turn list and turn diff routes 2026-09-07 21:01:39 +05:30
.gitignore fix(www): generate CLI schema without tracking it (#45080) 2026-08-25 23:54:07 +02:00
AGENTS.md docs: expand plugin guides 2026-08-24 18:10:40 -04:00
astro.config.ts feat(www): rebuild site with Astro (#44274) 2026-08-22 19:49:47 -04:00
openapi.json refactor(session): diff turns by user message 2026-09-07 21:40:33 +05:30
package.json fix(www): generate CLI schema without tracking it (#45080) 2026-08-25 23:54:07 +02:00
README.md feat(www): rebuild site with Astro (#44274) 2026-08-22 19:49:47 -04:00
tsconfig.json feat(www): rebuild site with Astro (#44274) 2026-08-22 19:49:47 -04:00
wrangler.jsonc feat(www): serve cached markdown documentation 2026-08-25 00:34:34 -04:00

OpenCode website

The standard Astro website for OpenCode. The only deployment-specific path is the base setting in astro.config.ts; application code uses import.meta.env.BASE_URL.

  • src/pages/ owns website routes.
  • src/docs/ is the self-contained documentation feature rendered under /docs.
  • /install proxies the current installer.
  • /openapi.json serves the generated OpenAPI specification.

The deployment currently sets base: "/v2". The v2.opencode.ai alias is handled by a Cloudflare Redirect Rule outside this project.

Development

From this directory, run:

bun dev

The local URL includes the base configured in astro.config.ts.

Verification

bun typecheck
bun run check:generated
bun run build