File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +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"
56
67export const getPearaiExtension = async ( ) => {
78 const pearAiExtension = vscode . extensions . getExtension ( "pearai.pearai" )
@@ -16,7 +17,7 @@ export const getPearaiExtension = async () => {
1617}
1718
1819// TODO: TYPES
19- export const getpearAIExports = async ( ) => {
20+ export const getpearAIExports = async ( ) : Promise < PearAIExtensionExports > => {
2021 const pearAiExtension = await getPearaiExtension ( )
2122
2223 assert ( ! ! pearAiExtension . exports , "⚠️⚠️ Error, no PearAI Exports could be found :( ⚠️⚠️" ) ;
@@ -30,8 +31,7 @@ type CreatorModeState = "OVERLAY_CLOSED" | "OVERLAY_OPEN" | "OVERLAY_CLOSED_CREA
3031export const registerPearListener = async ( provider : ClineProvider ) => {
3132 // Getting the pear ai extension instance
3233 const exports = await getpearAIExports ( )
33-
34- exports . pearAPI . creatorMode . onDidRequestExecutePlan ( async ( msg : any ) => {
34+ exports . pearAPI . creatorMode . onDidRequestExecutePlan ( async ( msg ) => {
3535 console . dir ( `onDidRequestNewTask triggered with: ${ JSON . stringify ( msg ) } ` )
3636
3737 let canContinue = false ;
You can’t perform that action at this time.
0 commit comments