Skip to content

Commit bee7a7b

Browse files
committed
Merge remote-tracking branch 'origin/refactor-mcp' into refactor-mcp
# Conflicts: # src/core/webview/webviewMessageHandler.ts # webview-ui/src/components/settings/constants.ts
2 parents 9290990 + 0bf24ee commit bee7a7b

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

src/core/Cline.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import { HistoryItem } from "../shared/HistoryItem"
3535
import { ClineAskResponse } from "../shared/WebviewMessage"
3636
import { defaultModeSlug, getModeBySlug } from "../shared/modes"
3737
import { ToolParamName, ToolResponse, DiffStrategy } from "../shared/tools"
38-
import { getTaskDirectoryPath } from "../shared/storagePathManager"
3938

4039
// services
4140
import { UrlContentFetcher } from "../services/browser/UrlContentFetcher"
@@ -296,16 +295,6 @@ export class Cline extends EventEmitter<ClineEvents> {
296295

297296
// API Messages
298297

299-
private async ensureTaskDirectoryExists(): Promise<string> {
300-
const globalStoragePath = this.providerRef.deref()?.context.globalStorageUri.fsPath
301-
if (!globalStoragePath) {
302-
throw new Error("Global storage uri is invalid")
303-
}
304-
305-
// Use storagePathManager to retrieve the task storage directory
306-
return getTaskDirectoryPath(globalStoragePath, this.taskId)
307-
}
308-
309298
private async getSavedApiConversationHistory(): Promise<Anthropic.MessageParam[]> {
310299
return readApiMessages({ taskId: this.taskId, globalStoragePath: this.globalStoragePath })
311300
}

src/core/__tests__/Cline.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jest.mock("../ignore/RooIgnoreController")
2626

2727
// Mock storagePathManager to prevent dynamic import issues
2828
jest.mock("../../shared/storagePathManager", () => ({
29-
__esModule: true,
3029
getTaskDirectoryPath: jest
3130
.fn()
3231
.mockImplementation((globalStoragePath, taskId) => Promise.resolve(`${globalStoragePath}/tasks/${taskId}`)),

webview-ui/src/components/settings/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
ProviderName,
2+
ApiProvider,
33
ModelInfo,
44
anthropicModels,
55
bedrockModels,
@@ -17,7 +17,7 @@ export { REASONING_MODELS, PROMPT_CACHING_MODELS } from "@roo/shared/api"
1717

1818
export { AWS_REGIONS } from "@roo/shared/aws_regions"
1919

20-
export const MODELS_BY_PROVIDER: Partial<Record<ProviderName, Record<string, ModelInfo>>> = {
20+
export const MODELS_BY_PROVIDER: Partial<Record<ApiProvider, Record<string, ModelInfo>>> = {
2121
anthropic: anthropicModels,
2222
bedrock: bedrockModels,
2323
deepseek: deepSeekModels,
@@ -47,7 +47,7 @@ export const PROVIDERS = [
4747
{ value: "unbound", label: "Unbound" },
4848
{ value: "requesty", label: "Requesty" },
4949
{ value: "human-relay", label: "Human Relay" },
50-
{ value: "xai", label: "xAI (Grok)" },
50+
{ value: "xai", label: "xAI" },
5151
{ value: "groq", label: "Groq" },
5252
{ value: "chutes", label: "Chutes AI" },
5353
].sort((a, b) => a.label.localeCompare(b.label))

0 commit comments

Comments
 (0)