diff --git a/src/rules/retention-policy.js b/src/rules/retention-policy.js index 2c939e0..5ee27c1 100644 --- a/src/rules/retention-policy.js +++ b/src/rules/retention-policy.js @@ -92,7 +92,7 @@ export const agePruningRule = defineRule({ 'TTL must be a positive number', ], }, - impl: (state, events) => { + impl: (_state, events) => { const event = events.find((e) => e.tag === RETENTION_AUDIT_REQUESTED); if (!event) return RuleResult.skip('No retention audit event in batch'); diff --git a/src/semantic.js b/src/semantic.js index fab6f8e..713fc6a 100644 --- a/src/semantic.js +++ b/src/semantic.js @@ -43,7 +43,7 @@ * ``` */ export function createSemanticIndex(db, options = {}) { - const { embed, prefix = 'chronos:', dimensions = 384 } = options; + const { embed, prefix: _prefix = 'chronos:', dimensions = 384 } = options; if (typeof embed !== 'function') { throw new Error('SemanticIndex requires an embed function: async (text) => number[]'); @@ -145,7 +145,7 @@ export function createSemanticIndex(db, options = {}) { const queryVec = await embed(query); const results = []; - for (const [id, entry] of vectors) { + for (const [_id, entry] of vectors) { // Apply filters if (startMs && entry.node.timestamp < startMs) continue; if (endMs && entry.node.timestamp > endMs) continue;