chore(go): audit shared plugin helpers

Drop unused expandHome and standardizeJSONC, share the runtime base URL
validator between the guard and audit templates, and trim comments.

Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
This commit is contained in:
雷电芽衣 committed 2026-09-03 01:17:26 -04:00
1 parent 5e08ab20f5
commit b085947547
9 files changed
+42 -102

No files matched your search

+1 -2
View File
@@ -26,8 +26,7 @@ var SupportedAgents = map[string]AgentRegistryEntry{
"qwen": {Name: "Qwen Code", ConfigDir: "~/.qwen", ConfigFile: "settings.json"},
}
// NewPlugin creates a plugin instance for the given agent name.
// Returns nil if the agent is not supported.
// NewPlugin returns the plugin for an agent name, or nil when unsupported.
func NewPlugin(agentName string) AgentPlugin {
switch agentName {
case "augment":