fix(cli): resolve typescript and lint errors in ported changes

This commit is contained in:
Sehoon Shon
2026-03-10 13:36:03 -04:00
parent c69bf4a4b4
commit 7658e47eaf
7 changed files with 11 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ import { validateTheme } from './theme.js';
import type { AccountSuspensionInfo } from '../ui/contexts/UIStateContext.js';
import { pathToFileURL } from 'node:url';
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
export interface InitializationResult {
authError: string | null;

View File

@@ -177,7 +177,7 @@ const resumeCheckpointCommand: SlashCommand = {
const { logger, config } = context.services;
await logger.initialize();
let conversation: Content[] = [];
let conversation: readonly Content[] = [];
let authType: string | undefined;
const loadExternalTrajectory = async (
@@ -186,7 +186,7 @@ const resumeCheckpointCommand: SlashCommand = {
): Promise<Content[] | null> => {
let record: ConversationRecord | null = null;
if (config && config.getEnableExtensionReloading() !== false) {
/* eslint-disable @typescript-eslint/no-unsafe-type-assertion, @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-type-assertion, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment */
const extensions = (config as any)._extensionLoader?.getExtensions
? (config as any)._extensionLoader.getExtensions()
: [];
@@ -203,7 +203,7 @@ const resumeCheckpointCommand: SlashCommand = {
}
}
}
/* eslint-enable @typescript-eslint/no-unsafe-type-assertion, @typescript-eslint/no-explicit-any */
/* eslint-enable @typescript-eslint/no-unsafe-type-assertion, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment */
}
if (!record) return null;

View File

@@ -21,6 +21,7 @@ import {
} from '../../utils/sessionUtils.js';
import { useTabbedNavigation } from '../hooks/useTabbedNavigation.js';
import { TabHeader, type Tab } from './shared/TabHeader.js';
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-return */
/**
* Props for the main SessionBrowser component.

View File

@@ -21,6 +21,7 @@ import {
type SessionInfo,
} from '../../utils/sessionUtils.js';
import type { Part } from '@google/genai';
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
export { convertSessionToHistoryFormats };
@@ -96,7 +97,7 @@ export const useSessionBrowser = (
filePath = path.join(chatsDir, fileName);
// Load up the conversation.
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
conversation = JSON.parse(await fs.readFile(filePath, 'utf8'));
}