Skip to content

Commit 6e1e0c6

Browse files
committed
nit
1 parent e106860 commit 6e1e0c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+488
-487
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: 4 additions & 4 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;
@@ -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);

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
482482
| "experiments"
483483
>
484484
> = {},
485-
creatorModeConfig?: CreatorModeConfig,
485+
creatorModeConfig: CreatorModeConfig = { creatorMode: false },
486486
) {
487487
const {
488488
apiConfiguration,

src/i18n/locales/de/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"enter_valid_path": "Bitte gib einen gültigen Pfad ein"
8888
},
8989
"input": {
90-
"task_prompt": "Was soll Roo tun?",
90+
"task_prompt": "Was soll Agent tun?",
9191
"task_placeholder": "Gib deine Aufgabe hier ein"
9292
}
9393
}

src/i18n/locales/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"enter_valid_path": "Please enter a valid path"
8888
},
8989
"input": {
90-
"task_prompt": "What should Roo do?",
90+
"task_prompt": "What should Agent do?",
9191
"task_placeholder": "Type your task here"
9292
}
9393
}

src/i18n/locales/fr/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"enter_valid_path": "Veuillez entrer un chemin valide"
8888
},
8989
"input": {
90-
"task_prompt": "Que doit faire Roo ?",
90+
"task_prompt": "Que doit faire Agent ?",
9191
"task_placeholder": "Écris ta tâche ici"
9292
}
9393
}

src/i18n/locales/pt-BR/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"input": {
3-
"task_prompt": "O que você quer que o Roo faça?",
3+
"task_prompt": "O que você quer que o Agent faça?",
44
"task_placeholder": "Digite sua tarefa aqui"
55
},
66
"extension": {

src/i18n/locales/vi/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"enter_valid_path": "Vui lòng nhập đường dẫn hợp lệ"
8888
},
8989
"input": {
90-
"task_prompt": "Bạn muốn Roo làm gì?",
90+
"task_prompt": "Bạn muốn Agent làm gì?",
9191
"task_placeholder": "Nhập nhiệm vụ của bạn ở đây"
9292
}
9393
}

src/i18n/locales/zh-TW/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"enter_valid_path": "請輸入有效的路徑"
8888
},
8989
"input": {
90-
"task_prompt": "Roo 做什麼?",
90+
"task_prompt": "Agent 做什麼?",
9191
"task_placeholder": "在這裡輸入工作"
9292
}
9393
}

0 commit comments

Comments
 (0)