Imports cleanup

This commit is contained in:
Matthew Breedlove
2025-08-26 23:32:47 -04:00
parent 19d739c7fd
commit 077dc0f5eb
4 changed files with 5 additions and 17 deletions
+3 -3
View File
@@ -6,6 +6,8 @@ import type {
BlockMetrics,
TokenMetrics
} from './types';
import type { RenderContext } from './types/RenderContext';
import type { StatusJSON } from './types/StatusJSON';
import { StatusJSONSchema } from './types/StatusJSON';
import { updateColorMap } from './utils/colors';
import {
@@ -20,9 +22,7 @@ import {
import {
calculateMaxWidthsFromPreRendered,
preRenderAllWidgets,
renderStatusLine,
type RenderContext,
type StatusJSON
renderStatusLine
} from './utils/renderer';
async function readStdin(): Promise<string | null> {
+1 -1
View File
@@ -5,6 +5,7 @@ import {
} from 'ink';
import React from 'react';
import type { RenderContext } from '../../types/RenderContext';
import type { Settings } from '../../types/Settings';
import type { WidgetItem } from '../../types/Widget';
import {
@@ -12,7 +13,6 @@ import {
preRenderAllWidgets,
renderStatusLineWithInfo,
type PreRenderedWidget,
type RenderContext,
type RenderResult
} from '../../utils/renderer';
import { canDetectTerminalWidth } from '../../utils/terminal';
-12
View File
@@ -19,18 +19,6 @@ import {
import { getTerminalWidth } from './terminal';
import { getWidget } from './widgets';
// Re-export types for backward compatibility
export type { StatusJSON } from '../types/StatusJSON';
export type { TokenMetrics, TokenUsage, TranscriptLine } from '../types/TokenMetrics';
export type { RenderContext } from '../types/RenderContext';
// Color functions moved to colors.ts
// Re-exported for backward compatibility
export { applyColors } from './colors';
// Re-export getTerminalWidth for backward compatibility
export { getTerminalWidth };
// Helper function to format token counts
export function formatTokens(count: number): string {
if (count >= 1000000)
+1 -1
View File
@@ -5,7 +5,7 @@ import type {
WidgetEditorDisplay,
WidgetItem
} from '../types/Widget';
import { getTerminalWidth } from '../utils/renderer';
import { getTerminalWidth } from '../utils/terminal';
export class TerminalWidthWidget implements Widget {
getDefaultColor(): string { return 'gray'; }