wip: start to experiment excluding allowed commands with specific args

tauraamui created

Change summary

internal/config/config.go | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

Detailed changes

internal/config/config.go 🔗

@@ -323,8 +323,15 @@ type ToolLs struct {
 }
 
 type ToolBash struct {
-	DisableDefaults bool     `json:"disable_banned_defaults,omitempty"`
-	BannedCommands  []string `json:"banned_commands,omitempty"`
+	DisableDefaults bool                      `json:"disable_banned_defaults,omitempty"`
+	BannedCommands  []string                  `json:"banned_commands,omitempty"`
+	SubCommands     BannedToolArgsAndOrParams `json:"banned_sub_commands"`
+}
+
+type BannedToolArgsAndOrParams struct {
+	Command string   `json:"command"`
+	Args    []string `json:"args"`
+	Params  []string `json:"params"`
 }
 
 func (t ToolLs) Limits() (depth, items int) {