Port the backend lifecycle, generated plugins, event aggregation,
schedules, worktrees, provider credentials, MCP, config handling, the
frontend chat model, and the ocm CLI to OpenCode 2.
Adopt @opencode/client 2.0.15 as the single typed V2 API contract,
require OpenCode 2.0.0 or newer (pinned 2.0.15), and delete every
V1-only code path.
* fix(lsp): Fixes pyright LSP initialization timeout
* test(lsp): Add unit tests for bin directory initialization
- Add reinitializeBinDirectory() public method for testing
- Add 7 comprehensive test cases
- Cover success scenarios, error handling, and edge cases
- Achieve 100% code and branch coverage
* Refactor OpenCode server for testability and fix bin directory tests
* Standardize test ENV mocks and modernize imports
---------
Co-authored-by: Niu Shuai <guisu2010@gmail.com>