From 27f5c0aa28609365029dc70a0515ed1dcc6d53d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Fri, 20 Sep 2024 16:49:07 +0800 Subject: [PATCH] feat: +report --- metagpt/tools/libs/index_repo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metagpt/tools/libs/index_repo.py b/metagpt/tools/libs/index_repo.py index b853b38ac..f72f7ef3e 100644 --- a/metagpt/tools/libs/index_repo.py +++ b/metagpt/tools/libs/index_repo.py @@ -89,6 +89,8 @@ class IndexRepo(BaseModel): filenames, excludes = await self._filter(filenames) if not filenames: raise ValueError(f"Unsupported file types: {[str(i) for i in excludes]}") + for i in filenames: + self.resource.report(str(i), "path") filter_filenames = set() meta = await self._read_meta() new_files = {}