1- import { Mode , isToolAllowedForMode , getModeConfig , modes } from "../../shared/modes"
2- import { validateToolUse } from "../mode-validator"
1+ import { isToolAllowedForMode , getModeConfig , modes , ModeConfig } from "../../shared/modes"
32import { TOOL_GROUPS } from "../../shared/tool-groups"
3+ import { validateToolUse } from "../mode-validator"
4+
45const [ codeMode , architectMode , askMode ] = modes . map ( ( mode ) => mode . slug )
56
67describe ( "mode-validator" , ( ) => {
@@ -49,7 +50,7 @@ describe("mode-validator", () => {
4950
5051 describe ( "custom modes" , ( ) => {
5152 it ( "allows tools from custom mode configuration" , ( ) => {
52- const customModes = [
53+ const customModes : ModeConfig [ ] = [
5354 {
5455 slug : "custom-mode" ,
5556 name : "Custom Mode" ,
@@ -65,7 +66,7 @@ describe("mode-validator", () => {
6566 } )
6667
6768 it ( "allows custom mode to override built-in mode" , ( ) => {
68- const customModes = [
69+ const customModes : ModeConfig [ ] = [
6970 {
7071 slug : codeMode ,
7172 name : "Custom Code Mode" ,
@@ -80,7 +81,7 @@ describe("mode-validator", () => {
8081 } )
8182
8283 it ( "respects tool requirements in custom modes" , ( ) => {
83- const customModes = [
84+ const customModes : ModeConfig [ ] = [
8485 {
8586 slug : "custom-mode" ,
8687 name : "Custom Mode" ,
0 commit comments