From 76ea96e1f3d4a6a4e46d3017c242c9197608dde8 Mon Sep 17 00:00:00 2001 From: nang-dev Date: Wed, 9 Apr 2025 14:10:49 -0400 Subject: [PATCH 1/2] added --- src/activate/registerCommands.ts | 2 +- src/api/providers/pearai/pearai.ts | 2 +- src/core/Cline.ts | 2 +- src/extension.ts | 4 ++-- src/services/mcp/McpHub.ts | 5 ++++- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/activate/registerCommands.ts b/src/activate/registerCommands.ts index d271a054349..2d1718d9867 100644 --- a/src/activate/registerCommands.ts +++ b/src/activate/registerCommands.ts @@ -106,7 +106,7 @@ const openClineInNewTab = async ({ context, outputChannel }: Omit { const modelId = options.apiModelId || "pearai-model" - if (modelId === "pearai-model") { + if (modelId.startsWith("pearai-model")) { try { const response = await fetch(`${PEARAI_URL}/getPearAIAgentModels`) if (!response.ok) { diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 0c31b30d648..6cb26fbbc61 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -3294,7 +3294,7 @@ export class Cline extends EventEmitter { "mistake_limit_reached", this.api.getModel().id.includes("claude") ? `This may indicate a failure in his thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").` - : "Roo Code uses complex prompts and iterative task execution that may be challenging for less capable models. For best results, it's recommended to use Claude 3.7 Sonnet for its advanced agentic coding capabilities.", + : "Agent uses complex prompts and iterative task execution that may be challenging for less capable models. For best results, it's recommended to use Claude 3.7 Sonnet for its advanced agentic coding capabilities.", ) if (response === "messageResponse") { userContent.push( diff --git a/src/extension.ts b/src/extension.ts index f90dcf8ab4e..1d453ac13f2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -170,7 +170,7 @@ export function activate(context: vscode.ExtensionContext) { // ) const openClineInNewTab = async () => { - outputChannel.appendLine("Opening Roo Code in new tab") + outputChannel.appendLine("Opening Agent in new tab") // (this example uses webviewProvider activation event which is necessary to deserialize cached webview, but since we use retainContextWhenHidden, we don't need to use that event) // https://github.com/microsoft/vscode-extension-samples/blob/main/webview-sample/src/extension.ts const tabProvider = new ClineProvider(context, outputChannel) @@ -184,7 +184,7 @@ export function activate(context: vscode.ExtensionContext) { } const targetCol = hasVisibleEditors ? Math.max(lastCol + 1, 1) : vscode.ViewColumn.Two - const panel = vscode.window.createWebviewPanel(ClineProvider.tabPanelId, "Roo Code", targetCol, { + const panel = vscode.window.createWebviewPanel(ClineProvider.tabPanelId, "Agent", targetCol, { enableScripts: true, retainContextWhenHidden: true, localResourceRoots: [context.extensionUri], diff --git a/src/services/mcp/McpHub.ts b/src/services/mcp/McpHub.ts index ad481a16d3d..0878396226e 100644 --- a/src/services/mcp/McpHub.ts +++ b/src/services/mcp/McpHub.ts @@ -220,7 +220,10 @@ export class McpHub { mcpSettingsFilePath, `{ "mcpServers": { +<<<<<<< Updated upstream +======= +>>>>>>> Stashed changes } }`, ) @@ -390,7 +393,7 @@ export class McpHub { try { const client = new Client( { - name: "Roo Code", + name: "Agent", version: this.providerRef.deref()?.context.extension?.packageJSON?.version ?? "1.0.0", }, { From 0fdbeda1ba2980de56b0977d7893aac8f0efa650 Mon Sep 17 00:00:00 2001 From: nang-dev Date: Wed, 9 Apr 2025 14:23:09 -0400 Subject: [PATCH 2/2] Added smart and claude 3.7 --- src/services/mcp/McpHub.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/services/mcp/McpHub.ts b/src/services/mcp/McpHub.ts index 0878396226e..874d1391a70 100644 --- a/src/services/mcp/McpHub.ts +++ b/src/services/mcp/McpHub.ts @@ -220,10 +220,6 @@ export class McpHub { mcpSettingsFilePath, `{ "mcpServers": { -<<<<<<< Updated upstream - -======= ->>>>>>> Stashed changes } }`, )