Skip to content

Commit fdeb8fd

Browse files
committed
fix: remove claude-code provider references and fix unused imports
1 parent 90754ad commit fdeb8fd

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/cloud/src/CloudService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { CloudServiceCallbacks } from "./types"
77
import type { AuthService } from "./auth"
88
import { WebAuthService, StaticTokenAuthService } from "./auth"
99
import type { SettingsService } from "./SettingsService"
10-
import { CloudSettingsService } from "./CloudSettingsService"
11-
import { StaticSettingsService } from "./StaticSettingsService"
10+
import { SettingsService as SettingsServiceImpl } from "./SettingsService"
1211
import { TelemetryClient } from "./TelemetryClient"
1312
import { ShareService } from "./ShareService"
1413

@@ -55,7 +54,7 @@ export class CloudService {
5554
this.authService.on("logged-out", this.authListener)
5655
this.authService.on("user-info", this.authListener)
5756

58-
this.settingsService = new SettingsService(this.context, this.authService, () =>
57+
this.settingsService = new SettingsServiceImpl(this.context, this.authService!, () =>
5958
this.callbacks.stateChanged?.(),
6059
)
6160
this.settingsService.initialize()

packages/types/src/__tests__/provider-settings.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ describe("getApiProtocol", () => {
88
expect(getApiProtocol("anthropic", "gpt-4")).toBe("anthropic")
99
})
1010

11-
it("should return 'anthropic' for claude-code provider", () => {
12-
expect(getApiProtocol("claude-code")).toBe("anthropic")
13-
expect(getApiProtocol("claude-code", "some-model")).toBe("anthropic")
14-
})
15-
1611
it("should return 'anthropic' for bedrock provider", () => {
1712
expect(getApiProtocol("bedrock")).toBe("anthropic")
1813
expect(getApiProtocol("bedrock", "gpt-4")).toBe("anthropic")

0 commit comments

Comments
 (0)