from mirage.accessor.dify import DifyAccessor from mirage.cache.index import IndexCacheStore from mirage.commands.builtin.constants import SCOPE_ERROR from mirage.core.dify.readdir import readdir from mirage.types import PathSpec from mirage.utils.glob_walk import resolve_glob_with async def resolve_glob( accessor: DifyAccessor, paths: list[PathSpec], index: IndexCacheStore, ) -> list[PathSpec]: return await resolve_glob_with(readdir, accessor, paths, index, SCOPE_ERROR)