opencode/services/www
Ryan Vogel 83f6623dc7 feat(tui): expose plugin-owned composer ghost text
Add ui.prompt.suggest so CLI plugins can offer a complete next-message draft without private prompt access. Temporarily replace the empty composer placeholder with a wrapped suggestion; configurable Tab acceptance inserts text without submitting, and Escape, typing, navigation, and plugin cleanup discard the offer.

Keep suggestion disposal identity-bound so stale callbacks cannot clear a newer offer. Re-measure native placeholder layout when suggestions change. Document the API and keyboard commands.

Verified: root bun run check; full TUI suite (1462 pass, 2 skip); final focused TUI checks (64 pass); website typecheck, generated-contract check and build; live dev:live/termctrl checks for acceptance, draft preservation, dismissal, typing, stale disposal, plugin reload, narrow wrapping, light/dark themes and custom bindings. Session history remained empty after acceptance.
2026-10-09 16:33:02 -04:00
..
public chore: upgrade Effect to rc.118 (#50231) 2026-10-09 01:36:06 -07:00
script docs: link v1 docs from header 2026-09-18 20:54:48 -04:00
src feat(tui): expose plugin-owned composer ghost text 2026-10-09 16:33:02 -04:00
.gitignore feat(services): organize hosted services and add public files 2026-09-07 18:34:34 -04:00
AGENTS.md feat(services): organize hosted services and add public files 2026-09-07 18:34:34 -04:00
astro.config.ts feat(services): organize hosted services and add public files 2026-09-07 18:34:34 -04:00
openapi.json chore: upgrade Effect to rc.118 (#50231) 2026-10-09 01:36:06 -07:00
package.json feat(services): organize hosted services and add public files 2026-09-07 18:34:34 -04:00
README.md feat(services): organize hosted services and add public files 2026-09-07 18:34:34 -04:00
tsconfig.json chore: enable noUnusedLocals in already-clean packages (#52849) 2026-10-02 15:23:50 -07:00
wrangler.jsonc feat(services): organize hosted services and add public files 2026-09-07 18: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