refactor(input): bake job normalizer prompt

This commit is contained in:
2025-10-15 16:59:56 -05:00
parent 4f05e0fd5d
commit f1f9a94c02
5 changed files with 10 additions and 14 deletions

View File

@@ -32,8 +32,7 @@ TEMPLATES_DIR = Path("/templates")
TEMPLATE_CACHE = Path("/tmp/templates")
PROMPT_TEMPLATE = TEMPLATES_DIR / "ResumeCustomizerPrompt.md"
PROMPT_TEMPLATE_EXAMPLE = TEMPLATES_DIR / "ResumeCustomizerPrompt.md.example"
NORMALIZER_TEMPLATE = TEMPLATES_DIR / "JobDescriptionNormalizerPrompt.md"
NORMALIZER_TEMPLATE_EXAMPLE = TEMPLATES_DIR / "JobDescriptionNormalizerPrompt.md.example"
NORMALIZER_TEMPLATE = Path('/app/JobDescriptionNormalizerPrompt.md')
POLL_INTERVAL_SECONDS = int(os.environ.get("POLL_INTERVAL_SECONDS", "5"))
CODEX_COMMAND_TEMPLATE = os.environ.get(
@@ -89,12 +88,11 @@ def ensure_environment() -> None:
TEMPLATE_CACHE,
"Resume customization prompt",
)
RESOLVED_NORMALIZER_TEMPLATE = resolve_template(
NORMALIZER_TEMPLATE,
NORMALIZER_TEMPLATE_EXAMPLE,
TEMPLATE_CACHE,
"Job description normalizer prompt",
)
RESOLVED_NORMALIZER_TEMPLATE = NORMALIZER_TEMPLATE
if not RESOLVED_NORMALIZER_TEMPLATE.exists():
raise FatalConfigurationError(
f"Job description normalizer prompt missing at {RESOLVED_NORMALIZER_TEMPLATE}"
)
def resolve_template(