Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(dsh): support current release candidate peers (#4169)

Zayn Jarvisdaf5fb1774fa
diff --git a/examples/dsh-memory-plugin/README.md b/examples/dsh-memory-plugin/README.md
index 86f2f22a0..911cb7942 100644
--- a/examples/dsh-memory-plugin/README.md
+++ b/examples/dsh-memory-plugin/README.md
@@ -28,19 +28,19 @@ tree's realpath rather than from the profile.
## Requirements
-- `@deepseek-ai/dsh` `0.1.0-rc.6`
+- `@deepseek-ai/dsh` `0.1.0-rc.6` or newer in the `0.1.x` release line
- Node.js `^22.19.0` or `>=24`
- A reachable OpenViking server
The bundle has no runtime npm dependencies. Its message structures come from
`createUserMessage` (`@deepseek-ai/dsh-llm`), its tool surface from
`@deepseek-ai/dsh-mcp-client`, and its skill provider from
-`@deepseek-ai/dsh-skill-filesystem` — exact-pinned peerDependencies that DSH
-itself already installs, so there is nothing extra to add to a profile.
-It is tested against `0.1.0-rc.6`; install that exact DSH release because
-prerelease package dist-tags are not synchronized across the package family.
-`overrides` holds the whole transitive `@deepseek-ai/dsh-*` family at the same
-release so a fresh `npm install` cannot float a subpackage forward.
+`@deepseek-ai/dsh-skill-filesystem` — peerDependencies that DSH itself already
+installs, so there is nothing extra to add to a profile. The supported peer
+range starts at `0.1.0-rc.6` and stops before `0.2.0`, allowing current DSH
+releases whose core packages resolve to newer release candidates. The local
+devDependencies and `overrides` stay pinned to rc.6 so CI continues to exercise
+the minimum supported contract.
Everything under `shared/` and `skills/` is generated by
`node examples/memory-plugin-shared/sync.mjs` — edit
diff --git a/examples/dsh-memory-plugin/bundle.test.mjs b/examples/dsh-memory-plugin/bundle.test.mjs
index 898d1aac0..a6331c52e 100644
--- a/examples/dsh-memory-plugin/bundle.test.mjs
+++ b/examples/dsh-memory-plugin/bundle.test.mjs
@@ -8,7 +8,7 @@ const PLUGIN_DIR = dirname(fileURLToPath(import.meta.url));
const FORBIDDEN_IDENTIFIER = ["tra", "ex"].join("");
const FORBIDDEN_PATTERN = new RegExp(FORBIDDEN_IDENTIFIER, "i");
-test("bundle uses neutral DSH naming, exact-pinned peers, and an isolated service", async () => {
+test("bundle uses neutral DSH naming, bounded peers, and an isolated service", async () => {
const manifest = JSON.parse(await readFile(
new URL("./package.json", import.meta.url),
"utf8",
@@ -17,23 +17,21 @@ test("bundle uses neutral DSH naming, exact-pinned peers, and an isolated servic
assert.equal(manifest.name, "@openviking/dsh-memory-plugin");
assert.equal(manifest.dependencies, undefined);
- // The message constructor (createUserMessage) and the MCP bridge that
- // carries the tool surface come from peers the installation heals at
- // runtime; exact pins because dsh rc subpackages have stale `latest`
- // dist-tags. devDependencies mirror the pins so CI tests exercise the same
- // dsh surface a pin bump would ship, and `overrides` holds the transitive
- // family down to that same release.
+ // DSH rc releases intentionally float their core packages within 0.1.x.
+ // Accept that host range while keeping CI pinned to the oldest supported
+ // contract so a newer local install cannot silently raise our minimum.
+ const supportedPeerRange = ">=0.1.0-rc.6 <0.2.0";
for (const [name, version] of Object.entries(manifest.peerDependencies)) {
- assert.match(version, /^\d+\.\d+\.\d+(-rc\.\d+)?$/, `${name} must be exact-pinned`);
- assert.equal(manifest.devDependencies[name], version, `${name} devDependency must mirror the peer pin`);
+ assert.equal(version, supportedPeerRange, `${name} must use the bounded 0.1.x range`);
+ assert.equal(manifest.devDependencies[name], "0.1.0-rc.6", `${name} must test the minimum`);
}
assert.ok(manifest.peerDependencies["@deepseek-ai/dsh-mcp-client"]);
assert.ok(manifest.peerDependencies["@deepseek-ai/dsh-llm"]);
for (const [name, version] of Object.entries(manifest.peerDependencies)) {
assert.equal(
manifest.overrides[name],
- version,
- `${name} override must hold the transitive family at the peer pin`,
+ manifest.devDependencies[name],
+ `${name} override must hold the transitive family at the tested minimum`,
);
}
assert.equal(manifest.dsh.bundle.patch, "./cordis.patch.yml");
diff --git a/examples/dsh-memory-plugin/config.mjs b/examples/dsh-memory-plugin/config.mjs
index 65a60b3c1..786b20937 100644
--- a/examples/dsh-memory-plugin/config.mjs
+++ b/examples/dsh-memory-plugin/config.mjs
@@ -1,7 +1,7 @@
import { buildUserAgent, resolveOpenVikingCredentials } from "./shared/credentials.mjs";
import { resolveEffectivePeerId } from "./shared/workspace-peer.mjs";
-export const PLUGIN_VERSION = "0.2.0";
+export const PLUGIN_VERSION = "0.2.1";
/**
* Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
diff --git a/examples/dsh-memory-plugin/package-lock.json b/examples/dsh-memory-plugin/package-lock.json
index 6d13a098d..d1cd9eb1c 100644
--- a/examples/dsh-memory-plugin/package-lock.json
+++ b/examples/dsh-memory-plugin/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@openviking/dsh-memory-plugin",
- "version": "0.2.0",
+ "version": "0.2.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@openviking/dsh-memory-plugin",
- "version": "0.2.0",
+ "version": "0.2.1",
"license": "Apache-2.0",
"devDependencies": {
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
@@ -18,9 +18,9 @@
"node": "^22.19.0 || >=24"
},
"peerDependencies": {
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
- "@deepseek-ai/dsh-mcp-client": "0.1.0-rc.6",
- "@deepseek-ai/dsh-skill-filesystem": "0.1.0-rc.6"
+ "@deepseek-ai/dsh-llm": ">=0.1.0-rc.6 <0.2.0",
+ "@deepseek-ai/dsh-mcp-client": ">=0.1.0-rc.6 <0.2.0",
+ "@deepseek-ai/dsh-skill-filesystem": ">=0.1.0-rc.6 <0.2.0"
}
},
"node_modules/@deepseek-ai/cordis": {
diff --git a/examples/dsh-memory-plugin/package.json b/examples/dsh-memory-plugin/package.json
index 344e92a2d..1f0a51884 100644
--- a/examples/dsh-memory-plugin/package.json
+++ b/examples/dsh-memory-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@openviking/dsh-memory-plugin",
- "version": "0.2.0",
+ "version": "0.2.1",
"description": "OpenViking memory and context bundle for DeepSeek Harness",
"type": "module",
"main": "index.mjs",
@@ -35,9 +35,9 @@
"prepublishOnly": "npm run check && npm test"
},
"peerDependencies": {
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
- "@deepseek-ai/dsh-mcp-client": "0.1.0-rc.6",
- "@deepseek-ai/dsh-skill-filesystem": "0.1.0-rc.6"
+ "@deepseek-ai/dsh-llm": ">=0.1.0-rc.6 <0.2.0",
+ "@deepseek-ai/dsh-mcp-client": ">=0.1.0-rc.6 <0.2.0",
+ "@deepseek-ai/dsh-skill-filesystem": ">=0.1.0-rc.6 <0.2.0"
},
"devDependencies": {
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",