mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
fix(cli): refuse more coding-agent instruction files in registry installs (#7549)
Registry items may not write QWEN.md, CRUSH.md, WARP.md or CONVENTIONS.md at any depth, in any case, alongside the AGENTS.md, CLAUDE.md and GEMINI.md names already refused. The catalog's nested SKILL.md and README.md notes are unaffected. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f36463e292
commit
9bab57ab48
@@ -108,6 +108,10 @@ describe("installItem", () => {
|
||||
"GEMINI.md",
|
||||
"QWEN.md",
|
||||
"CONVENTIONS.md",
|
||||
"compositions/QWEN.md",
|
||||
"assets/Crush.md",
|
||||
"compositions\\WARP.md",
|
||||
"compositions/conventions.md",
|
||||
"notes.txt",
|
||||
"whisper-cli.exe",
|
||||
"assets/whisper-cli.EXE",
|
||||
|
||||
@@ -152,7 +152,8 @@ const STANDARD_INSTALL_DIRS = ["compositions", "assets", "models", "lib"];
|
||||
// The one file a block may leave at the project root: the catalog's usage note. Any other name could be one a tool loads.
|
||||
const ROOT_NOTES = new Set(["template.md"]);
|
||||
// Coding agents load these on their own, wherever they sit.
|
||||
const AGENT_INSTRUCTIONS = /^(agents?|claude|gemini|copilot-instructions)(\.[a-z]+)?\.md$/;
|
||||
const AGENT_INSTRUCTIONS =
|
||||
/^(agents?|claude|gemini|qwen|crush|warp|conventions|copilot-instructions)(\.[a-z]+)?\.md$/;
|
||||
// Programs and scripts a shell, an OS or another tool runs; a browser composition never needs them.
|
||||
const EXECUTABLE =
|
||||
/\.(exe|com|bat|cmd|ps1|psm1|vbs|vbe|wsf|hta|msi|scr|pif|cpl|lnk|dll|so|dylib|node|sh|bash|zsh|command|jar|appimage|py|rb|pl|php)$/;
|
||||
|
||||
Reference in New Issue
Block a user