fix(cli): store scope without @ in plugin.mod so Coords() yields single @

This commit is contained in:
Alex Dunmow 2026-06-03 07:02:35 +08:00
parent f232effe69
commit 12afdbd25e

View File

@ -558,7 +558,7 @@ func upsertPluginMod(scope, name, kind string, categories []string) error {
if mod.Plugin.Version == "" {
mod.Plugin.Version = "0.1.0"
}
mod.Plugin.Scope = scope
mod.Plugin.Scope = strings.TrimPrefix(scope, "@")
mod.Plugin.Name = name
mod.Plugin.Kind = kind
mod.Plugin.Categories = categories