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
563 B
Raw Blame
/**
 * SQL text helpers shared by the per-table modules behind `Store`. One
 * spelling of a placeholder list and one of the instant every table
 * stamps, so the tables cannot drift into two.
 */

/** `?,?,...` placeholder list for a SQL `IN (...)` clause of `items.length` params. */
export function sqlPlaceholders(items: ReadonlyArray<unknown>): string {
  return items.map(() => "?").join(",");
}

/** The instant recorded in every `created_at` / `updated_at` / `indexed_at` column. */
export function nowIso(): string {
  return new Date().toISOString();
}