mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: resolve TypeScript errors in new_task.ts and tools.ts
- Add missing closing brace for permissions property in new_task.ts - Add task_queue, permissions, background to required array (strict mode) - Consolidate duplicate new_task entries in NativeToolArgs (tools.ts) - Consolidate duplicate params entries in NewTaskToolUse (tools.ts)
This commit is contained in:
parent
9ab2c19d4b
commit
01a5502461
2 changed files with 13 additions and 8 deletions
|
|
@ -44,12 +44,13 @@ export default {
|
|||
permissions: {
|
||||
type: ["string", "null"],
|
||||
description: PERMISSIONS_PARAMETER_DESCRIPTION,
|
||||
},
|
||||
background: {
|
||||
type: ["string", "null"],
|
||||
description: BACKGROUND_PARAMETER_DESCRIPTION,
|
||||
},
|
||||
},
|
||||
required: ["mode", "message", "todos"],
|
||||
required: ["mode", "message", "todos", "task_queue", "permissions", "background"],
|
||||
additionalProperties: false,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -105,9 +105,14 @@ export type NativeToolArgs = {
|
|||
edit_file: { file_path: string; old_string: string; new_string: string; expected_replacements?: number }
|
||||
apply_patch: { patch: string }
|
||||
list_files: { path: string; recursive?: boolean }
|
||||
new_task: { mode: string; message: string; todos?: string; task_queue?: string; permissions?: string }
|
||||
new_task: { mode: string; message: string; todos?: string; background?: string }
|
||||
new_task: { mode: string; message: string; todos?: string }
|
||||
new_task: {
|
||||
mode: string
|
||||
message: string
|
||||
todos?: string
|
||||
task_queue?: string
|
||||
permissions?: string
|
||||
background?: string
|
||||
}
|
||||
ask_followup_question: {
|
||||
question: string
|
||||
follow_up: Array<{ text: string; mode?: string }>
|
||||
|
|
@ -245,10 +250,9 @@ export interface SwitchModeToolUse extends ToolUse<"switch_mode"> {
|
|||
|
||||
export interface NewTaskToolUse extends ToolUse<"new_task"> {
|
||||
name: "new_task"
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "mode" | "message" | "todos" | "task_queue">>
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "mode" | "message" | "todos" | "permissions">>
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "mode" | "message" | "todos" | "background">>
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "mode" | "message" | "todos">>
|
||||
params: Partial<
|
||||
Pick<Record<ToolParamName, string>, "mode" | "message" | "todos" | "task_queue" | "permissions" | "background">
|
||||
>
|
||||
}
|
||||
|
||||
export interface RunSlashCommandToolUse extends ToolUse<"run_slash_command"> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue