refactor(workflow): streamline node metadata structure and enhance filtering logic

This commit is contained in:
twwu
2025-09-11 16:02:06 +08:00
parent 9458ebe320
commit 274e7f4f09
15 changed files with 86 additions and 76 deletions

View File

@ -6,6 +6,10 @@ import { BlockEnum } from '@/app/components/workflow/types'
const metaData = genNodeMetaData({
sort: 3.1,
type: BlockEnum.KnowledgeBase,
isRequired: true,
isUndeletable: true,
isSingleton: true,
isTypeFixed: true,
})
const nodeDefault: NodeDefault<KnowledgeBaseNodeType> = {
metaData,