// Eleven's app knowledge — the exhaustive, MEMBER-FACING reference injected into // Eleven's system prompt so it can answer questions about how the app works: // features, UX, the privacy/encryption model, mini-apps, the native apps, and the // architecture/deployment DESIGN. The project is open source, so Eleven may explain // how everything works in depth. // // OPEN knowledge ONLY. This text is extractable by anyone chatting with Eleven, so // it deliberately contains NO operational secrets — no server addresses, tokens, // keys, or instance names. The design is open; the keys are not. Keep it that way. // // Ships in the sidecar (like the rest of Eleven's reference), so its knowledge // improves with every deploy; the runtime marks the system prompt cacheable so this // large reference is served from cache, not re-billed per message (runtime.mjs). // The text itself lives in `internal/bot/knowledge.md` — ONE source of truth // shared with the Go sidecar (which `go:embed`s the same file), so the two // implementations can never drift. Read it verbatim (it is data, not code). import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; export const APP_KNOWLEDGE = readFileSync( fileURLToPath(new URL("../internal/bot/knowledge.md", import.meta.url)), "utf8", ).replace(/\n$/, "");