@openviking/dsh-memory-plugin 0.5.17 → 0.5.19
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 +1 -1
- package/icon.svg +2 -2
- package/package.json +1 -1
- package/shared/session-model.mjs +4 -1
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.
|
|
4
|
+
export const PLUGIN_VERSION = "0.5.19";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Namespace for the bridged OpenViking MCP tools. DSH publishes every MCP tool
|
package/icon.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#07090D">
|
|
2
|
-
<style>@media (prefers-color-scheme: dark) { .openviking-mark { fill: #
|
|
3
|
-
<
|
|
2
|
+
<style>@media (prefers-color-scheme: dark) { .openviking-mark { fill: #F2F4F6; } }</style>
|
|
3
|
+
<path class="openviking-mark" transform="scale(.24)" d="M20.5 84H31L70 16.45H67ZM37 84 76 16.45V84Z"/>
|
|
4
4
|
</svg>
|
package/package.json
CHANGED
package/shared/session-model.mjs
CHANGED
|
@@ -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
|
-
|
|
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;
|