feat: update model and script to use package_canonical instead of registry_canonical
This commit is contained in:
parent
81ac59bf8b
commit
5ef4d769ed
2 changed files with 12 additions and 9 deletions
|
|
@ -33,11 +33,14 @@ type Entry struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Repository struct {
|
type Repository struct {
|
||||||
|
ID string `json:"id,omitempty"`
|
||||||
URL string `json:"url,omitempty"`
|
URL string `json:"url,omitempty"`
|
||||||
|
Source string `json:"source,omitempty"`
|
||||||
SubFolder string `json:"subfolder,omitempty"`
|
SubFolder string `json:"subfolder,omitempty"`
|
||||||
Branch string `json:"branch,omitempty"`
|
Branch string `json:"branch,omitempty"`
|
||||||
Commit string `json:"commit,omitempty"`
|
Commit string `json:"commit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type VersionDetail struct {
|
type VersionDetail struct {
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
ReleaseDate string `json:"release_date,omitempty"` //RFC 3339 date format
|
ReleaseDate string `json:"release_date,omitempty"` //RFC 3339 date format
|
||||||
|
|
@ -45,14 +48,14 @@ type VersionDetail struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServerDetail struct {
|
type ServerDetail struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
VersionDetail VersionDetail `json:"version_detail,omitempty"`
|
VersionDetail VersionDetail `json:"version_detail,omitempty"`
|
||||||
Repository Repository `json:"-"` // Not included in the JSON response
|
Repository Repository `json:"repository,omitempty"`
|
||||||
RegistryCanonical string `json:"-"` // Not included in the JSON response
|
PackageCanonical string `json:"package_canonical,omitempty"`
|
||||||
Registries []Registries `json:"registries,omitempty"`
|
Registries []Registries `json:"registries,omitempty"`
|
||||||
Remotes []Remotes `json:"remotes,omitempty"`
|
Remotes []Remotes `json:"remotes,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Registries struct {
|
type Registries struct {
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ cat > "$PAYLOAD_FILE" << EOF
|
||||||
"url": "https://github.com/example/test-mcp-server",
|
"url": "https://github.com/example/test-mcp-server",
|
||||||
"branch": "main"
|
"branch": "main"
|
||||||
},
|
},
|
||||||
"registry_canonical": "test-mcp-server",
|
"package_canonical": "test-mcp-server",
|
||||||
"registries": [
|
"registries": [
|
||||||
{
|
{
|
||||||
"name": "npm",
|
"name": "npm",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue