mirror of
https://github.com/langgenius/dify.git
synced 2026-03-11 10:17:50 +08:00
Detect uninstalled model plugins for LLM nodes in the checklist and publish-gate. Migrate ChecklistItem.errorMessage to errorMessages[] so a single node can surface multiple validation issues at once. - Extract shared extractPluginId utility for checklist and prompt editor - Build installed-plugin Set (O(1) lookup) from ProviderContext - Remove short-circuit between checkValid and variable validation - Sync the same check into handleCheckBeforePublish - Adapt node-group, use-last-run, and test assertions
5 lines
164 B
TypeScript
5 lines
164 B
TypeScript
export function extractPluginId(provider: string): string {
|
|
const parts = provider.split('/')
|
|
return parts.length >= 2 ? `${parts[0]}/${parts[1]}` : provider
|
|
}
|