opencode/packages/server/script
Filip Hejmowski 9e8ed6f33e fix(core): speed up location boot and VCS routes on Windows
Plugin activation awaits the VCS branch refresh and the location watcher's
repository probe, so every Location boot waited on three to four sequential
git rounds before the agent, model, provider and integration lists answered.
Each round costs ~40ms on Windows.

- Read the remote list with origin's HEAD in one round, and local branches
  with init.defaultBranch in one more only when no remote HEAD names the
  default branch.
- Cache repository discovery by the .git metadata fingerprint, as
  Project.resolve already does.
- vcs.status no longer checks HEAD before listing; vcs.diff fetches the
  batched patch with the change list and reads HEAD with the default branch.
- Look up commands on Windows with one stat per PATHEXT extension instead of
  one per case, without throwing on every miss.

Adds packages/server/script/benchmark-server.ts, which boots
`opencode serve` from any checkout and replays a client opening a location.
2026-10-30 11:20:24 +01:00
..
benchmark-server.ts fix(core): speed up location boot and VCS routes on Windows 2026-10-30 11:20:24 +01:00
build.ts fix(sdk): support Node package imports (#49810) 2026-09-18 13:10:59 -07:00
pack.ts ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
workerd-probe.ts feat(server): workerd runtime profile and SDK workerd entrypoint (#41918) 2026-08-12 14:07:56 -04:00