Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,49 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: ["20", "22"]
node: ["22", "24"]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2

- name: Install dependencies
run: npm ci
run: bun install --frozen-lockfile

- name: Check (tsgo + biome)
run: npm run check
run: bun run check

- name: Unit tests
run: npm test
run: bun run test

- name: Package smoke
run: npm pack --dry-run

npm-consumer:
name: npm-consumer
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Node 22
uses: actions/setup-node@v7
with:
node-version: "22"
cache: npm

- name: Install dependencies
run: npm ci

- name: Unit tests
run: npm test
13 changes: 8 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ Conventions for human contributors and AI agents working on this repository.

## Commands

- `npm install` — install dependencies (peer + dev). Run after clone.
- `npm test` — run vitest test suite once.
- `npm run typecheck` — strict TypeScript check (no emit).
- `npm run check` — type check + biome.
- `bun install` — install dev dependencies (Bun 1.4.2, `bun.lock`). Run after clone.
- `bun run test` — run vitest test suite once (tests execute on Node).
- `bun run typecheck` — strict TypeScript check (no emit).
- `bun run check` — type check + biome.
- `npm install --package-lock-only --ignore-scripts` — refresh
`package-lock.json` after any dependency change; commit both lockfiles.
CI also runs `npm ci && npm test` as the npm consumer smoke.
- `pi -e ./src/index.ts` — load the extension into a local pi session for
manual smoke testing.

Expand Down Expand Up @@ -45,7 +48,7 @@ Conventions for human contributors and AI agents working on this repository.
shared branches.
- No new dependency on omo source paths. The package is standalone.
- No new dependency on pi-coding-agent internal modules outside the
documented public extension API in `@mariozechner/pi-coding-agent`.
documented public extension API in `@earendil-works/pi-coding-agent`.
- Don't bypass the manager's refCount accounting. Always acquire via
`withLspClient` (or `manager.getClient` + `releaseClient` paired in a
`finally`) so idle reaping and shutdown work correctly.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2026-09-24

### Added

- Per-server `requestTimeoutMs` and `initTimeoutMs` overrides in
`.pi/lsp-client.json` / `~/.pi/lsp-client.json`
([#5](https://github.com/code-yeongyu/pi-lsp-client/pull/5), thanks
[@mixxer](https://github.com/mixxer)). The overrides now reach the tool
resolution path, and only finite positive numbers are accepted.

### Fixed

- `/lsp warmup <id>` resolves ids through the merged server list, so custom
servers from `.pi/lsp-client.json` can be warmed up
([#4](https://github.com/code-yeongyu/pi-lsp-client/issues/4)).

### Changed

- `vscode-jsonrpc` `^8.2.1` -> `^9.0.2` (major). The transport imports the
`vscode-jsonrpc/node` subpath export.
- Dev dependencies pinned exact: `@biomejs/biome` 2.5.5 -> 2.5.14, `vitest`
^4.1.5 -> 5.0.1, `typescript` ^7.0.2 -> 7.0.2, `@types/node` ^22.10.5 ->
26.6.2, `@typescript/native-preview` ^7.0.0-dev.20260120.1 ->
7.0.0-dev.20260707.2. Added `@earendil-works/pi-ai`,
`@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` 0.87.1 as
dev dependencies so tests run against the current upstream runtime.
- Peer dependencies are limited to `@earendil-works/pi-*` (`*`). The
`typebox` peer was dropped; `Type` is imported from `@earendil-works/pi-ai`.
- `engines.node` `>=20.0.0` -> `>=22.19.0`, matching `pi-coding-agent`.
- Biome config migrated to the 2.5.14 schema.
- CI runs on Bun 1.4.2 (`bun install --frozen-lockfile`, `bun run check`,
`bun run test`, `npm pack --dry-run`) across ubuntu/macos x node 22/24,
plus an `npm ci && npm test` consumer job. `bun.lock` added next to
`package-lock.json`.

## [0.1.0]

Initial version (never tagged).

### Added

- Initial release porting omo's LSP tool stack as a pi-coding-agent extension.
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Pick whichever route fits:

```bash
# 1. From npm (once published)
pi install npm:@code-yeongyu/pi-lsp-client
pi install npm:pi-lsp-client

# 2. From git (once the repository is pushed)
pi install git:github.com/code-yeongyu/pi-lsp-client
Expand Down Expand Up @@ -214,13 +214,15 @@ Add custom servers by creating either:
```bash
git clone https://github.com/code-yeongyu/pi-lsp-client
cd pi-lsp-client
npm install # install dev + peer dependencies
npm test # run vitest
npm run typecheck # strict tsc --noEmit
npm run check # tsc + biome
bun install # install dev dependencies (Bun 1.4.2, bun.lock)
bun run test # run vitest (tests execute on Node)
bun run typecheck # strict tsgo --noEmit
bun run check # tsgo + biome
pi -e ./src/index.ts # smoke-test inside a real pi session
```

Bun is the dev and CI toolchain; the extension runtime stays Node-only. `package-lock.json` is kept in sync so `npm ci && npm test` also works (CI runs it as an npm-consumer job). Requires Node >= 22.19.0.

The test suite uses vitest. Test descriptions follow `#given .. #when .. #then` style; bodies use plain `// given / // when / // then` comments. No `any`, no enums.

## License
Expand Down
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.14/schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"preset": "recommended",
"style": {
"noNonNullAssertion": "error",
"useImportType": "error",
Expand Down
Loading
Loading