From 6825faf36d24a827d35298cacbc2786c72f87541 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 02:51:50 +0000 Subject: [PATCH 1/2] Initial plan From cbd6495139ad2a26b36f82cbee0a7d488b484206 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 02:57:37 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20resolve=20deno=20lint=20no-unused-va?= =?UTF-8?q?rs=20errors=20(lint-clean=200%=20=E2=86=92=20100%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/plures/chronos/sessions/3f0ea1d4-3902-4d36-99fb-cb697cf52116 Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com> --- src/rules/retention-policy.js | 2 +- src/semantic.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;