File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ const toolGroups: Record<ToolGroup, true> = {
7777 modes : true ,
7878}
7979
80- const toolGroupKeys = Object . keys ( toolGroups ) as ToolGroup [ ]
80+ const TOOL_GROUPS = Object . keys ( toolGroups ) as ToolGroup [ ]
8181
82- const TOOL_GROUPS : [ ToolGroup , ...ToolGroup [ ] ] = [ toolGroupKeys [ 0 ] , ...toolGroupKeys . slice ( 1 ) . map ( ( p ) => p ) ]
82+ const toolGroupsEnum : [ ToolGroup , ...ToolGroup [ ] ] = [ TOOL_GROUPS [ 0 ] , ...TOOL_GROUPS . slice ( 1 ) . map ( ( p ) => p ) ]
8383
8484/**
8585 * Language
@@ -370,7 +370,7 @@ const taskHistorySchema = z.object({
370370 size : z . number ( ) . optional ( ) ,
371371} )
372372
373- const toolGroupSchema = z . enum ( TOOL_GROUPS )
373+ const toolGroupSchema = z . enum ( toolGroupsEnum )
374374
375375const groupEntrySchema = z . union ( [
376376 toolGroupSchema ,
Original file line number Diff line number Diff line change 1+ import type { ToolGroup } from "../exports/roo-code"
2+
13// Define tool group configuration
24export type ToolGroupConfig = {
35 tools : readonly string [ ]
@@ -23,7 +25,7 @@ export const TOOL_DISPLAY_NAMES = {
2325 new_task : "create new task" ,
2426} as const
2527
26- export type ToolGroup = "read" | "edit" | "browser" | "command" | "mcp" | "modes"
28+ export type { ToolGroup }
2729
2830// Define available tool groups
2931export const TOOL_GROUPS : Record < ToolGroup , ToolGroupConfig > = {
You can’t perform that action at this time.
0 commit comments