Skip to content

Commit f546851

Browse files
committed
working after merge aug13
1 parent 7c16a04 commit f546851

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/core/task/Task.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import {
3232
isBlockingAsk,
3333
} from "@roo-code/types"
3434
import { TelemetryService } from "@roo-code/telemetry"
35-
import { CloudService, TaskBridgeService } from "@roo-code/cloud"
35+
import * as CloudModule from "@roo-code/cloud"
36+
const { CloudService, TaskBridgeService } = (CloudModule as any).default ?? (CloudModule as any)
3637

3738
// api
3839
import { ApiHandler, ApiHandlerCreateMessageMetadata, buildApiHandler } from "../../api"
@@ -240,7 +241,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
240241

241242
// Task Bridge
242243
enableTaskBridge: boolean
243-
bridgeService: TaskBridgeService | null = null
244+
bridgeService: any | null = null
244245

245246
// Streaming
246247
isWaitingForFirstChunk = false

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,11 +2137,9 @@ export class ClineProvider
21372137
* Manages UnifiedBridgeService lifecycle
21382138
*/
21392139
public async handleRemoteControlToggle(enabled: boolean) {
2140-
const {
2141-
CloudService: CloudServiceImport,
2142-
ExtensionBridgeService,
2143-
TaskBridgeService,
2144-
} = await import("@roo-code/cloud")
2140+
const cloudMod = await import("@roo-code/cloud")
2141+
const cloud = (cloudMod as any).default ?? (cloudMod as any)
2142+
const { CloudService: CloudServiceImport, ExtensionBridgeService, TaskBridgeService } = cloud
21452143

21462144
const userInfo = CloudServiceImport.instance.getUserInfo()
21472145

src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ try {
1212
console.warn("Failed to load environment variables:", e)
1313
}
1414

15-
import { CloudService, ExtensionBridgeService } from "@roo-code/cloud"
15+
import * as CloudModule from "@roo-code/cloud"
16+
const { CloudService, ExtensionBridgeService } = (CloudModule as any).default ?? (CloudModule as any)
1617
import { TelemetryService, PostHogTelemetryClient } from "@roo-code/telemetry"
1718

1819
import "./utils/path" // Necessary to have access to String.prototype.toPosix.
@@ -131,7 +132,7 @@ export async function activate(context: vscode.ExtensionContext) {
131132
cloudService.on("auth-state-changed", postStateListener)
132133
cloudService.on("settings-updated", postStateListener)
133134

134-
cloudService.on("user-info", async ({ userInfo }) => {
135+
cloudService.on("user-info", async ({ userInfo }: { userInfo: any }) => {
135136
postStateListener()
136137

137138
const bridgeConfig = await cloudService.cloudAPI?.bridgeConfig().catch(() => undefined)

0 commit comments

Comments
 (0)