Skip to content

Commit bb58c5b

Browse files
committed
chore(knip): enable production mode and address all warnings
1 parent bf87de9 commit bb58c5b

61 files changed

Lines changed: 121 additions & 3353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@roo-code/vscode-shim": "workspace:^",
2929
"@vscode/ripgrep": "^1.15.9",
3030
"commander": "^12.1.0",
31-
"execa": "^9.5.2",
3231
"fuzzysort": "^3.1.0",
3332
"ink": "^6.6.0",
3433
"p-wait-for": "^5.0.2",
@@ -41,6 +40,7 @@
4140
"@types/node": "22.20.1",
4241
"@types/react": "18.3.31",
4342
"@vitest/coverage-v8": "4.1.9",
43+
"execa": "^9.5.2",
4444
"ink-testing-library": "4.0.0",
4545
"rimraf": "6.0.1",
4646
"tsup": "8.5.1",

apps/cli/src/agent/extension-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ export class ExtensionClient {
542542
/**
543543
* Create a mock client for testing.
544544
*
545+
* @internal
545546
* The mock client captures all sent messages for verification.
546547
*
547548
* @returns An object with the client and captured messages

apps/cli/src/lib/storage/credentials.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export interface Credentials {
1212
orgId?: string
1313
}
1414

15+
/**
16+
* @internal
17+
*/
1518
export async function saveToken(token: string, options?: { userId?: string; orgId?: string }): Promise<void> {
1619
await fs.mkdir(getConfigDir(), { recursive: true })
1720

apps/cli/src/lib/storage/settings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export async function saveSettings(settings: Partial<CliSettings>): Promise<void
3535
})
3636
}
3737

38+
/**
39+
* @internal
40+
*/
3841
export async function resetOnboarding(): Promise<void> {
3942
await saveSettings({ onboardingProviderChoice: undefined })
4043
}

apps/cli/src/lib/task-history/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { arePathsEqual } from "@/lib/utils/path.js"
77

88
const DEFAULT_CLI_TASK_STORAGE_PATH = path.join(os.homedir(), ".vscode-mock", "global-storage")
99

10+
/**
11+
* @internal
12+
*/
1013
export function getDefaultCliTaskStoragePath(): string {
1114
return DEFAULT_CLI_TASK_STORAGE_PATH
1215
}

apps/cli/src/ui/components/Icon.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ export function isNerdFontSupported(): boolean {
103103

104104
/**
105105
* Reset the Nerd Font detection cache (useful for testing).
106+
*
107+
* @internal
106108
*/
107109
export function resetNerdFontCache(): void {
108110
nerdFontSupported = null
@@ -164,6 +166,8 @@ export function Icon({ name, useNerdFont, width = 2, color, ...textProps }: Icon
164166

165167
/**
166168
* Get the raw icon character (useful for string concatenation).
169+
*
170+
* @internal
167171
*/
168172
export function getIconChar(name: IconName, useNerdFont?: boolean): string {
169173
const iconDef = ICONS[name]

apps/cli/src/ui/components/TodoChangeDisplay.tsx

Lines changed: 0 additions & 142 deletions
This file was deleted.

apps/cli/src/ui/components/__tests__/TodoChangeDisplay.test.tsx

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)