mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Updating Roo-Cline with the latest cline/cline (11/22)
This commit is contained in:
@@ -30,7 +30,7 @@ Otherwise, if you have not completed the task and do not need additional informa
|
||||
|
||||
toolResult: (
|
||||
text: string,
|
||||
images?: string[]
|
||||
images?: string[],
|
||||
): string | Array<Anthropic.TextBlockParam | Anthropic.ImageBlockParam> => {
|
||||
if (images && images.length > 0) {
|
||||
const textBlock: Anthropic.TextBlockParam = { type: "text", text }
|
||||
@@ -76,7 +76,7 @@ Otherwise, if you have not completed the task and do not need additional informa
|
||||
})
|
||||
if (didHitLimit) {
|
||||
return `${sorted.join(
|
||||
"\n"
|
||||
"\n",
|
||||
)}\n\n(File list truncated. Use list_files on specific subdirectories if you need to explore further.)`
|
||||
} else if (sorted.length === 0 || (sorted.length === 1 && sorted[0] === "")) {
|
||||
return "No files found."
|
||||
@@ -105,7 +105,7 @@ const formatImagesIntoBlocks = (images?: string[]): Anthropic.ImageBlockParam[]
|
||||
type: "image",
|
||||
source: { type: "base64", media_type: mimeType, data: base64 },
|
||||
} as Anthropic.ImageBlockParam
|
||||
})
|
||||
})
|
||||
: []
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import path from 'path'
|
||||
|
||||
export const SYSTEM_PROMPT = async (
|
||||
cwd: string,
|
||||
supportsComputerUse: boolean
|
||||
supportsComputerUse: boolean,
|
||||
) => `You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.
|
||||
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user