MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / wiki_search

Function wiki_search

paperflow/cli.py:270–283  ·  view source on GitHub ↗

Search wiki nodes for a user.

(
    query: str = typer.Argument(..., help="Search query."),
    user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
    node_type: Optional[str] = typer.Option(None, "--type", help="Filter by paper, section, trajectory, or topic."),
    limit: int = typer.Option(20, "--limit", "-n", help="Maximum number of nodes to print."),
    json_output: bool = typer.Option(False, "--json", help="Print JSON instead of a text table."),
)

Source from the content-addressed store, hash-verified

268 """List recent wiki nodes for a user."""
269 args = ["list", "--user-id", user_id, "--limit", str(limit)]
270 if node_type:
271 args.extend(["--type", node_type])
272 if json_output:
273 args.append("--json")
274 raise typer.Exit(code=_run_wiki(*args))
275
276
277@wiki_app.command("search")
278def wiki_search(
279 query: str = typer.Argument(..., help="Search query."),
280 user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
281 node_type: Optional[str] = typer.Option(None, "--type", help="Filter by paper, section, trajectory, or topic."),
282 limit: int = typer.Option(20, "--limit", "-n", help="Maximum number of nodes to print."),
283 json_output: bool = typer.Option(False, "--json", help="Print JSON instead of a text table."),
284) -> None:
285 """Search wiki nodes for a user."""
286 args = ["search", query, "--user-id", user_id, "--limit", str(limit)]

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected