Skip to content

Commit 8c99a96

Browse files
committed
chore: rename eval command to evals throughout codebase
1 parent d03d5e2 commit 8c99a96

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/cli/commands/eval/command.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Text, render } from 'ink';
88
import React from 'react';
99

1010
export const registerEval = (program: Command) => {
11-
const evalCmd = program.command('eval').description(COMMAND_DESCRIPTIONS.eval);
11+
const evalCmd = program.command('evals').description(COMMAND_DESCRIPTIONS.evals);
1212

1313
evalCmd
1414
.command('history')
@@ -39,7 +39,7 @@ export const registerEval = (program: Command) => {
3939

4040
const runs = result.runs ?? [];
4141
if (runs.length === 0) {
42-
console.log('No eval runs found. Run `agentcore run eval` to create one.');
42+
console.log('No eval runs found. Run `agentcore run evals` to create one.');
4343
return;
4444
}
4545

src/cli/commands/logs/command.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import React from 'react';
1111

1212
export const registerLogs = (program: Command) => {
1313
// enablePositionalOptions + passThroughOptions ensure options like --since and --agent
14-
// are passed to the 'eval' subcommand rather than being consumed by the parent 'logs' command.
14+
// are passed to the 'evals' subcommand rather than being consumed by the parent 'logs' command.
1515
program.enablePositionalOptions();
1616

1717
const logsCmd = program
@@ -44,7 +44,7 @@ export const registerLogs = (program: Command) => {
4444
});
4545

4646
logsCmd
47-
.command('eval')
47+
.command('evals')
4848
.description('Stream or search online eval logs')
4949
.option('-a, --agent <name>', 'Select specific agent')
5050
.option('--since <time>', 'Start time (e.g. "1h", "30m", "2d", ISO 8601)')

src/cli/commands/run/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const registerRun = (program: Command) => {
3636
const runCmd = program.command('run').description(COMMAND_DESCRIPTIONS.run);
3737

3838
runCmd
39-
.command('eval')
39+
.command('evals')
4040
.description('Run on-demand evaluation of agent traces. Use --agent-arn to evaluate agents outside the project.')
4141
.option('-a, --agent <name>', 'Agent name from project config')
4242
.option('--agent-arn <arn>', 'Agent runtime ARN — run outside a project directory')

src/cli/tui/App.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ type Route =
3636
| { name: 'status' }
3737
| { name: 'remove' }
3838
| { name: 'run' }
39-
| { name: 'run-eval'; from?: 'run' | 'eval' }
40-
| { name: 'eval' }
39+
| { name: 'run-eval'; from?: 'run' | 'evals' }
40+
| { name: 'evals' }
4141
| { name: 'eval-runs' }
4242
| { name: 'online-evals' }
4343
| { name: 'validate' }
@@ -94,8 +94,8 @@ function AppContent() {
9494
setRoute({ name: 'remove' });
9595
} else if (id === 'run') {
9696
setRoute({ name: 'run' });
97-
} else if (id === 'eval') {
98-
setRoute({ name: 'eval' });
97+
} else if (id === 'evals') {
98+
setRoute({ name: 'evals' });
9999
} else if (id === 'validate') {
100100
setRoute({ name: 'validate' });
101101
} else if (id === 'package') {
@@ -200,11 +200,11 @@ function AppContent() {
200200
);
201201
}
202202

203-
if (route.name === 'eval') {
203+
if (route.name === 'evals') {
204204
return (
205205
<EvalHubScreen
206206
onSelect={view => {
207-
if (view === 'run-eval') setRoute({ name: 'run-eval', from: 'eval' });
207+
if (view === 'run-eval') setRoute({ name: 'run-eval', from: 'evals' });
208208
if (view === 'runs') setRoute({ name: 'eval-runs' });
209209
if (view === 'online-dashboard') setRoute({ name: 'online-evals' });
210210
}}
@@ -214,7 +214,7 @@ function AppContent() {
214214
}
215215

216216
if (route.name === 'run-eval') {
217-
const backRoute = route.from ?? 'eval';
217+
const backRoute = route.from ?? 'evals';
218218
return (
219219
<RunEvalFlow
220220
onExit={() => setRoute({ name: backRoute } as Route)}
@@ -224,11 +224,11 @@ function AppContent() {
224224
}
225225

226226
if (route.name === 'eval-runs') {
227-
return <EvalScreen isInteractive={true} onExit={() => setRoute({ name: 'eval' })} />;
227+
return <EvalScreen isInteractive={true} onExit={() => setRoute({ name: 'evals' })} />;
228228
}
229229

230230
if (route.name === 'online-evals') {
231-
return <OnlineEvalDashboard isInteractive={true} onExit={() => setRoute({ name: 'eval' })} />;
231+
return <OnlineEvalDashboard isInteractive={true} onExit={() => setRoute({ name: 'evals' })} />;
232232
}
233233

234234
if (route.name === 'validate') {

src/cli/tui/copy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const COMMAND_DESCRIPTIONS = {
4040
remove: 'Remove resources from project config.',
4141
status: 'Show deployed resource details and status.',
4242
traces: 'View and download agent traces.',
43-
eval: 'View past eval run results. Also supports --agent-arn.',
43+
evals: 'View past eval run results. Also supports --agent-arn.',
4444
pause: 'Pause an online eval config. Supports --arn for configs outside the project.',
4545
resume: 'Resume a paused online eval config. Supports --arn for configs outside the project.',
4646
run: 'Run on-demand evaluation. Supports --agent-arn for agents outside the project.',

src/cli/tui/screens/eval/EvalScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ export function EvalScreen({ onExit }: EvalScreenProps) {
403403
{noRuns && (
404404
<Box flexDirection="column">
405405
<Text dimColor>No eval runs found.</Text>
406-
<Text dimColor>Run `agentcore run eval` to evaluate a project agent,</Text>
406+
<Text dimColor>Run `agentcore run evals` to evaluate a project agent,</Text>
407407
<Text dimColor>
408-
or `agentcore run eval --agent-arn <Text bold>ARN</Text> --evaluator-arn <Text bold>ARN</Text>` for agents
408+
or `agentcore run evals --agent-arn <Text bold>ARN</Text> --evaluator-arn <Text bold>ARN</Text>` for agents
409409
outside the project.
410410
</Text>
411411
{resultsDir && <Text dimColor>Results saved to: {resultsDir}</Text>}

0 commit comments

Comments
 (0)