You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address two issues raised in PR #73 review:
- _apply_init_to_file now reads and writes project AGENTS.md /
CLAUDE.md with an explicit encoding="utf-8" on every
read_text / write_text call. The platform default text
encoding is not UTF-8 on Windows (cp1252), which would
produce UnicodeDecodeError on UTF-8 content in existing
files or mojibake when writing the pointer block.
- _bundled_agents_md_path now uses importlib.resources.as_file
to resolve the bundled AGENTS.md and raises RuntimeError
with a clear message when the install isn't filesystem-backed
(pure zipimport). Previously the function would print a
non-existent path that the caller would then fail to open.
cmd_docs handles the RuntimeError by printing the message to
stderr and exiting with code 2. The docstring now claims
only wheel and editable installs (the realistic shapes for
this distribution) rather than implying "or zipped".
0 commit comments