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
1.3 KB
Raw Blame
/**
 * Placeholder credentials for tests.
 *
 * Every value here is fake. Each one is assembled at runtime from parts, so
 * no single source line carries a literal shaped like a real credential and
 * registry secret scanners reading this repository have nothing to flag. The
 * assembled strings are exactly what the tests used before, so the redactor
 * tests still see the realistic shapes they need to prove a redaction.
 */

/** Joins the parts of a placeholder credential. */
export function fakeCredential(...parts: readonly string[]): string {
  return parts.join("");
}

/** The generic key handed to fake embedding and rerank providers. */
export const FAKE_PROVIDER_KEY = fakeCredential("test", "-key");

/** A vendor-shaped live key the redactor must always catch. */
export const FAKE_VENDOR_KEY = fakeCredential("sk-", "live-9f8e7d6c5b4a32100112");

/** A GitHub-token placeholder resolved through `$secret:` references. */
export const FAKE_GITHUB_SECRET = fakeCredential("ghp_", "secret_value");

/** The key handed to fake decision-model servers (issue #213). */
export const FAKE_DECISION_KEY = fakeCredential("dm", "-test-", "key-7c1e");

/** A credential value for query-parameter refusal cases (`?api_key=` et al). */
export const FAKE_QUERY_KEY = fakeCredential("qk", "-", "9f8e7d6c5b4a3210");