mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration. - Add support for OpenAI client setup and model resolution. - Develop SDLC context loader from GitHub and repository files. - Implement workflow context and engine builders. - Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`. - Update localization files with new package descriptions and labels. - Streamline web navigation by loading items from a dedicated JSON file.
19 lines
568 B
Python
19 lines
568 B
Python
"""List files in the repo."""
|
|
import os
|
|
import logging
|
|
|
|
logger = logging.getLogger("autometabuilder")
|
|
|
|
|
|
def list_files(directory: str = ".") -> str:
|
|
"""Return newline-separated files under a directory."""
|
|
files_list = []
|
|
for root, _, files in os.walk(directory):
|
|
if ".git" in root or "__pycache__" in root or ".venv" in root:
|
|
continue
|
|
for file in files:
|
|
files_list.append(os.path.join(root, file))
|
|
result = "\n".join(files_list)
|
|
logger.info("Indexing repository files in %s...", directory)
|
|
return result
|