Skip to content

[bugfix] plugin: accept later DSH 0.2 hosts in engines.dsh (#418) - #456

Open
Birfy wants to merge 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix/418-dsh-engine-range
Open

Birfy wants to merge 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix/418-dsh-engine-range

Conversation

@Birfy

@Birfy Birfy commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • plugins/deepseek-harness declared engines.dsh as the exact version 0.2.2-rc.1. DSH treats a bare version as an exact match, so installing the plugin on DSH 0.2.2-rc.5 was rejected.
  • The field is now >=0.2.2-rc.1 <0.3.0-0: a 0.2-line minimum, which is what DSH's publish guide recommends. The upper bound uses <0.3.0-0 because DSH evaluates ranges with semver.satisfies(..., { includePrerelease: true }), and a plain <0.3.0 would also admit 0.3.0-rc.1.
  • Peer dependencies on @deepseek-ai/dsh-* stay pinned at 0.2.2-rc.1. When engines.dsh is present, DSH uses that range alone for host admission and ignores those peers.
  • README (en / zh-CN) now describe the minimum range. The earlier statement that install and canvas handoff were verified on DSH 0.2.2-rc.1 is unchanged.

Linked issue

Test plan

Reproduction and regression (Node v24.22.1, semver@7.8.5, the same includePrerelease: true rule as DSH evaluatePluginCompatibility):

cd plugins/deepseek-harness
# On current main, before this change:
node --test test/engines.test.js
# 1 passed, 2 failed: engines.dsh was the exact pin, and `0.2.2-rc.5` was rejected.

# With this change:
node --test test/engines.test.js
# 3 passed. The exact pin still rejects 0.2.2-rc.5 (characterization). The declared range admits 0.2.2-rc.1, 0.2.2-rc.5, 0.2.2, 0.2.3, and 0.2.3-rc.1, and rejects 0.2.2-rc.0, 0.2.1-rc.5, 0.3.0-rc.1, and 0.3.0.

Other plugin unit tests that do not need @deepseek-ai/* also passed (client, config, operations). host.test.js and media-route.test.js were not re-run locally: this worktree does not have the plugin node_modules from npm ci, and installing them was skipped to avoid filling the box inode budget. Left to CI (DSH plugin checks).

No frontend, Python, i18n, or browser tests apply. Plugin JavaScript is unchanged.

Evidence that it works

  • N/A for UI. Admission is a manifest-range change. A live dsh plugin add on DSH 0.2.2-rc.5 was not run here (that host is not installed on this machine). The regression uses DSH's published admission rule rather than a real installer.

Provider verification

  • No model or provider calls.

Bilingual UI

  • No product UI copy changed. Only the plugin README (en / zh-CN).

Labels

  • I can't apply labels from a fork. Suggested type:bug, area:harness, area:install.

…Lab#418)

Declare a 0.2-line minimum instead of pinning the exact host version, so
DSH 0.2.2-rc.5 and other later 0.2 releases can install the plugin.
@github-actions github-actions Bot added area:harness Harness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH) area:install Install, startup and environment support type:bug Something is broken labels Nov 23, 2026
@FayeSpica

Copy link
Copy Markdown
Collaborator

@Birfy I haven’t tried the DeepSeek Harness integration in OpenDirector yet. Could you share a screenshot of what it looks like now?

@Zhangbo-cn

Copy link
Copy Markdown
Contributor

PASS 4272c71 Fixes #418

  • range checked with the repo's own semver 7.x under {includePrerelease: true}: >=0.2.2-rc.1 <0.3.0-0 admits 0.2.2-rc.1, 0.2.2-rc.5, 0.2.2, 0.2.3, 0.2.3-rc.1, and rejects 0.3.0-rc.1 and 0.3.0. The -0 suffix is what makes 0.3.0 prereleases fail, which is the point of the change
  • the regression is wired into npm test (node --test test/*.test.js) and the DSH job runs npm ci && npm test, so it is not orphaned
  • README and README.zh-CN state the same host window, and the change stays manifest-only

Ran: Release checks green on 4272c71 (13/13); the semver matrix above locally
Not run: the plugin's own npm test here (its node_modules is not installed in this checkout); a real dsh plugin add on a later 0.2 host, which the PR body already declares as out of scope

Non-blocking: peerDependencies still pins @deepseek-ai/dsh-tools to the exact 0.2.2-rc.1, while engines.dsh now admits later 0.2 hosts. npm 7+ auto-installs missing peers, so a 0.2.3 host can pull a second dsh-tools and warn on the mismatch. Saying why that cannot matter, or relaxing it to ^0.2.2-rc.1, would make the two manifests agree.

Coordinator: ping after this Reviewer PASS and green CI on this SHA. This skill does not merge.

@Zhangbo-cn

Copy link
Copy Markdown
Contributor

Follow-up evidence for 4272c71, plus a correction to my own peer-dependency note.

This machine has dsh 0.2.2-rc.5 installed, so the admission decision can be run against the real implementation instead of a hand-written semver matrix. evaluatePluginCompatibility from @deepseek-ai/dsh-app-boot (src/plugin-compatibility.ts), runtime 0.2.2-rc.5:

runtime 0.2.2-rc.5
old 0.2.2-rc.1               -> REJECTED {"engines.dsh":"0.2.2-rc.1"}
new >=0.2.2-rc.1 <0.3.0-0   -> ACCEPTED
peers only (no engines.dsh)  -> {"@deepseek-ai/dsh-tools":"0.2.2-rc.1"}

So the failing-before/passing-after claim holds at the function DSH actually calls, not only in the test's own reimplementation of the rule.

Correction to my earlier comment: I flagged the exact @deepseek-ai/dsh-tools peer pin as a possible second-version risk. The same source shows engines.dsh decides alone and peer requirements are skipped when it is present, so the pin cannot cause an install-time rejection here. The last line of the run above is the reason I still would not delete engines.dsh while leaving the peer at 0.2.2-rc.1.

On @FayeSpica's screenshot request: this diff is manifest metadata plus README text, so it changes no pixels — a screenshot of the integration would show the plugin as it already looks on main, not this change. That makes it a documentation/media gap for the plugin overall rather than a missing artifact of this fix, which is why my verdict stands. If the author does add one, it should show a dsh plugin add followed by a real tool call and its result card in DSH Web, since the current README only describes that flow in text.

Ran: evaluatePluginCompatibility on local dsh 0.2.2-rc.5 with both manifests (base bacea89 and tip 4272c71); Release checks remain green on 4272c71
Not run: dsh plugin add end to end, and any DSH session with a configured model

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:harness Harness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH) area:install Install, startup and environment support type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] DSH plugin version compatibility too strict

3 participants