@openviking/dsh-memory-plugin 0.5.7 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ Or add the package to a profile directly:
21
21
 
22
22
  ```bash
23
23
  dsh plugin --profile web add @openviking/dsh-memory-plugin
24
- dsh --profile web --dump-config # should list the openviking-memory group
24
+ dsh --profile web --dump-config # should list openviking-memory-runtime
25
25
  ```
26
26
 
27
27
  `dsh plugin` forwards to pnpm inside the profile directory, so the bundle has to
@@ -176,26 +176,18 @@ Common environment variables:
176
176
  | `OPENVIKING_WORKSPACE_PEER` | Derive a peer from each DSH session workspace's git identity by default; `0` sends no peer |
177
177
  | `OPENVIKING_RECALL_PEER_SCOPE` | `all` for cross-workspace recall or `actor` for isolation |
178
178
 
179
- The patch can also carry plugin config:
179
+ The profile's `cordis.patch.yml` can also carry plugin config:
180
180
 
181
181
  ```yaml
182
- - insert:
183
- - id: openviking-memory
184
- name: '@deepseek-ai/cordis-plugin-group'
185
- group: true
186
- isolate:
187
- openvikingMemory: true
188
- config:
189
- - id: openviking-memory-runtime
190
- name: '@openviking/dsh-memory-plugin'
191
- config:
192
- endpoint: http://127.0.0.1:1933
193
- recallMaxTokens: 2000
194
- scoreThreshold: 0.35
195
- captureToolResults: false
196
- skipSubagentSessions: true
197
- commitTokenThreshold: 20000
198
- mcpToolCallTimeoutMs: 60000
182
+ - id: openviking-memory-runtime
183
+ config:
184
+ endpoint: http://127.0.0.1:1933
185
+ recallMaxTokens: 2000
186
+ scoreThreshold: 0.35
187
+ captureToolResults: false
188
+ skipSubagentSessions: true
189
+ commitTokenThreshold: 20000
190
+ mcpToolCallTimeoutMs: 60000
199
191
  ```
200
192
 
201
193
  Recall normally uses `POST /api/v1/search/search` with `mode: "context"`.
package/config.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { buildPluginConfig } from "./shared/plugin-config.mjs";
2
2
  import { loadCredentialFiles } from "./shared/credentials.mjs";
3
3
 
4
- export const PLUGIN_VERSION = "0.5.7";
4
+ export const PLUGIN_VERSION = "0.5.9";
5
5
 
6
6
  /**
7
7
  * Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
package/cordis.patch.yml CHANGED
@@ -1,9 +1,3 @@
1
1
  - insert:
2
- - id: openviking-memory
3
- name: '@deepseek-ai/cordis-plugin-group'
4
- group: true
5
- isolate:
6
- openvikingMemory: true
7
- config:
8
- - id: openviking-memory-runtime
9
- name: '@openviking/dsh-memory-plugin'
2
+ - id: openviking-memory-runtime
3
+ name: '@openviking/dsh-memory-plugin'
package/mcp-env.mjs CHANGED
@@ -12,15 +12,20 @@ export const PROXY_PATH = fileURLToPath(new URL("./servers/mcp-proxy.mjs", impor
12
12
  * DSH scrubs credential-shaped names out of the environment a subprocess
13
13
  * inherits, and the Cordis patch is invisible to one, so the proxy cannot
14
14
  * resolve the connection the way this process did. It gets the answer instead:
15
- * the resolved connection and this session's peer, forwarded with the forced
16
- * `env` source so the child reads no file and lands on exactly this url, key,
17
- * identity, auth mode and peer — the empty ones included.
15
+ * the resolved connection, diagnostics, and this session's peer, forwarded
16
+ * with the forced `env` source so the child reads no file and lands on exactly
17
+ * these values — the empty ones included.
18
18
  */
19
19
  export function buildMcpConfig(config) {
20
20
  // In DSH Desktop, process.execPath is Electron's executable rather than a
21
21
  // standalone Node binary. This tells Electron to run the proxy script as
22
22
  // Node instead of attempting to launch a second Desktop instance.
23
- const env = { ELECTRON_RUN_AS_NODE: "1", ...forwardConnectionEnv(config) };
23
+ const env = {
24
+ ELECTRON_RUN_AS_NODE: "1",
25
+ ...forwardConnectionEnv(config),
26
+ OPENVIKING_DEBUG: config.debug ? "1" : "0",
27
+ OPENVIKING_DEBUG_LOG: config.debugLogPath || "",
28
+ };
24
29
  if (config.recallPeerScope) env.OPENVIKING_RECALL_PEER_SCOPE = config.recallPeerScope;
25
30
  if (config.timeoutMs) env.OPENVIKING_TIMEOUT_MS = String(config.timeoutMs);
26
31
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/dsh-memory-plugin",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "OpenViking memory and context bundle for DeepSeek Harness",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
@@ -4,8 +4,8 @@
4
4
  * stdio -> streamable-HTTP MCP proxy for the OpenViking DSH bundle.
5
5
  *
6
6
  * DSH's MCP bridge starts this process as a local stdio MCP server. The proxy
7
- * resolves its connection through the same `resolveConfig()` as the in-process
8
- * runtime, from the child environment the bundle builds in `mcp.mjs`: DSH
7
+ * resolves its connection and diagnostics through the same `resolveConfig()`
8
+ * as the in-process runtime, from the child environment built in `mcp-env.mjs`: DSH
9
9
  * scrubs credential-shaped names out of what it inherits, and values that came
10
10
  * from the Cordis patch are invisible to a subprocess otherwise.
11
11
  */
@@ -25,8 +25,8 @@ export function readProxyConfig(env = process.env, cwd = process.cwd()) {
25
25
  // still decides whether the proxy may send it. In broad recall mode the
26
26
  // actor header must stay unset; otherwise a process launched in workspace A
27
27
  // narrows MCP searches for a session whose runtime is serving workspace B.
28
- debug: Boolean(env.OV_DEBUG_LOG),
29
- debugLogPath: env.OV_DEBUG_LOG || "",
28
+ debug: env.OV_DEBUG_LOG ? true : cfg.debug,
29
+ debugLogPath: env.OV_DEBUG_LOG || cfg.debugLogPath,
30
30
  });
31
31
  }
32
32