Backfill existing behavior logs into the local wiki.
(
user_id: Optional[str] = typer.Option(None, "--user-id", "-u", help="PaperFlow user ID."),
all_users: bool = typer.Option(False, "--all", help="Backfill every user found in the database."),
dry_run: bool = typer.Option(False, "--dry-run", help="Count work without writing wiki data."),
json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)
| 341 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 342 | ) -> None: |
| 343 | """Ask a RAG question over the local wiki.""" |
| 344 | args = ["ask", question, "--user-id", user_id, "--limit", str(limit)] |
| 345 | if json_output: |
| 346 | args.append("--json") |
| 347 | raise typer.Exit(code=_run_wiki(*args)) |
| 348 | |
| 349 | |
| 350 | @wiki_app.command("backfill") |
| 351 | def wiki_backfill( |
| 352 | user_id: Optional[str] = typer.Option(None, "--user-id", "-u", help="PaperFlow user ID."), |
| 353 | all_users: bool = typer.Option(False, "--all", help="Backfill every user found in the database."), |
| 354 | dry_run: bool = typer.Option(False, "--dry-run", help="Count work without writing wiki data."), |
| 355 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 356 | ) -> None: |
| 357 | """Backfill existing behavior logs into the local wiki.""" |
| 358 | args = ["backfill"] |
| 359 | if user_id: |
| 360 | args.extend(["--user-id", user_id]) |
| 361 | if all_users: |
| 362 | args.append("--all") |
nothing calls this directly
no test coverage detected