Skip to content
Open
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
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ pnpm run build
DSH_HOST_E2E=1 DSH_HOST_PREFIX=/home/you/dsh-host pnpm run test:e2e:host --run
```

On macOS the suite's temporary HOME lands under `/tmp`, which is a symlink to `/private/tmp`; the profile's relative `link:` dependencies then resolve through the symlink and miss the checkout, and the run fails at `dsh plugin … install` with "cannot resolve profile bundle". Point `TMPDIR` at a directory under the checkout first, so the HOME and the checkout share one real root:

```sh
mkdir -p node_modules/.e2e-tmp
TMPDIR="$PWD/node_modules/.e2e-tmp" DSH_HOST_E2E=1 DSH_HOST_PREFIX=/home/you/dsh-host pnpm run test:e2e:host --run
```

For the `floor` cell, use a fresh prefix whose `package.json` carries the channel's `floorOverrides` (the cordis family at the record's versions and pi with its telemetry package at the range's floor) as `"overrides"` before the install, written the same way the CI job writes it, and run the suite with `DSH_HOST_PI_CELL=floor`:

```sh
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,34 +459,34 @@ OpenCode's own Console plugin (`npx @opencode/console setup deepseek-harness`) c

**Supported: the latest release of both DeepSeek Harness channels, `rc` and `alpha`, installed with npm or shipped in the desktop app (Node 24+)**

**Support policy.** The plugin supports the **latest** release of **both** channels, as each one actually ships: `rc` is the newest build on the rc line, which the harness publishes under the `next` dist-tag ahead of `dsh@latest` (today `0.2.2-rc.3` on `next`, while `latest` is `0.2.2-rc.1`; its bridge declares pi `^1.3.0`), and `alpha` is `dsh@alpha` (today `0.2.2-alpha.3`, pi `^1.3.0`). Both run the same host core, cordis `4.1.0` on `rc` and `4.0.6-alpha.2` on `alpha`; this plugin's plane routing speaks it and the older core of the `0.2.1` builds alike, telling them apart from each configuration call's own shape, never from a version. An npm install runs pi **unpatched**, at the newest `1.x` the bridge's range admits; the desktop app ships the pi the harness's own workspace pins (`1.3.0` on both channels). CI runs the unit and offline mock suites on each channel's cluster with pi as npm resolves it (the cordis family at the versions the harness vendors) on every pull request, and on each channel's floor pi nightly; the published binary as npm installs it, cordis floating, runs in the `e2e-host` job. The plugin neither patches nor re-implements what the host's pi does: where a host's pi lacks something the gateway needs, that is a host limitation, recorded and reported upstream rather than worked around here.
**Support policy.** The plugin supports the **latest** release of **both** channels, as each one actually ships: `rc` is the newest build on the rc line, which the harness publishes under the `next` dist-tag ahead of `dsh@latest` (today `0.2.2-rc.5` on both `next` and `latest`; its bridge declares pi `^1.3.0`), and `alpha` is `dsh@alpha` (today `0.2.3-alpha.2`, pi `^1.3.0`). The channels run different host cores — cordis `4.1.0` on `rc` and `4.2.0-alpha.1` on `alpha`, which moved the root context from `ctx.root` to `Symbol.for("cordis.root")` — and this plugin's plane routing reads either core's configuration-call shape and either root spelling, telling them apart from what the host dispatches, never from a version, as it does the older core of the `0.2.1` builds. An npm install runs pi **unpatched**, at the newest `1.x` the bridge's range admits; the desktop app ships the pi the harness's own workspace pins (`1.3.0` on both channels). CI runs the unit and offline mock suites on each channel's cluster with pi as npm resolves it (the cordis family at the versions the harness vendors) on every pull request, and on each channel's floor pi nightly; the published binary as npm installs it, cordis floating, runs in the `e2e-host` job. The plugin neither patches nor re-implements what the host's pi does: where a host's pi lacks something the gateway needs, that is a host limitation, recorded and reported upstream rather than worked around here.

The harness publishes two **channels**, `alpha` and `rc`, and they are parallel tracks rather than a version ordering: semver sorts `0.2.1-rc.2` _above_ `0.2.1-alpha.5`. The plugin targets two lines on both channels: **`0.2.1`**, which both channels have moved past and the peer range still admits, and the **`0.2.2`** prereleases on both channels: `alpha` is at `0.2.2-alpha.3`, and `rc` at `0.2.2-rc.3` (published under the `next` dist-tag; `latest` carries `0.2.2-rc.1`). The test suite's default install runs `0.2.2-alpha.3`; its `rc` install runs `0.2.2-rc.3`. The `@deepseek-ai/dsh-typert-protocol` peer range says so exactly:
The harness publishes two **channels**, `alpha` and `rc`, and they are parallel tracks rather than a version ordering: semver sorts `0.2.1-rc.2` _above_ `0.2.1-alpha.5`. The plugin targets three lines on both channels: **`0.2.1`** and **`0.2.2`**, which both channels have moved past and the peer range still admits, and the newest line each channel publishes today — **`0.2.2`** on `rc` (`0.2.2-rc.5`) and **`0.2.3`** on `alpha` (`0.2.3-alpha.2`). The test suite's default install runs `0.2.3-alpha.2`; its `rc` install runs `0.2.2-rc.5`. The `@deepseek-ai/dsh-typert-protocol` peer range says so exactly:

```
>=0.2.1-alpha.1 <0.3.0 || >=0.2.2-0 <0.3.0
>=0.2.1-alpha.1 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-alpha.2 <0.2.4-0
```

The first clause covers the `0.2.1` line on both channels: its lower bound (`alpha.1`) sorts below every `rc` of the same line, so rc needs no separate entry. The second is **not** redundant — semver excludes prereleases unless a comparator in the same `major.minor.patch` tuple carries one, so `<0.3.0` alone would silently drop every `0.2.2-*` build, alpha and rc alike. Both clauses stop at `0.3.0`, which leaves the next line a separate decision rather than a silent widening.
The first clause covers the `0.2.1` line on both channels: its lower bound (`alpha.1`) sorts below every `rc` of the same line, so rc needs no separate entry. The second is **not** redundant — semver excludes prereleases unless a comparator in the same `major.minor.patch` tuple carries one, so `<0.3.0` alone would silently drop every `0.2.2-*` build, alpha and rc alike. The third does the same for the `0.2.3` line, which is alpha-only today; `alpha.2` is the first build the plugin was verified on. Every clause stops at the next line, which leaves that line a separate decision rather than a silent widening.

**The request-headers seam's floor.** On the planes, the plugin writes its session, origin and project headers through `llm-pi-ai`'s per-call header seam (`llm-pi-ai/request-headers`) and runs other plugins' contributors to it there, as `llm-pi-ai`'s own routes do. The seam first shipped in `0.2.2-alpha.3` and `0.2.2-rc.1`; `0.2.2-alpha.2` and every `0.2.1` build lack it. The range above still admits them, on purpose: the plugin detects the seam by behaviour, never by version, and on a host without it the plugin's own headers still go out, written by its fetch patch as before, while other plugins' `llm-pi-ai/request-headers` contributors do not run on the planes, because that host never calls them. Refusing those hosts at install would change nothing at runtime, so the floor is stated here rather than in the peer.

The optional `@deepseek-ai/cordis` peer follows the typert range. Each line moved the host core: the `0.2.1` builds peer `~4.0.5` (or a `4.0.5` prerelease), the `0.2.2` alphas a `4.0.6` prerelease, and the `0.2.2` rcs `~4.1.0`. A fresh install takes the cordis the **newest** admitted typert build peers on, so a cordis peer that misses it fails with `ERESOLVE`; one that misses an older line's cordis fails beside a host already installed on that line. The peer therefore admits every one of them and stops at the next tuple:
The optional `@deepseek-ai/cordis` peer follows the typert range. Each line moved the host core: the `0.2.1` builds peer `~4.0.5` (or a `4.0.5` prerelease), the `0.2.2` alphas a `4.0.6` prerelease, the `0.2.2` rcs `~4.1.0`, and the `0.2.3` alphas a `4.2.0` prerelease; `4.2.0-alpha.1` also replaced the root property with `Symbol.for("cordis.root")`. A fresh install takes the cordis the **newest** admitted typert build peers on, so a cordis peer that misses it fails with `ERESOLVE`; one that misses an older line's cordis fails beside a host already installed on that line. The peer therefore admits every one of them and stops at the next tuple:

```
~4.0.4 || >=4.0.5-0 <4.1.0 || >=4.0.6-0 <4.1.0 || ~4.1.0
~4.0.4 || >=4.0.5-0 <4.1.0 || >=4.0.6-0 <4.2.0 || >=4.2.0-alpha.1 <4.3.0-0
```

**Host limitations.** What a supported host lacks today, recorded by the test suite as `[HOST_LIMITATION]` rows (detected from the host's own answer, never from a version) and reported upstream:

- **A route-level `api: google-generative-ai` on `alpha`.** alpha's bridge validates a route's `api` against the three protocols it serves on a route, Google not among them, so a plane entry that names it is refused; rc's bridge serves it. A route-level `api` applies only to ids the catalog does not classify, so every catalog model is unaffected.
- None on either channel's current build. alpha's `0.2.3` bridge now serves a route-level `api: google-generative-ai` too, which rc's `0.2.2` line already did; the suite asserts it on each channel's install.

No known defect of this plugin's is open on a supported host: both channels' latest builds (cordis `4.0.6-alpha.2` on `alpha`, `4.1.0` on `rc`) hand configuration hooks a new shape, which the plane routing did not speak in its first cut, leaving both planes on pi-ai's own routing there; it speaks both shapes now, and the suite asserts on every host cell that both planes are this plugin's. Both builds save settings, which `0.2.2-alpha.2` as npm installed it could not, and both floors' pi (`1.3.0`) sends Gemini 4 its thinking level, which the `0.2.1` rc desktop app's pi `1.1.0` did not.
No known defect of this plugin's is open on a supported host: both channels' latest builds (cordis `4.2.0-alpha.1` on `alpha`, `4.1.0` on `rc`) hand configuration hooks a new shape, which the plane routing did not speak in its first cut, leaving both planes on pi-ai's own routing there; it speaks both shapes now, and the suite asserts on every host cell that both planes are this plugin's. The `4.2` core also moved the root context to a symbol, which the plugin reads alongside the older property. Both builds save settings, which `0.2.2-alpha.2` as npm installed it could not, and both floors' pi (`1.3.0`) sends Gemini 4 its thinking level, which the `0.2.1` rc desktop app's pi `1.1.0` did not.

| Surface | Target |
| :-- | :-- |
| **Harness line** | **`0.2.1`** and the **`0.2.2`** prereleases, `alpha` and `rc` channels alike (peer: the range above); other plugins' header contributors run on the planes from `0.2.2-alpha.3` and `0.2.2-rc.1` |
| **Host core** | `@deepseek-ai/cordis` `4.0.4` up to `4.1.x`, including the `4.0.5` and `4.0.6` prereleases (optional peer: the range above) |
| **Harness line** | **`0.2.1`**, the **`0.2.2`** prereleases on both channels, and the **`0.2.3`** alphas (peer: the range above); other plugins' header contributors run on the planes from `0.2.2-alpha.3` and `0.2.2-rc.1` |
| **Host core** | `@deepseek-ai/cordis` `4.0.4` through `4.1.0`, plus `4.2.0-alpha.1` (optional peer: the range above) |
| **Plugin package** | [`dsh-opencode-patch`](https://www.npmjs.com/package/dsh-opencode-patch) |
| **Host profile** | DSH Web profile (`patchReload: live`) |
| **Routes claimed** | `opencode`, `opencode-go` — served by the plugin's own adapter; `llm-pi-ai` keeps every other route |
Expand Down
Loading
Loading