docs: use canonical plugin command namespace

This commit is contained in:
Affaan Mustafa
2026-04-30 03:04:15 -04:00
committed by Affaan Mustafa
parent d05855be5f
commit a374eaf49d
9 changed files with 50 additions and 24 deletions

View File

@@ -50,6 +50,17 @@ const pluginAndManualInstallDocs = [
'docs/zh-CN/README.md',
];
const publicCommandNamespaceDocs = [
'README.md',
'README.zh-CN.md',
'docs/pt-BR/README.md',
'docs/tr/README.md',
'docs/ko-KR/README.md',
'docs/ja-JP/README.md',
'docs/zh-CN/README.md',
'docs/zh-TW/README.md',
];
for (const relativePath of pluginAndManualInstallDocs) {
const content = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
@@ -70,6 +81,21 @@ for (const relativePath of pluginAndManualInstallDocs) {
});
}
for (const relativePath of publicCommandNamespaceDocs) {
const content = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
test(`${relativePath} uses the canonical plugin command namespace`, () => {
assert.ok(
!content.includes('/ecc:'),
'Expected docs not to advertise the unsupported /ecc: plugin alias'
);
assert.ok(
content.includes('/everything-claude-code:plan'),
'Expected docs to show the canonical plugin command namespace'
);
});
}
if (failed > 0) {
console.log(`\nFailed: ${failed}`);
process.exit(1);