Files
lefarcen 6788a8667b fix(dsh): support DeepSeek Harness 0.1.2-rc.1, now npm's latest (#7825)
`@deepseek-ai/dsh@0.1.2-rc.1` was published on 2026-09-03 and holds npm's
`latest` dist-tag, so it is what a user who installs without naming a version
receives. Both of our authorities rejected that line:

  - the agent def did not accept `0.1.2-rc.1`, so Settings labelled the user's
    CLI untested;
  - `packages/dsh-runtime`'s peer ranges evaluated to false for it, because
    semver admits a prerelease only against a comparator sharing its exact
    major.minor.patch and carrying a prerelease of its own — so the companion
    component could not resolve at all. That half is silent, which makes it the
    worse one.

Move the installers to `0.1.2-rc.1` with a resolution cutoff between its publish
time and any successor, add the `0.1.2-rc.N` alternative to the accepted line,
and add the matching comparator to all five dsh peers. All five, because a
single updated peer would otherwise vouch for the other four.

The Alpine fallback in install-dsh.sh named `0.1.0-rc.6` — two patch lines stale,
because nothing pointed at it when the pin moved. It now interpolates
$DSH_VERSION.

Both test files previously pinned the broken state, asserting `0.1.2-rc.1` was
rejected; they now assert the invariant and went red before any source change.
`0.2.0-rc.1` stays refused by both authorities so the widening cannot decay into
accepting everything.

`packages/dsh-runtime`'s dependencies and devDependencies stay at `0.1.1-rc.2`
on purpose: bumping them resolves a mixed-generation tree (dsh-scope and
dsh-settings stay on 0.1.0-rc.6) and wants a cordis bump too. See the PR body.

Claude-Session: https://claude.ai/code/session_01B8MaA1ABkvbnfaYUKw3UH3
2026-09-07 07:33:19 +00:00

75 lines
2.2 KiB
JSON

{
"name": "@open-design/dsh-runtime",
"version": "0.1.0",
"description": "DeepSeek Harness profile runtime for OpenDesign",
"license": "Apache-2.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"default": "./dist/index.js"
},
"./startup": {
"types": "./dist/types/startup.d.ts",
"default": "./dist/startup.js"
},
"./invariant": {
"types": "./dist/types/invariant.d.ts",
"default": "./dist/invariant.js"
},
"./cordis.patch.yml": "./cordis.patch.yml",
"./package.json": "./package.json"
},
"files": [
"dist/*.js",
"dist/types/**/*.d.ts",
"cordis.patch.yml",
"README.md"
],
"publishConfig": {
"access": "public"
},
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
}
},
"scripts": {
"build": "tsx ./clean.ts && tsx ./esbuild.config.ts && tsc -p tsconfig.json --emitDeclarationOnly",
"test": "vitest run",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.tests.json --noEmit"
},
"dependencies": {
"@deepseek-ai/dsh-cmdline": "0.1.1-rc.2",
"commander": "15.0.0"
},
"peerDependencies": {
"@deepseek-ai/cordis": ">=4.0.1",
"@deepseek-ai/cordis-plugin-loader": ">=1.0.2",
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.6 || >=0.1.1-rc.0 || >=0.1.2-rc.0",
"@deepseek-ai/dsh-agent-default-model": ">=0.1.0-rc.6 || >=0.1.1-rc.0 || >=0.1.2-rc.0",
"@deepseek-ai/dsh-invariants": ">=0.1.0-rc.6 || >=0.1.1-rc.0 || >=0.1.2-rc.0",
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.6 || >=0.1.1-rc.0 || >=0.1.2-rc.0",
"@deepseek-ai/dsh-session": ">=0.1.0-rc.6 || >=0.1.1-rc.0 || >=0.1.2-rc.0"
},
"devDependencies": {
"@deepseek-ai/cordis": "4.0.1",
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
"@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
"@types/node": "24.12.2",
"esbuild": "0.28.0",
"tsx": "4.22.3",
"typescript": "6.0.3",
"vitest": "4.1.6"
},
"engines": {
"node": ">=24"
}
}