From 3ac0fbb6d70034e4ec7ac9aeba8c69d675ac92ad Mon Sep 17 00:00:00 2001 From: kami Date: Thu, 30 Jul 2026 23:40:45 +0400 Subject: [PATCH] gofmt ToolMapping struct alignment The review flagged three files as unformatted at HEAD. systemd.go was deleted and handler.go/client.go were reformatted as a side effect of being edited; this is the remaining realignment. No behaviour change. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Uea55zaiWuEByEDC4UBSdd --- internal/provider/workspace_mcp.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/provider/workspace_mcp.go b/internal/provider/workspace_mcp.go index c45e502..a268ed0 100644 --- a/internal/provider/workspace_mcp.go +++ b/internal/provider/workspace_mcp.go @@ -50,13 +50,13 @@ type ToolAllowlist struct { } type ToolMapping struct { - Capability string `yaml:"capability" json:"capability"` - Risk string `yaml:"risk" json:"risk"` - TargetType string `yaml:"target_type,omitempty" json:"target_type,omitempty"` - ReadOnly bool `yaml:"read_only" json:"read_only"` - SideEffects string `yaml:"side_effects,omitempty" json:"side_effects,omitempty"` - Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` - AllowParams []string `yaml:"allow_params,omitempty" json:"allow_params,omitempty"` + Capability string `yaml:"capability" json:"capability"` + Risk string `yaml:"risk" json:"risk"` + TargetType string `yaml:"target_type,omitempty" json:"target_type,omitempty"` + ReadOnly bool `yaml:"read_only" json:"read_only"` + SideEffects string `yaml:"side_effects,omitempty" json:"side_effects,omitempty"` + Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` + AllowParams []string `yaml:"allow_params,omitempty" json:"allow_params,omitempty"` } func (r *ToolAllowlist) IsEnabled(name string) bool {