Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

554 B
Raw Blame
import type { ActionItem } from './types'
import { findWorkflowNodes } from '@/app/components/workflow/goto-anything-search'

export const workflowNodesAction: ActionItem = {
  key: '@node',
  shortcut: '@node',
  title: 'Search Workflow Nodes',
  description: 'Find and jump to nodes in the current workflow by name or type',
  source: 'local',
  search: (_, searchTerm = '', _locale) => {
    try {
      return findWorkflowNodes(searchTerm)
    } catch (error) {
      console.warn('Workflow nodes search failed:', error)
      return []
    }
  },
}