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
547 B
Raw Blame
/**
 * Preload for a spawned `o2b discipline ...`: a host whose home directory
 * cannot be resolved.
 *
 * Spawned by `tests/cli/discipline-install.test.ts` as
 * `bun --preload <this> src/cli/main.ts discipline ...`. An empty HOME is
 * not enough on POSIX, because the runtime falls back to the password
 * database, so `homedir()` itself is replaced before the CLI loads.
 */

import { mock } from "bun:test";
import * as os from "node:os";

mock.module("node:os", () => ({ ...os, default: { ...os, homedir: () => "" }, homedir: () => "" }));