Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/cli/src/commands/eval/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { evalRunCommand } from './commands/run.js';

export const evalCommand = subcommands({
name: 'eval',
description: 'Evaluation commands',
description:
'Evaluation commands. Shorthand: `agentv eval <eval-paths...>` aliases `agentv eval run <eval-paths...>`.',
cmds: {
run: evalRunCommand,
assert: evalAssertCommand,
Expand Down
16 changes: 16 additions & 0 deletions apps/cli/test/eval.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,22 @@ async function readDiagnostics(fixture: EvalFixture): Promise<Record<string, unk
}

describe('agentv eval CLI', () => {
it('documents the bare `eval` shorthand in eval help', async () => {
const fixture = await createFixture();
try {
const { stdout } = await runCli(fixture, ['eval', '--help']);

expect(stdout).toContain('Evaluation commands.');
expect(stdout).toContain('agentv eval <eval-paths...>');
expect(stdout).toContain('agentv eval run <eval-paths...>');
expect(stdout).toContain('- run');
expect(stdout).toContain('- assert');
expect(stdout).toContain('- aggregate');
} finally {
await rm(fixture.baseDir, { recursive: true, force: true });
}
});

it('writes results, summary, and prompt dumps using default directories', async () => {
const fixture = await createFixture();
try {
Expand Down
Loading