Skip to content

Commit 4ccc470

Browse files
committed
chore: removed type-safety with pear API to fix build
1 parent 8ecb724 commit 4ccc470

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

package-lock.json

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@
384384
"@google/genai": "^0.9.0",
385385
"@mistralai/mistralai": "^1.3.6",
386386
"@modelcontextprotocol/sdk": "^1.7.0",
387-
"@pearai/core": "file:./../pearai-submodule/core",
388387
"@types/clone-deep": "^4.0.4",
389388
"@types/pdf-parse": "^1.1.4",
390389
"@types/tmp": "^0.2.6",

src/activate/registerPearListener.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as vscode from "vscode"
22
import { ClineProvider } from "../core/webview/ClineProvider"
33
import { assert } from "../utils/util"
44
import { PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG } from "../shared/modes"
5-
import { PearAIExtensionExports } from "@pearai/core"
5+
// import { PearAIExtensionExports } from "@pearai/core"
66

77
export 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
3131
export 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;

webview-ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"clean": "rimraf build"
1818
},
1919
"dependencies": {
20-
"@pearai/core": "file:./../../pearai-submodule/core",
2120
"@headlessui/react": "^2.2.0",
2221
"@heroicons/react": "^2.2.0",
2322
"@radix-ui/react-alert-dialog": "^1.1.6",

0 commit comments

Comments
 (0)