feat(*): 创作配置 - 支持 Midjourney、多图保存与自定义公告
Co-authored-by: ddcat666 <26564566+ddcat666@users.noreply.github.com>
This commit is contained in:
1 parent
002a45f0c3
commit
853c7d2ce7
107 files changed
+9261
-408
No files matched your search
@@ -25,6 +25,7 @@ type PluginProviderCatalogItem struct {
|
||||
BaseURL string `json:"baseUrl,omitempty"`
|
||||
Enabled bool `json:"enabled"`
|
||||
UnavailableReason string `json:"unavailableReason,omitempty"`
|
||||
Parameters []protocol.Parameter `json:"parameters,omitempty"`
|
||||
Workflows []protocol.ManifestWorkflow `json:"workflows,omitempty"`
|
||||
}
|
||||
|
||||
@@ -39,7 +40,7 @@ func (s *Service) PluginProviderCatalog(scope, capability string, includeUnavail
|
||||
if !containsPluginSurface(provider.Scopes, wantScope) || (wantCapability != "" && !containsPluginCapability(provider.Capabilities, wantCapability)) {
|
||||
continue
|
||||
}
|
||||
item := PluginProviderCatalogItem{ID: provider.ID, Version: plugin.Manifest.Version, Name: provider.Label, Vendor: plugin.Manifest.Author, Categories: provider.Capabilities, Scopes: provider.Scopes, BaseURL: provider.BaseURL, Enabled: plugin.Status == "enabled", UnavailableReason: plugin.Error, Workflows: workflowsForProvider(plugin.Manifest.Contributes.Workflows, provider.ID)}
|
||||
item := PluginProviderCatalogItem{ID: provider.ID, Version: plugin.Manifest.Version, Name: provider.Label, Vendor: plugin.Manifest.Author, Categories: provider.Capabilities, Scopes: provider.Scopes, BaseURL: provider.BaseURL, Enabled: plugin.Status == "enabled", UnavailableReason: plugin.Error, Parameters: provider.Parameters, Workflows: workflowsForProvider(plugin.Manifest.Contributes.Workflows, provider.ID)}
|
||||
item.Create, item.Poll, item.ContentType = operationSummary(provider.Create), operationSummaryPtr(provider.Poll), provider.Create.ContentType
|
||||
// The registry metadata is the canonical provider projection. This keeps
|
||||
// host-backed dispatch paths out of every user-facing catalog consumer.
|
||||
|
||||
Reference in new issue
Block a user