mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-22 05:11:06 -05:00
Add ClaudeDev and related packages; refactor sidebar utils
This commit is contained in:
5
src/shared/ClaudeRequestResult.ts
Normal file
5
src/shared/ClaudeRequestResult.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
interface ClaudeRequestResult {
|
||||
didCompleteTask: boolean
|
||||
inputTokens: number
|
||||
outputTokens: number
|
||||
}
|
||||
1
src/shared/Constants.ts
Normal file
1
src/shared/Constants.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const DEFAULT_MAX_REQUESTS_PER_TASK = 20
|
||||
13
src/shared/Tool.ts
Normal file
13
src/shared/Tool.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Anthropic } from "@anthropic-ai/sdk"
|
||||
|
||||
export type ToolName =
|
||||
| "write_to_file"
|
||||
| "read_file"
|
||||
| "list_files"
|
||||
| "execute_command"
|
||||
| "ask_followup_question"
|
||||
| "attempt_completion"
|
||||
|
||||
export type Tool = Omit<Anthropic.Tool, "name"> & {
|
||||
name: ToolName
|
||||
}
|
||||
Reference in New Issue
Block a user