JuliusBrussee/caveman · error · Error
unknown emitCacheHints value ${JSON.stringify(emitCacheHints
Error message
unknown emitCacheHints value ${JSON.stringify(emitCacheHints)} What it means
Error "unknown emitCacheHints value ${JSON.stringify(emitCacheHints)}" thrown in JuliusBrussee/caveman.
Source
Thrown at packages/sdk/typescript/src/index.ts:1806
items: selectedIDs.map((id) => byID.get(id)!),
tokensUsed,
tokensBefore,
tokensSaved,
deferredCount,
deferredIds: [...deferredIDs],
basis: "inferred"
};
}
const assemblyHashLedgers = new WeakMap<Cave, Map<string, string>>();
const assemblyRequestHeaders = new WeakMap<object, string>();
function assemble(cave: Cave, options: AssembleOptions): AssemblyResult {
const provider = options.provider.trim().toLowerCase();
const emitCacheHints = options.emitCacheHints ?? "gateway";
if (!options.model || !options.sessionId) throw new Error("assemble requires model and sessionId");
if (!["gateway", "self", "none"].includes(emitCacheHints)) {
throw new Error(`unknown emitCacheHints value ${JSON.stringify(emitCacheHints)}`);
}
const ids = new Set<string>();
let ledger = assemblyHashLedgers.get(cave);
if (!ledger) {
ledger = new Map<string, string>();
assemblyHashLedgers.set(cave, ledger);
}
const normalized = options.slots.map((slot) => {
if (!slot.id || ids.has(slot.id)) throw new Error(`assembly slot id must be non-empty and unique: ${JSON.stringify(slot.id)}`);
ids.add(slot.id);
if (!["stable", "session", "volatile"].includes(slot.stability)) {
throw new Error(`assembly slot ${JSON.stringify(slot.id)} has unknown stability ${JSON.stringify(slot.stability)}`);
}
let contentJSON: string;
try {
contentJSON = canonicalJSON(slot.content);
} catch {View on GitHub (pinned to 27d5a3981a)
Solutions
- Use a supported emitCacheHints value.
When it happens
Trigger: Thrown at packages/sdk/typescript/src/index.ts:1806 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@27d5a3981a (2026-08-15).
Data as JSON: /api/errors/6a1cb35cf9e9d585.
Report an issue: GitHub.