Skip to content

Commit 236957b

Browse files
authored
Revert cloud agents for now (#8713)
1 parent f30caf2 commit 236957b

Some content is hidden

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

44 files changed

+480
-1182
lines changed

packages/cloud/src/CloudAPI.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { z } from "zod"
22

3-
import {
4-
type AuthService,
5-
type ShareVisibility,
6-
type ShareResponse,
7-
shareResponseSchema,
8-
type CloudAgent,
9-
cloudAgentsResponseSchema,
10-
} from "@roo-code/types"
3+
import { type AuthService, type ShareVisibility, type ShareResponse, shareResponseSchema } from "@roo-code/types"
114

125
import { getRooCodeApiUrl } from "./config.js"
136
import { getUserAgent } from "./utils.js"
@@ -141,16 +134,4 @@ export class CloudAPI {
141134
.parse(data),
142135
})
143136
}
144-
145-
async getCloudAgents(): Promise<CloudAgent[]> {
146-
this.log("[CloudAPI] Fetching cloud agents")
147-
148-
const agents = await this.request<CloudAgent[]>("/api/cloud-agents", {
149-
method: "GET",
150-
parseResponse: (data) => cloudAgentsResponseSchema.parse(data).data,
151-
})
152-
153-
this.log("[CloudAPI] Cloud agents response:", agents)
154-
return agents
155-
}
156137
}

packages/cloud/src/__tests__/CloudAPI.test.ts

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

packages/types/src/cloud.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -723,35 +723,6 @@ export type LeaveResponse = {
723723
timestamp?: string
724724
}
725725

726-
/**
727-
* CloudAgent
728-
*/
729-
730-
export interface CloudAgent {
731-
id: string
732-
name: string
733-
type: string // e.g., "PR Reviewer", "Documentation Writer"
734-
icon?: string // e.g., "pr-reviewer", "documentation-writer"
735-
}
736-
737-
/**
738-
* CloudAgents API Response
739-
*/
740-
741-
export const cloudAgentsResponseSchema = z.object({
742-
success: z.boolean(),
743-
data: z.array(
744-
z.object({
745-
id: z.string(),
746-
name: z.string(),
747-
type: z.string(),
748-
icon: z.string().optional(),
749-
}),
750-
),
751-
})
752-
753-
export type CloudAgentsResponse = z.infer<typeof cloudAgentsResponseSchema>
754-
755726
/**
756727
* UsageStats
757728
*/

packages/types/src/providers/chutes.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export const chutesModels = {
8787
supportsPromptCache: false,
8888
inputPrice: 0.23,
8989
outputPrice: 0.9,
90-
description:
91-
"DeepSeek‑V3.1‑Terminus is an update to V3.1 that improves language consistency by reducing CN/EN mix‑ups and eliminating random characters, while strengthening agent capabilities with notably better Code Agent and Search Agent performance.",
90+
description: "DeepSeek‑V3.1‑Terminus is an update to V3.1 that improves language consistency by reducing CN/EN mix‑ups and eliminating random characters, while strengthening agent capabilities with notably better Code Agent and Search Agent performance.",
9291
},
9392
"deepseek-ai/DeepSeek-V3.1-turbo": {
9493
maxTokens: 32768,
@@ -97,8 +96,7 @@ export const chutesModels = {
9796
supportsPromptCache: false,
9897
inputPrice: 1.0,
9998
outputPrice: 3.0,
100-
description:
101-
"DeepSeek-V3.1-turbo is an FP8, speculative-decoding turbo variant optimized for ultra-fast single-shot queries (~200 TPS), with outputs close to the originals and solid function calling/reasoning/structured output, priced at $1/M input and $3/M output tokens, using 2× quota per request and not intended for bulk workloads.",
99+
description: "DeepSeek-V3.1-turbo is an FP8, speculative-decoding turbo variant optimized for ultra-fast single-shot queries (~200 TPS), with outputs close to the originals and solid function calling/reasoning/structured output, priced at $1/M input and $3/M output tokens, using 2× quota per request and not intended for bulk workloads.",
102100
},
103101
"deepseek-ai/DeepSeek-V3.2-Exp": {
104102
maxTokens: 163840,
@@ -107,8 +105,7 @@ export const chutesModels = {
107105
supportsPromptCache: false,
108106
inputPrice: 0.25,
109107
outputPrice: 0.35,
110-
description:
111-
"DeepSeek-V3.2-Exp is an experimental LLM that introduces DeepSeek Sparse Attention to improve long‑context training and inference efficiency while maintaining performance comparable to V3.1‑Terminus.",
108+
description: "DeepSeek-V3.2-Exp is an experimental LLM that introduces DeepSeek Sparse Attention to improve long‑context training and inference efficiency while maintaining performance comparable to V3.1‑Terminus.",
112109
},
113110
"unsloth/Llama-3.3-70B-Instruct": {
114111
maxTokens: 32768, // From Groq
@@ -390,9 +387,8 @@ export const chutesModels = {
390387
contextWindow: 262144,
391388
supportsImages: true,
392389
supportsPromptCache: false,
393-
inputPrice: 0.16,
394-
outputPrice: 0.65,
395-
description:
396-
"Qwen3‑VL‑235B‑A22B‑Thinking is an open‑weight MoE vision‑language model (235B total, ~22B activated) optimized for deliberate multi‑step reasoning with strong text‑image‑video understanding and long‑context capabilities.",
390+
inputPrice: 0.1600,
391+
outputPrice: 0.6500,
392+
description: "Qwen3‑VL‑235B‑A22B‑Thinking is an open‑weight MoE vision‑language model (235B total, ~22B activated) optimized for deliberate multi‑step reasoning with strong text‑image‑video understanding and long‑context capabilities.",
397393
},
398394
} as const satisfies Record<string, ModelInfo>

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,12 @@ export class ClineProvider
10341034
window.__vite_plugin_react_preamble_installed__ = true
10351035
</script>
10361036
`
1037+
10371038
const csp = [
10381039
"default-src 'none'",
10391040
`font-src ${webview.cspSource} data:`,
10401041
`style-src ${webview.cspSource} 'unsafe-inline' https://* http://${localServerUrl} http://0.0.0.0:${localPort}`,
1041-
`img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com ${getRooCodeApiUrl()} data:`,
1042+
`img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com data:`,
10421043
`media-src ${webview.cspSource}`,
10431044
`script-src 'unsafe-eval' ${webview.cspSource} https://* https://*.posthog.com http://${localServerUrl} http://0.0.0.0:${localPort} 'nonce-${nonce}'`,
10441045
`connect-src ${webview.cspSource} https://* https://*.posthog.com ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort}`,
@@ -1123,7 +1124,7 @@ export class ClineProvider
11231124
<meta charset="utf-8">
11241125
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
11251126
<meta name="theme-color" content="#000000">
1126-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${webview.cspSource} data:; style-src ${webview.cspSource} 'unsafe-inline'; img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com ${getRooCodeApiUrl()} data:; media-src ${webview.cspSource}; script-src ${webview.cspSource} 'wasm-unsafe-eval' 'nonce-${nonce}' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src ${webview.cspSource} https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com;">
1127+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${webview.cspSource} data:; style-src ${webview.cspSource} 'unsafe-inline'; img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com data:; media-src ${webview.cspSource}; script-src ${webview.cspSource} 'wasm-unsafe-eval' 'nonce-${nonce}' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src ${webview.cspSource} https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com;">
11271128
<link rel="stylesheet" type="text/css" href="${stylesUri}">
11281129
<link href="${codiconsUri}" rel="stylesheet" />
11291130
<script nonce="${nonce}">

0 commit comments

Comments
 (0)