From 6f12051dec3aa0e5958716bbdd0ba15feb3d3be6 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 13 Dec 2024 17:15:13 -0800 Subject: [PATCH] fix build error --- core/commands/slash/onboard.ts | 2 +- core/context/retrieval/repoMapRequest.ts | 5 ----- core/index.d.ts | 2 +- core/indexing/walkDir.ts | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/commands/slash/onboard.ts b/core/commands/slash/onboard.ts index 3252a5bbb..7895101f8 100644 --- a/core/commands/slash/onboard.ts +++ b/core/commands/slash/onboard.ts @@ -1,6 +1,6 @@ import ignore from "ignore"; -import { FileType, IDE, SlashCommand } from "../.."; +import type { FileType, IDE, SlashCommand } from "../.."; import { defaultIgnoreDir, defaultIgnoreFile, diff --git a/core/context/retrieval/repoMapRequest.ts b/core/context/retrieval/repoMapRequest.ts index f70f0a594..39223321b 100644 --- a/core/context/retrieval/repoMapRequest.ts +++ b/core/context/retrieval/repoMapRequest.ts @@ -73,11 +73,6 @@ This is the question that you should select relevant files for: "${input}"`; return []; } - // IMPORANT - - // const subDirPrefix = filterDirUri - // ? getUriPathBasename(filterDirUri) + "/" - // : ""; const fileUris = content .split("")[1] ?.split("")[0] diff --git a/core/index.d.ts b/core/index.d.ts index ec6af891f..f9e6aa0e7 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -492,7 +492,7 @@ export interface LLMOptions { deploymentId?: string; } -export type RequireAtLeastOne = Pick< +type RequireAtLeastOne = Pick< T, Exclude > & diff --git a/core/indexing/walkDir.ts b/core/indexing/walkDir.ts index 979f4d6f4..1d8aa485a 100644 --- a/core/indexing/walkDir.ts +++ b/core/indexing/walkDir.ts @@ -1,6 +1,6 @@ import ignore, { Ignore } from "ignore"; -import { FileType, IDE } from ".."; +import type { FileType, IDE } from ".."; import { DEFAULT_IGNORE_DIRS,