Switch to the new Roo message parser (#3567)

This commit is contained in:
Chris Estreich 2025-05-13 12:40:30 -07:00 committed by hannesrudolph
parent d59a39f598
commit d8750edb94
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
Switch to the new Roo message parser

View file

@ -1,2 +1,3 @@
export { type AssistantMessageContent, parseAssistantMessage } from "./parseAssistantMessage"
export { presentAssistantMessage } from "./presentAssistantMessage"
export { parseAssistantMessageV2 } from "./parseAssistantMessageV2"

View file

@ -60,7 +60,11 @@ import { SYSTEM_PROMPT } from "../prompts/system"
import { ToolRepetitionDetector } from "../tools/ToolRepetitionDetector"
import { FileContextTracker } from "../context-tracking/FileContextTracker"
import { RooIgnoreController } from "../ignore/RooIgnoreController"
import { type AssistantMessageContent, parseAssistantMessage, presentAssistantMessage } from "../assistant-message"
import {
type AssistantMessageContent,
parseAssistantMessageV2 as parseAssistantMessage,
presentAssistantMessage,
} from "../assistant-message"
import { truncateConversationIfNeeded } from "../sliding-window"
import { ClineProvider } from "../webview/ClineProvider"
import { MultiSearchReplaceDiffStrategy } from "../diff/strategies/multi-search-replace"