mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-07-18 12:17:14 +00:00
Imports cleanup
This commit is contained in:
+3
-3
@@ -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> {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'; }
|
||||
|
||||
Reference in New Issue
Block a user