Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/shellforge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ sched.Wait()

func cmdEvaluate() {
// Read JSON from stdin, evaluate against governance, output JSON result.
// Used by Crush fork to check actions before execution.
// Used by govern-shell.sh (Goose) to check actions before execution.
data, err := io.ReadAll(os.Stdin)
if err != nil {
json.NewEncoder(os.Stdout).Encode(map[string]any{"allowed": true, "reason": "stdin read error"})
Expand All @@ -824,7 +824,7 @@ json.NewEncoder(os.Stdout).Encode(map[string]any{"allowed": true, "reason": "pol
return
}

// Map Crush tool names to ShellForge tool names
// Map tool names to ShellForge tool names
tool := input.Tool
params := map[string]string{"command": input.Action, "path": input.Path}

Expand Down
Loading