feature/recipe_implementation #5

Merged
gmgauthier merged 54 commits from feature/recipe_implementation into master 2026-03-07 23:17:54 +00:00
Showing only changes of commit d74c613e0f - Show all commits

View File

@ -21,6 +21,7 @@ var safeCommands = sync.OnceValue(func() map[string]bool {
data, err := os.ReadFile(cfgPath)
if err != nil {
// Fallback to a built-in safe list
fmt.Println("Could not read safe shell commands config, using built-in fallback")
return map[string]bool{
"ls": true, "pwd": true, "cat": true, "tree": true,
"find": true, "grep": true, "rg": true,
@ -30,7 +31,9 @@ var safeCommands = sync.OnceValue(func() map[string]bool {
"pytest": true, "poetry run pytest": true, "ctest": true,
"python -m pytest": true, "python": true, "poetry": true,
}
}
fmt.Println("Using safe shell commands config:", cfgPath)
var cfg struct {
SafeCommands []string `yaml:"safe_commands"`