fix(workflow): replace hardcoded trigger node logic with metadata-driven approach

- Add isStart: true to all trigger nodes (TriggerWebhook, TriggerSchedule, TriggerPlugin)
- Replace hardcoded BlockEnum checks in use-checklist.ts with metadata-driven logic
- Update trigger node tests to validate metadata instead of obsolete methods
- Add webhook URL validation to TriggerWebhook node
- Ensure backward compatibility with existing workflow configurations

This change migrates from hardcoded trigger node identification to a
centralized metadata-driven approach, improving maintainability and
consistency across the workflow system.
This commit is contained in:
lyzno1
2025-09-26 22:35:21 +08:00
parent 8feef2c1a9
commit 60c86dd8d1
6 changed files with 23 additions and 23 deletions

View File

@ -6,6 +6,7 @@ import type { PluginTriggerNodeType } from './types'
const metaData = genNodeMetaData({
sort: 1,
type: BlockEnum.TriggerPlugin,
isStart: true,
})
const nodeDefault: NodeDefault<PluginTriggerNodeType> = {