diff --git a/cli/main.py b/cli/main.py index bbd1971..caf7e8d 100644 --- a/cli/main.py +++ b/cli/main.py @@ -44,13 +44,13 @@ def _cli_version() -> str: def _version_callback(value: bool) -> None: if value: - typer.echo(f"da {_cli_version()}") + typer.echo(f"agnes {_cli_version()}") raise typer.Exit() app = typer.Typer( - name="da", - help="AI Data Analyst CLI — data sync, queries, and admin for AI agents", + name="agnes", + help="Agnes — AI Data Analyst CLI", no_args_is_help=True, ) diff --git a/pyproject.toml b/pyproject.toml index 9988dc4..a5e94eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ dev = [ ] [project.scripts] -da = "cli.main:app" +agnes = "cli.main:app" [build-system] requires = ["hatchling"] diff --git a/tests/test_cli_binary_rename.py b/tests/test_cli_binary_rename.py new file mode 100644 index 0000000..785bb61 --- /dev/null +++ b/tests/test_cli_binary_rename.py @@ -0,0 +1,29 @@ +"""Confirm the wheel installs the binary as `agnes`, not `da`.""" + +import subprocess + + +def test_agnes_command_exists(): + """`agnes --version` must succeed once the package is editable-installed.""" + result = subprocess.run( + ["agnes", "--version"], + capture_output=True, + text=True, + ) + assert result.returncode == 0, ( + f"agnes --version failed (rc={result.returncode}); " + f"stdout={result.stdout!r} stderr={result.stderr!r}" + ) + + +def test_da_command_no_longer_works(): + """Greenfield rename: no backward-compat alias kept for `da`.""" + result = subprocess.run( + ["bash", "-c", "command -v da"], + capture_output=True, + text=True, + ) + assert result.returncode != 0, ( + f"`da` should NOT be on PATH after the rename, but resolved to: " + f"{result.stdout.strip()!r}" + )