@@ -2,7 +2,7 @@ import * as vscode from "vscode"
22import { ClineProvider } from "../core/webview/ClineProvider"
33import { assert } from "../utils/util"
44import { PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG } from "../shared/modes"
5- import { PearAIExtensionExports } from "@pearai/core"
5+ // import { PearAIExtensionExports } from "@pearai/core"
66
77export const getPearaiExtension = async ( ) => {
88 const pearAiExtension = vscode . extensions . getExtension ( "pearai.pearai" )
@@ -17,7 +17,7 @@ export const getPearaiExtension = async () => {
1717}
1818
1919// TODO: TYPES
20- export const getpearAIExports = async ( ) : Promise < PearAIExtensionExports > => {
20+ export const getpearAIExports = async ( ) : Promise < any > => {
2121 const pearAiExtension = await getPearaiExtension ( )
2222
2323 assert ( ! ! pearAiExtension . exports , "⚠️⚠️ Error, no PearAI Exports could be found :( ⚠️⚠️" ) ;
@@ -31,7 +31,7 @@ type CreatorModeState = "OVERLAY_CLOSED" | "OVERLAY_OPEN" | "OVERLAY_CLOSED_CREA
3131export const registerPearListener = async ( provider : ClineProvider ) => {
3232 // Getting the pear ai extension instance
3333 const exports = await getpearAIExports ( )
34- exports . pearAPI . creatorMode . onDidRequestExecutePlan ( async ( msg ) => {
34+ exports . pearAPI . creatorMode . onDidRequestExecutePlan ( async ( msg : any ) => {
3535 console . dir ( `onDidRequestNewTask triggered with: ${ JSON . stringify ( msg ) } ` )
3636
3737 let canContinue = false ;
@@ -69,7 +69,7 @@ export const registerPearListener = async (provider: ClineProvider) => {
6969
7070
7171 // Initialize with task
72- await provider . initClineWithTask ( msg . plan , undefined , undefined , undefined , creatorModeConfig ) ;
72+ await provider . initClineWithTask ( msg . plan , msg . images , undefined , undefined , creatorModeConfig ) ;
7373 } ) ;
7474 // If there's a creator event in the cache after the extensions were refreshed, we need to get it!
7575 exports . pearAPI . creatorMode . triggerCachedCreatorEvent ( true ) ;
0 commit comments