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.

763 B
Raw Blame
import { useStore } from '../store'

// The full editors have their own interaction suites. At the page boundary, read the
// graph initialized by the real provider instead of capturing provider props in a mock.
export function WorkflowInitializationProbe() {
  const graph = useStore((state) => state.workflowHistory)
  const draftHash = useStore((state) => state.syncWorkflowDraftHash)

  return (
    <>
      <output aria-label="Initialized nodes">
        {graph.nodes.map((node) => `${node.id}:${node.data.title}`).join(',')}
      </output>
      <output aria-label="Initialized edges">
        {graph.edges.map((edge) => `${edge.source}->${edge.target}`).join(',')}
      </output>
      <output aria-label="Draft hash">{draftHash}</output>
    </>
  )
}