Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/apm_cli/core/script_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def _auto_compile_prompts(
compiled_prompt_files.append(prompt_file)

# Read the compiled content
with open(compiled_path, "r") as f:
with open(compiled_path, "r", encoding="utf-8") as f:
compiled_content = f.read().strip()

# Check if this is a runtime command (copilot, codex, llm) before transformation
Expand Down Expand Up @@ -916,7 +916,7 @@ def compile(self, prompt_file: str, params: Dict[str, str]) -> str:
# Now ensure compiled directory exists
self.compiled_dir.mkdir(parents=True, exist_ok=True)

with open(prompt_path, "r") as f:
with open(prompt_path, "r", encoding="utf-8") as f:
content = f.read()

# Parse frontmatter and content
Expand All @@ -939,7 +939,7 @@ def compile(self, prompt_file: str, params: Dict[str, str]) -> str:
output_path = self.compiled_dir / output_name

# Write compiled content
with open(output_path, "w") as f:
with open(output_path, "w", encoding="utf-8") as f:
f.write(compiled_content)

return str(output_path)
Expand Down
Loading