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
705 B
Raw Blame
/**
 * `storeStatusLine`, the store line of `o2b status`: an unusable store
 * names its reason, a block with no reason is never "unusable: undefined".
 */
import { expect, test } from "bun:test";

import { storeStatusLine } from "../../src/cli/store-path.ts";

test("names the state of the store at its root", () => {
  const root = { path: "/s" };
  expect(storeStatusLine({ root, error: "broken", initialized: false })).toBe(
    "store_root: /s (unusable: broken)",
  );
  expect(storeStatusLine({ root, error: null, initialized: true, store_id: "st-1" })).toBe(
    "store_root: /s (store st-1)",
  );
  expect(storeStatusLine({ root, initialized: false })).toBe("store_root: /s (not created)");
});