File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ import {
3232 isBlockingAsk ,
3333} from "@roo-code/types"
3434import { 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
3839import { 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 )
1617import { TelemetryService , PostHogTelemetryClient } from "@roo-code/telemetry"
1718
1819import "./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 )
You can’t perform that action at this time.
0 commit comments