Coverage for src \ truenex_memory \ adapters \ __main__.py: 0%

13 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-05-19 10:21 +0200

1"""Command-line entry point for agent adapter file generation.""" 

2 

3from __future__ import annotations 

4 

5from pathlib import Path 

6from typing import Annotated 

7 

8import typer 

9 

10from truenex_memory.adapters import write_agent_docs 

11 

12app = typer.Typer(help="Generate local agent adapter instruction files.") 

13 

14 

15@app.command("generate") 

16def generate( 

17 directory: Annotated[Path, typer.Argument(help="Directory where files are written.")], 

18 project_name: Annotated[str, typer.Option("--project-name")] = "Truenex Memory", 

19 overwrite: Annotated[bool, typer.Option("--overwrite")] = False, 

20) -> None: 

21 """Generate AGENTS.md and CLAUDE.md.""" 

22 

23 written = write_agent_docs(directory, project_name=project_name, overwrite=overwrite) 

24 for name, path in written.items(): 

25 typer.echo(f"{name}: {path}") 

26 

27 

28if __name__ == "__main__": 

29 app()