diff --git a/internal/cli/doctor.go b/internal/cli/doctor.go index cbb30d8..7148807 100644 --- a/internal/cli/doctor.go +++ b/internal/cli/doctor.go @@ -431,7 +431,7 @@ func checkRecommendations(cfg *config.Config) []DoctorCheck { // so that suggestions are suppressed regardless of whether the user's config // uses the short or prefixed plugin name. configured := map[string]bool{} - categoryPrefixes := []string{"provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-"} + categoryPrefixes := []string{"provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-", "packager-", "publisher-"} registerName := func(raw string) { name := strings.ToLower(strings.TrimSpace(raw)) if name == "" { diff --git a/internal/cli/root.go b/internal/cli/root.go index 464eb1a..ee82efa 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -1151,7 +1151,7 @@ func legacyPluginBinaryName(uses string) string { uses = uses[:idx] } lower := strings.ToLower(uses) - for _, prefix := range []string{"provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-"} { + for _, prefix := range []string{"provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-", "packager-", "publisher-"} { if strings.HasPrefix(lower, prefix) { uses = uses[len(prefix):] break diff --git a/internal/registry/metadata.go b/internal/registry/metadata.go index e0ca344..c8eb68a 100644 --- a/internal/registry/metadata.go +++ b/internal/registry/metadata.go @@ -56,7 +56,7 @@ type Compatibility struct { // ("github-actions", "github", "go"), so FindPlugin strips these prefixes as a // fallback when no exact match is found. var categoryPrefixes = []string{ - "provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-", + "provider-", "condition-", "analyzer-", "generator-", "updater-", "hook-", "packager-", "publisher-", } // FindPlugin returns the registry entry for the named plugin.