fix(skills): write BOMs as escape sequences so apm audit stops flagging them
The validate-adapter.bats fixtures and factory-audit's strip_bom held literal U+FEFF characters, which apm audit reports as hidden characters on every install. Replace each with the Python backslash-ufeff escape; behaviour is unchanged (fixtures still emit EF BB BF, all 349 bats tests pass). Bump factory-audit to 1.0.7 (ADR-0022); provider-adapter-author's change is under tests/, which the bump gate ignores. Refs #208 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
af2eea2bab
commit
644c9d7f08
3 files changed
+4
-4
No files matched your search
@@ -1055,7 +1055,7 @@ FRONTMATTER_RE = re.compile(
|
||||
|
||||
|
||||
def strip_bom(text):
|
||||
return text[1:] if text.startswith(u'') else text
|
||||
return text[1:] if text.startswith(u'\ufeff') else text
|
||||
|
||||
|
||||
class FrontmatterError(Exception):
|
||||
|
||||
Reference in new issue
Block a user