Changeset 0.29.0 (#195)
This commit is contained in:
@@ -25,6 +25,10 @@ type PackageStore interface {
|
||||
// SetEnabled toggles a package's enabled state.
|
||||
SetEnabled(ctx context.Context, id string, enabled bool) error
|
||||
|
||||
// SetStatus transitions a package's lifecycle status.
|
||||
// Valid statuses: active, pending_review, suspended.
|
||||
SetStatus(ctx context.Context, id string, status string) error
|
||||
|
||||
// Delete removes a non-core package. Core packages cannot be deleted.
|
||||
Delete(ctx context.Context, id string) error
|
||||
|
||||
@@ -79,6 +83,7 @@ type PackageRegistration struct {
|
||||
InstalledBy *string `json:"installed_by,omitempty" db:"installed_by"`
|
||||
Manifest map[string]any `json:"manifest" db:"manifest"`
|
||||
Enabled bool `json:"enabled" db:"enabled"`
|
||||
Status string `json:"status" db:"status"`
|
||||
Source string `json:"source" db:"source"`
|
||||
InstalledAt string `json:"installed_at" db:"installed_at"`
|
||||
UpdatedAt string `json:"updated_at" db:"updated_at"`
|
||||
|
||||
Reference in New Issue
Block a user