From 9bab57ab48db70f3aee3376f6bb86af5f7c50583 Mon Sep 17 00:00:00 2001 From: James Russo Date: Wed, 11 Nov 2026 08:35:03 +0000 Subject: [PATCH] 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 --- packages/cli/src/registry/installer.test.ts | 4 ++++ packages/cli/src/registry/installer.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/registry/installer.test.ts b/packages/cli/src/registry/installer.test.ts index b29a78c2e4..142a5e0462 100644 --- a/packages/cli/src/registry/installer.test.ts +++ b/packages/cli/src/registry/installer.test.ts @@ -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", diff --git a/packages/cli/src/registry/installer.ts b/packages/cli/src/registry/installer.ts index ec3960208f..7f61c869c4 100644 --- a/packages/cli/src/registry/installer.ts +++ b/packages/cli/src/registry/installer.ts @@ -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)$/;