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
6 changes: 3 additions & 3 deletions erreetool/commands/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def run(
),
input_file: str = typer.Option(None, "--input", help="Input file for import"),
confirm: bool = typer.Option(False, "--yes", "-y", help="Skip confirmation"),
merge: bool = typer.Option(
True, "--merge/--replace", help="Merge with existing or replace"
replace: bool = typer.Option(
False, "--replace", help="Replace existing memory instead of merging"
),
) -> None:
"""Manage agent persistent memory."""
Expand All @@ -48,7 +48,7 @@ def run(
elif subcommand == "export":
_export_memory(output, type)
elif subcommand == "import":
_import_memory(input_file, merge)
_import_memory(input_file, not replace)
else:
console.print(f"[red]Unknown subcommand: {subcommand}[/red]")
console.print("Available: list, show, search, stats, clear, export, import")
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies = [
"scapy==2.5.0",
"speedtest-cli==2.1.3",
"typer==0.12.3",
"click>=8.1.7,<8.2",
"fastapi==0.111.0",
"uvicorn==0.30.1",
"pydantic==2.7.4",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rich==13.7.1
scapy==2.5.0
speedtest-cli==2.1.3
typer==0.12.3
click>=8.1.7,<8.2
fastapi==0.111.0
uvicorn==0.30.1
pydantic==2.7.4
Expand Down
11 changes: 11 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""CLI wiring tests."""

from typer.main import get_command

from erreetool import cli


def test_cli_builds_command_tree():
"""CLI command tree should build without Typer/Click option errors."""
command = get_command(cli.app)
assert command.name == "erreetool"
Loading