diff --git a/plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats b/plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats index 2204e35..4fb5f37 100644 --- a/plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats +++ b/plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats @@ -298,14 +298,14 @@ EOF @test "a doubled UTF-8 BOM does not hide the @import line" { ADAPTER="$TMPDIR/CLAUDE.md" - python3 -c "import sys; open(sys.argv[1], 'wb').write(('@AGENTS.md\n').encode('utf-8'))" "$ADAPTER" + python3 -c "import sys; open(sys.argv[1], 'wb').write(('\ufeff\ufeff@AGENTS.md\n').encode('utf-8'))" "$ADAPTER" run bash "$SCRIPT" "$ADAPTER" "$AGENTS_MD" assert_success } @test "a BOM in front of a mid-file @import line does not hide it" { ADAPTER="$TMPDIR/CLAUDE.md" - python3 -c "import sys; open(sys.argv[1], 'wb').write(('# Claude notes\n\n@AGENTS.md\n').encode('utf-8'))" "$ADAPTER" + python3 -c "import sys; open(sys.argv[1], 'wb').write(('# Claude notes\n\n\ufeff@AGENTS.md\n').encode('utf-8'))" "$ADAPTER" run bash "$SCRIPT" "$ADAPTER" "$AGENTS_MD" assert_success } diff --git a/plugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.sh b/plugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.sh index cf099e8..d4a1ecd 100755 --- a/plugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.sh +++ b/plugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.sh @@ -1016,7 +1016,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):