mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-11 07:52:31 +02:00
fix: namespace opencode command agents
This commit is contained in:
parent
600de94a47
commit
2ba1a550ca
31 changed files with 52 additions and 30 deletions
|
|
@ -76,6 +76,28 @@ if (
|
|||
passed++;
|
||||
else failed++;
|
||||
|
||||
if (
|
||||
test('command markdown frontmatter uses plugin-scoped agent ids', () => {
|
||||
const commandsDir = path.join(opencodeDir, 'commands');
|
||||
|
||||
for (const entry of fs.readdirSync(commandsDir)) {
|
||||
const body = fs.readFileSync(path.join(commandsDir, entry), 'utf8');
|
||||
const match = body.match(/^agent:\s*(.+)$/m);
|
||||
|
||||
if (!match) {
|
||||
continue;
|
||||
}
|
||||
|
||||
assert.ok(
|
||||
match[1].startsWith('everything-claude-code:'),
|
||||
`Expected plugin-scoped agent id in ${entry}, got: ${match[1]}`
|
||||
);
|
||||
}
|
||||
})
|
||||
)
|
||||
passed++;
|
||||
else failed++;
|
||||
|
||||
console.log(`\nPassed: ${passed}`);
|
||||
console.log(`Failed: ${failed}`);
|
||||
process.exit(failed > 0 ? 1 : 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue