Skip to content

Local-first 🧠 memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.

TypeScript
635 B
Raw Blame
import { describe, expect, test } from "bun:test";
import { homedir } from "node:os";
import { join } from "node:path";
import { assertSafeMemoryPath } from "../../../src/core/brain/claude-memory-paths.ts";

describe("assertSafeMemoryPath", () => {
  test("default home → no throw", () => {
    assertSafeMemoryPath(join(homedir(), ".claude", "projects", "-x", "memory"), false);
  });
  test("system path without override → throws", () => {
    expect(() => assertSafeMemoryPath("/etc", false)).toThrow(/not under/);
  });
  test("system path with override → no throw", () => {
    assertSafeMemoryPath("/etc", true);
  });
});