chore(lint): reduce warning debt across core adapters and model clients
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as readline from 'node:readline';
|
||||
import type { ManagedSession } from '../../session/index.js';
|
||||
import type { ModelClient, TokenUsage } from '../../models/types.js';
|
||||
import type { ModelRouter, ModelTier } from '../../models/router.js';
|
||||
import type { ModelRouter } from '../../models/router.js';
|
||||
import type { NativeAgent } from '../../backends/native/agent.js';
|
||||
import { parseCommand, getHelpText, resolveModelAlias, getCommandCompletions, getCommandTooltip, type Command } from './commands.js';
|
||||
import { renderMarkdown } from './markdown.js';
|
||||
@@ -406,13 +406,13 @@ export class MinimalTui {
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Service might not exist or already stopped, ignore
|
||||
console.log(`${colors.gray}Note: ${provider} service not managed by systemd${colors.reset}\n`);
|
||||
}
|
||||
}
|
||||
|
||||
private async startBackend(provider: string, config: ModelConfig): Promise<void> {
|
||||
private async startBackend(provider: string, _config: ModelConfig): Promise<void> {
|
||||
try {
|
||||
const { exec } = await import('child_process');
|
||||
let serviceName: string;
|
||||
@@ -454,7 +454,10 @@ export class MinimalTui {
|
||||
|
||||
const promptHidden = async (question: string): Promise<string> => {
|
||||
const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: true });
|
||||
const rlAny = rl as any;
|
||||
const rlAny = rl as readline.Interface & {
|
||||
stdoutMuted?: boolean;
|
||||
_writeToOutput?: (s: string) => void;
|
||||
};
|
||||
rlAny.stdoutMuted = true;
|
||||
rlAny._writeToOutput = (s: string) => {
|
||||
if (!rlAny.stdoutMuted) {
|
||||
|
||||
Reference in New Issue
Block a user