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.
15 lines
432 B
Python
15 lines
432 B
Python
"""Load prompt configuration."""
|
|
import os
|
|
import yaml
|
|
|
|
DEFAULT_PROMPT_PATH = "prompt.yml"
|
|
|
|
|
|
def load_prompt_yaml() -> dict:
|
|
"""Load prompt YAML from disk."""
|
|
local_path = os.environ.get("PROMPT_PATH", DEFAULT_PROMPT_PATH)
|
|
if os.path.exists(local_path):
|
|
with open(local_path, "r", encoding="utf-8") as f:
|
|
return yaml.safe_load(f)
|
|
raise FileNotFoundError(f"Prompt file not found at {local_path}")
|