Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

chore(api): fix knip unused exports on main (#5165)

Abimael Martellba59dd764b8a
diff --git a/apps/api/src/lib/branding/color-roles.ts b/apps/api/src/lib/branding/color-roles.ts
index 76bc2e7dd..5b8e755b9 100644
--- a/apps/api/src/lib/branding/color-roles.ts
+++ b/apps/api/src/lib/branding/color-roles.ts
@@ -55,7 +55,7 @@ export function colorDistance(a?: string | null, b?: string | null): number {
* Nearly white, whatever its tint (#E5EDF5, #F2E8E1): on a light page that is
* a section background, not a brand color.
*/
-export function isPale(hex: string): boolean {
+function isPale(hex: string): boolean {
const h = hex.replace("#", "");
if (h.length < 6) return false;
const channels = [0, 2, 4].map(i => parseInt(h.slice(i, i + 2), 16));
diff --git a/apps/api/src/lib/index-daily-limit.ts b/apps/api/src/lib/index-daily-limit.ts
index a0cba2647..eb633e916 100644
--- a/apps/api/src/lib/index-daily-limit.ts
+++ b/apps/api/src/lib/index-daily-limit.ts
@@ -2,7 +2,7 @@ import { config } from "../config";
import { redisRateLimitClient } from "../services/rate-limiter";
import { logger } from "./logger";
-export type GovIndexDailyReservation =
+type GovIndexDailyReservation =
| { ok: true; release: () => Promise<void> }
| {
ok: false;
diff --git a/apps/api/src/services/mcp/action-logs.ts b/apps/api/src/services/mcp/action-logs.ts
index b1dfcbf7d..3e10000f9 100644
--- a/apps/api/src/services/mcp/action-logs.ts
+++ b/apps/api/src/services/mcp/action-logs.ts
@@ -99,7 +99,7 @@ function objective(value: unknown) {
return normalized || null;
}
-export type McpActionLogInput = {
+type McpActionLogInput = {
team_id: string;
user_id: string | null;
api_key_id: string | null;