opencode/packages/core
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
..
script feat(core): add Claude Agent provider (#58782) 2026-10-30 06:48:35 +00:00
src fix(core): speed up location boot and VCS routes on Windows 2026-10-30 11:20:24 +01:00
test fix(core): speed up location boot and VCS routes on Windows 2026-10-30 11:20:24 +01:00
bunfig.toml refactor(core): simplify integration test fixtures (#33292) 2026-06-22 04:15:34 +00:00
drizzle.config.ts refactor(core): move database schema ownership (#29068) 2026-05-30 21:08:38 -04:00
package.json feat(core): add Claude Agent provider (#58782) 2026-10-30 06:48:35 +00:00
README.md refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
schema.json feat(core): gate scheduled prompts with shell checks (#60137) 2026-10-29 10:10:18 -07:00
sst-env.d.ts refactor: rename shared package to core (#24309) 2026-04-25 10:59:17 -04:00
tsconfig.build.json feat(core): configure package publishing 2026-08-12 09:30:34 -04:00
tsconfig.json chore: upgrade typecheck to TypeScript 7.0.2 (#56300) 2026-10-17 13:26:46 -07:00
tsconfig.tests.json chore: upgrade typecheck to TypeScript 7.0.2 (#56300) 2026-10-17 13:26:46 -07:00

@opencode/core

Core runtime services for OpenCode.