sessionmem 1.1.0 → 1.1.1
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,6 +50,8 @@ 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.
|
|
53
55
|
const editorName = VSCODE_EDITOR_VARIANTS.find((name) => existsSync(join(base, name, "User", "globalStorage"))) ?? "Code";
|
|
54
56
|
return join(base, editorName, ...rest);
|
|
55
57
|
}
|
package/dist/cli/context.js
CHANGED
|
@@ -38,6 +38,9 @@ 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.
|
|
41
44
|
return join(homedir(), p.slice(2));
|
|
42
45
|
}
|
|
43
46
|
return p;
|
package/package.json
CHANGED