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
@@ -2,8 +2,7 @@ package plugins
import "strings"
// extractElydoraScriptPath supports adapters that still use the legacy shared
// command-hook shape. Provider-specific adapters should define exact ownership.
// extractElydoraScriptPath reads the legacy shared command-hook shape.
func extractElydoraScriptPath(hookArray any) string {
entries, _ := hookArray.([]any)
for _, entry := range entries {