def top
import ezx@1.11.0.0/src/add/hub.bend as Hubimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
211# the first top-level `.bend` file, in manifest order, "" for none
212def top(fs: List<&2, K.Item>) -> String:
213 match fs:
214 case []:
215 ""
216 case +h <> t:
217 top.at(top.one(K.file.at(h)), K.file.at(h), _u => top(t))