sessionmem 1.1.1 → 1.1.2

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.
@@ -50,8 +50,6 @@ export class ClineAdapter extends GenericMCPAdapter {
50
50
  // "Code" is VS Code stable, but Cline also installs into Insiders, VSCodium,
51
51
  // and Cursor. Pick the first variant whose globalStorage dir already exists;
52
52
  // fall back to stable "Code" when none is found (fresh install).
53
- // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
54
- // `name` is from the hardcoded VSCODE_EDITOR_VARIANTS constant above — not user input.
55
53
  const editorName = VSCODE_EDITOR_VARIANTS.find((name) => existsSync(join(base, name, "User", "globalStorage"))) ?? "Code";
56
54
  return join(base, editorName, ...rest);
57
55
  }
@@ -38,10 +38,7 @@ export function expandTilde(p) {
38
38
  if (p === "~")
39
39
  return homedir();
40
40
  if (p.startsWith("~/") || p.startsWith("~\\")) {
41
- // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
42
- // `homedir()` is the fixed base; `p` is SESSIONMEM_DB_PATH, a local CLI
43
- // config the operator sets for their own filesystem — not external user input.
44
- return join(homedir(), p.slice(2));
41
+ return join(homedir(), p.slice(2)); // nosemgrep: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
45
42
  }
46
43
  return p;
47
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sessionmem",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Local-first MCP memory layer for coding agents across Claude Code, Codex, Cursor, Cline, Windsurf, and other MCP-compatible hosts.",