diff --git a/extensions/cli/src/args.test.ts b/extensions/cli/src/args.test.ts index fce3eee38..888149846 100644 --- a/extensions/cli/src/args.test.ts +++ b/extensions/cli/src/args.test.ts @@ -1,5 +1,3 @@ -import { vi } from "vitest"; - import { processRule as processPromptOrRule } from "./hubLoader.js"; describe("processPromptOrRule (rule processing)", () => { diff --git a/extensions/cli/src/auth/workos.ts b/extensions/cli/src/auth/workos.ts index bde429b06..4578dca82 100644 --- a/extensions/cli/src/auth/workos.ts +++ b/extensions/cli/src/auth/workos.ts @@ -11,8 +11,6 @@ import { persistModelName, } from "../util/modelPersistence.js"; -import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js"; - // --------------------------------------------------------------------------- // Types // --------------------------------------------------------------------------- diff --git a/extensions/cli/src/commands/review/resolveReviews.ts b/extensions/cli/src/commands/review/resolveReviews.ts index c4d55e706..e4f4db498 100644 --- a/extensions/cli/src/commands/review/resolveReviews.ts +++ b/extensions/cli/src/commands/review/resolveReviews.ts @@ -1,8 +1,6 @@ import * as fs from "fs"; import * as path from "path"; -import { logger } from "../../util/logger.js"; - export interface ResolvedReview { /** Display name for the review */ name: string; diff --git a/extensions/cli/src/commands/serve.ts b/extensions/cli/src/commands/serve.ts index 8209c3ce8..f18ef4e22 100644 --- a/extensions/cli/src/commands/serve.ts +++ b/extensions/cli/src/commands/serve.ts @@ -17,7 +17,6 @@ import { } from "../services/index.js"; import { AgentFileServiceState, - AuthServiceState, ConfigServiceState, ModelServiceState, } from "../services/types.js"; diff --git a/extensions/cli/src/config.ts b/extensions/cli/src/config.ts index 55eee983b..d9e769f90 100644 --- a/extensions/cli/src/config.ts +++ b/extensions/cli/src/config.ts @@ -25,7 +25,7 @@ function getUserAgent(): string { /** * Merges user-agent header into request options */ -function mergeUserAgentIntoRequestOptions( +function _mergeUserAgentIntoRequestOptions( requestOptions: ModelConfig["requestOptions"], ): ModelConfig["requestOptions"] { return { diff --git a/extensions/cli/src/configLoader.ts b/extensions/cli/src/configLoader.ts index 8c22efcbc..9e8b0290c 100644 --- a/extensions/cli/src/configLoader.ts +++ b/extensions/cli/src/configLoader.ts @@ -1,6 +1,5 @@ import * as fs from "fs"; import { dirname } from "node:path"; -import { fileURLToPath } from "node:url"; import * as path from "path"; import { @@ -18,13 +17,11 @@ import { uriToPath, uriToSlug } from "./auth/uriUtils.js"; import type { AuthConfig } from "./auth/workos.js"; import { getAccessToken, - getConfigUri, getOrganizationId, updateConfigUri, } from "./auth/workos.js"; import { CLIPlatformClient } from "./CLIPlatformClient.js"; import { env } from "./env.js"; -import { logger } from "./util/logger.js"; export interface ConfigLoadResult { config: AssistantUnrolled; @@ -87,7 +84,7 @@ export async function loadConfiguration( function determineConfigSource( authConfig: AuthConfig, cliConfigPath: string | undefined, - isHeadless: boolean | undefined, + _isHeadless: boolean | undefined, ): ConfigSource { // Priority 1: CLI --config flag if (cliConfigPath) { diff --git a/extensions/cli/src/services/AuthService.ts b/extensions/cli/src/services/AuthService.ts index 71d742774..0ccdf91a6 100644 --- a/extensions/cli/src/services/AuthService.ts +++ b/extensions/cli/src/services/AuthService.ts @@ -1,4 +1,3 @@ -import { loadAuthConfig } from "../auth/workos.js"; import { logger } from "../util/logger.js"; import { BaseService } from "./BaseService.js"; diff --git a/extensions/cli/src/session.ts b/extensions/cli/src/session.ts index 8f29fed82..1915f36af 100644 --- a/extensions/cli/src/session.ts +++ b/extensions/cli/src/session.ts @@ -13,7 +13,6 @@ import historyManager from "core/util/history.js"; import { v4 as uuidv4 } from "uuid"; import { DEFAULT_SESSION_TITLE } from "./constants/session.js"; -import { env } from "./env.js"; import { logger } from "./util/logger.js"; // Re-export BaseSessionMetadata for external consumers diff --git a/extensions/cli/src/slashCommands.ts b/extensions/cli/src/slashCommands.ts index 68641e2b8..ae4967ef5 100644 --- a/extensions/cli/src/slashCommands.ts +++ b/extensions/cli/src/slashCommands.ts @@ -4,7 +4,6 @@ import chalk from "chalk"; import { getAllSlashCommands } from "./commands/commands.js"; import { handleInit } from "./commands/init.js"; import { handleInfoSlashCommand } from "./infoScreen.js"; -import { reloadService, SERVICE_NAMES, services } from "./services/index.js"; import { getCurrentSession, updateSessionTitle } from "./session.js"; import { telemetryService } from "./telemetry/telemetryService.js"; import { SlashCommandResult } from "./ui/hooks/useChat.types.js"; diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index f4cd7d175..5f17ba003 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -50,7 +50,7 @@ const SlashCommandsMaybe: React.FC<{ show, inputMode, hideNormalUI, - isRemoteMode, + isRemoteMode: _isRemoteMode, assistant, filter, selectedIndex, diff --git a/extensions/cli/src/ui/components/BottomStatusBar.tsx b/extensions/cli/src/ui/components/BottomStatusBar.tsx index c9e423285..ff730e13a 100644 --- a/extensions/cli/src/ui/components/BottomStatusBar.tsx +++ b/extensions/cli/src/ui/components/BottomStatusBar.tsx @@ -28,10 +28,10 @@ export const BottomStatusBar: React.FC = ({ currentMode, remoteUrl, isRemoteMode, - services, - navState, - navigateTo, - closeCurrentScreen, + services: _services, + navState: _navState, + navigateTo: _navigateTo, + closeCurrentScreen: _closeCurrentScreen, contextPercentage, hasImageInClipboard, isVerboseMode, diff --git a/extensions/cli/src/ui/components/ScreenContent.tsx b/extensions/cli/src/ui/components/ScreenContent.tsx index 045101abc..e3428e7d0 100644 --- a/extensions/cli/src/ui/components/ScreenContent.tsx +++ b/extensions/cli/src/ui/components/ScreenContent.tsx @@ -73,7 +73,7 @@ export const ScreenContent: React.FC = ({ handleConfigSelect, handleModelSelect, handleSessionSelect, - handleReload, + handleReload: _handleReload, closeCurrentScreen, activePermissionRequest, activeQuizQuestion, diff --git a/extensions/cli/src/ui/hooks/useChat.helpers.ts b/extensions/cli/src/ui/hooks/useChat.helpers.ts index 4100288d2..c9b38e808 100644 --- a/extensions/cli/src/ui/hooks/useChat.helpers.ts +++ b/extensions/cli/src/ui/hooks/useChat.helpers.ts @@ -226,7 +226,7 @@ export async function formatMessageWithFiles( /** * Track telemetry for user message */ -export function trackUserMessage(message: string, model?: any): void { +export function trackUserMessage(message: string, _model?: any): void { telemetryService.startActiveTime(); telemetryService.logUserPrompt(message.length, message); }