style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -63,21 +63,21 @@ export class MinimalTui {
|
||||
|
||||
const completions = getCommandCompletions(line);
|
||||
const tooltip = getCommandTooltip(line);
|
||||
|
||||
|
||||
let hint = '';
|
||||
|
||||
|
||||
if (completions.length === 1 && completions[0] !== line) {
|
||||
// Show the remaining part of the completion as a hint
|
||||
hint = completions[0].slice(line.length);
|
||||
}
|
||||
|
||||
|
||||
// Add tooltip if available
|
||||
if (tooltip) {
|
||||
hint += ` ${colors.gray}— ${tooltip}${colors.reset}`;
|
||||
} else if (completions.length > 1) {
|
||||
hint += ` ${colors.gray}[${completions.length} options, Tab to complete]${colors.reset}`;
|
||||
}
|
||||
|
||||
|
||||
if (hint && hint !== this.currentHint) {
|
||||
this.clearHint();
|
||||
this.currentHint = hint;
|
||||
@@ -467,7 +467,7 @@ export class MinimalTui {
|
||||
fullContent += event.content;
|
||||
}
|
||||
if (event.type === 'fallback_warning' && event.fallbackReason) {
|
||||
console.warn(`\n⚠ Using fallback model`);
|
||||
console.warn('\n⚠ Using fallback model');
|
||||
}
|
||||
if (event.type === 'done' && event.usage) {
|
||||
this.totalUsage.inputTokens += event.usage.inputTokens;
|
||||
|
||||
Reference in New Issue
Block a user