feat(devgen/modules): streamline provider guard and enhance ManifestInspector flexibility

Add token‑limit error handling and switch git diff to null‑delimited output for reliable file detection.
This commit is contained in:
sankalp committed 2026-07-03 18:07:26 +05:45
1 parent 11a9db7986
commit f7001d4243
3 files changed
+30 -20

No files matched your search

+4 -3
View File
@@ -91,15 +91,16 @@ class GitOperator:
[
"git",
"ls-files",
"-z",
"--deleted",
"--modified",
"--others",
"--exclude-standard",
]
)
files = {f.strip() for f in out.split("\n") if f.strip()}
staged_out = self._run(["git", "diff", "--name-only", "--cached"])
files.update(f.strip() for f in staged_out.split("\n") if f.strip())
files = {f for f in out.split("\0") if f}
staged_out = self._run(["git", "diff", "-z", "--name-only", "--cached"])
files.update(f for f in staged_out.split("\0") if f)
return sorted(files)
# ------------------------------------------------------------------ actions