feat(kyberforge): primitive-author and factory-audit support for apm hooks, instructions and prompts #144

Open
Claude wants to merge 19 commits from feat/primitive-author into main
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 00dcf83c12 - Show all commits

View File

@@ -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
}

View File

@@ -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):