@openviking/dsh-memory-plugin 0.5.17 → 0.5.18

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/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.17";
4
+ export const PLUGIN_VERSION = "0.5.18";
5
5
 
6
6
  /**
7
7
  * Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/dsh-memory-plugin",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "description": "OpenViking memory and context bundle for DeepSeek Harness",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
@@ -27,7 +27,10 @@ export function isBypassed(cfg, { sessionId, cwd } = {}) {
27
27
  if (cfg.bypassSession) return true;
28
28
  const patterns = cfg.bypassSessionPatterns || [];
29
29
  if (patterns.length === 0) return false;
30
- const haystacks = [sessionId, cwd].filter(Boolean);
30
+ // Windows hands hooks `C:\work\scratch`, while directory patterns are written
31
+ // with forward slashes.
32
+ const slashCwd = typeof cwd === "string" && cwd.includes("\\") ? cwd.replace(/\\/g, "/") : "";
33
+ const haystacks = [sessionId, cwd, slashCwd].filter(Boolean);
31
34
  for (const pat of patterns) {
32
35
  const re = globToRe(pat);
33
36
  if (haystacks.some((h) => re.test(h))) return true;