From 93c1ef192b40b1dfac6350cc14b693b73324bc6a Mon Sep 17 00:00:00 2001 From: mogery Date: Fri, 12 Jun 2026 16:19:11 -0700 Subject: [PATCH] chore(api): fix knip complaints - Remove stale TEST_URL backwards-compat alias (was never imported from this file) - Remove rotate-api-key.ts from knip ignore (file was deleted) - Remove unused openai direct dependency (only needed as optional peer dep of langsmith) Co-Authored-By: Claude Sonnet 4.6 --- apps/api/knip.config.ts | 2 -- apps/api/package.json | 1 - apps/api/pnpm-lock.yaml | 4 +--- apps/api/src/__tests__/snips/lib.ts | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/api/knip.config.ts b/apps/api/knip.config.ts index 9e9b4eee4..6c8f8de9c 100644 --- a/apps/api/knip.config.ts +++ b/apps/api/knip.config.ts @@ -15,8 +15,6 @@ const config: KnipConfig = { ignore: [ "native/**", "src/scraper/scrapeURL/engines/fire-engine/branding-script/**", - // Superseded by the integration proxy added in #3520; kept for now. - "src/controllers/v0/admin/rotate-api-key.ts", ], ignoreDependencies: ["undici-types", "stripe"], }; diff --git a/apps/api/package.json b/apps/api/package.json index b8cd62c33..0b8aad340 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -130,7 +130,6 @@ "marked": "^14.1.2", "multer": "^2.1.1", "ollama-ai-provider": "^1.2.0", - "openai": "^5.20.2", "parse-diff": "^0.11.1", "pdf-parse": "^1.1.1", "pg": "^8.16.3", diff --git a/apps/api/pnpm-lock.yaml b/apps/api/pnpm-lock.yaml index c16588556..7d6f4f9b5 100644 --- a/apps/api/pnpm-lock.yaml +++ b/apps/api/pnpm-lock.yaml @@ -205,9 +205,6 @@ importers: ollama-ai-provider: specifier: ^1.2.0 version: 1.2.0(zod@4.1.12) - openai: - specifier: ^5.20.2 - version: 5.20.2(ws@8.20.1(bufferutil@4.0.9)(utf-8-validate@5.0.10))(zod@4.1.12) parse-diff: specifier: ^0.11.1 version: 0.11.1 @@ -10695,6 +10692,7 @@ snapshots: optionalDependencies: ws: 8.20.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) zod: 4.1.12 + optional: true ox@0.11.3(typescript@5.9.2)(zod@3.25.76): dependencies: diff --git a/apps/api/src/__tests__/snips/lib.ts b/apps/api/src/__tests__/snips/lib.ts index 4d0e461d0..b92b4be94 100644 --- a/apps/api/src/__tests__/snips/lib.ts +++ b/apps/api/src/__tests__/snips/lib.ts @@ -9,7 +9,6 @@ import { TeamFlags } from "../../controllers/v1/types"; // ========================================= export const TEST_API_URL = config.TEST_API_URL; -export const TEST_URL = TEST_API_URL; // backwards compat temp const stripTrailingSlash = (url: string) => { if (url.length < 1) throw new Error("Invalid URL supplied");