diff --git a/apps/mcp/src/client.ts b/apps/mcp/src/client.ts index 179dd829..ace65912 100644 --- a/apps/mcp/src/client.ts +++ b/apps/mcp/src/client.ts @@ -160,9 +160,13 @@ export class SupermemoryClient { message: `Successfully forgot memory (exact match) with ID: ${result.id}`, containerTag: this.containerTag, } - } catch (error: any) { + } catch (error: unknown) { // If not 404, it's a real error - re-throw it - if (error?.status !== 404) { + const status = + error && typeof error === "object" && "status" in error + ? (error as Record).status + : undefined + if (status !== 404) { throw error } // Otherwise continue to semantic search fallback diff --git a/packages/memory-graph/src/canvas/renderer.ts b/packages/memory-graph/src/canvas/renderer.ts index 46a30e54..fd7f8b5d 100644 --- a/packages/memory-graph/src/canvas/renderer.ts +++ b/packages/memory-graph/src/canvas/renderer.ts @@ -686,7 +686,6 @@ function drawHexagon( ctx.closePath() } - /** Lighten a 6-digit hex color by a fraction (0-1). Cached to avoid per-frame parsing. */ export function lightenColor(hex: string, amount: number): string { if (