Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions packages/cli/src/ui/hooks/useRefreshMemoryCommand.ts

This file was deleted.

76 changes: 0 additions & 76 deletions packages/cli/src/ui/hooks/useShowMemoryCommand.ts

This file was deleted.

34 changes: 1 addition & 33 deletions packages/cli/src/ui/themes/semantic-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { lightTheme, darkTheme, ansiTheme } from './theme.js';
import { lightTheme, darkTheme } from './theme.js';

export interface SemanticColors {
text: {
Expand Down Expand Up @@ -101,35 +101,3 @@ export const darkSemanticColors: SemanticColors = {
warning: darkTheme.AccentYellow,
},
};

export const ansiSemanticColors: SemanticColors = {
text: {
primary: ansiTheme.Foreground,
secondary: ansiTheme.Gray,
link: ansiTheme.AccentBlue,
accent: ansiTheme.AccentPurple,
response: ansiTheme.Foreground,
},
background: {
primary: ansiTheme.Background,
diff: {
added: ansiTheme.DiffAdded,
removed: ansiTheme.DiffRemoved,
},
},
border: {
default: ansiTheme.Gray,
focused: ansiTheme.AccentBlue,
},
ui: {
comment: ansiTheme.Comment,
symbol: ansiTheme.Gray,
dark: ansiTheme.DarkGray,
gradient: ansiTheme.GradientColors,
},
status: {
error: ansiTheme.AccentRed,
success: ansiTheme.AccentGreen,
warning: ansiTheme.AccentYellow,
},
};
7 changes: 0 additions & 7 deletions packages/cli/src/ui/utils/textUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,6 @@ export const getCachedStringWidth = (str: string): number => {
return width;
};

/**
* Clear the string width cache
*/
export const clearStringWidthCache = (): void => {
stringWidthCache.clear();
};

const regex = ansiRegex();

/* Recursively traverses a JSON-like structure (objects, arrays, primitives)
Expand Down
19 changes: 0 additions & 19 deletions packages/core/src/utils/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,6 @@ export function disableSimulationAfterFallback(): void {
fallbackOccurred = true;
}

/**
* Create a simulated 429 error response
*/
export function createSimulated429Error(): Error {
const error = new Error('Rate limit exceeded (simulated)') as Error & {
status: number;
};
error.status = 429;
return error;
}

/**
* Reset simulation state when switching auth methods
*/
export function resetSimulationState(): void {
fallbackOccurred = false;
resetRequestCounter();
}

/**
* Enable/disable 429 simulation programmatically (for tests)
*/
Expand Down
Loading