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.

403 B
Raw Blame
function normalize(p: string): string {
  return p.replace(/\\/g, '/')
}

export function isExcludedCommandPath(relPath: string): boolean {
  return normalize(relPath)
    .split('/')
    .some((seg) => seg.startsWith('_'))
}

export function isCommandIndexPath(relPath: string): boolean {
  const n = normalize(relPath)
  if (!n.endsWith('/index.ts')) return false
  return !isExcludedCommandPath(n)
}