Updating Roo-Cline with the latest cline/cline (11/22)

This commit is contained in:
John Stearns
2024-11-22 15:28:46 -08:00
67 changed files with 22904 additions and 22914 deletions

View File

@@ -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
})
})
: []
}

View File

@@ -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.
====