fix: align paper lookup scope and command signatures

This commit is contained in:
LLLin000 2026-07-05 15:16:26 +08:00
parent c534e481c7
commit 317472eb35
4 changed files with 10 additions and 4 deletions

View file

@ -2,10 +2,12 @@
from __future__ import annotations
import argparse
from paperforge.retrieval import gateway
def run(args) -> int:
def run(args: argparse.Namespace) -> int:
"""Execute ``content-discovery`` via the Layer 4 gateway."""
result = gateway.route_gateway(
args.vault_path,

View file

@ -2,10 +2,12 @@
from __future__ import annotations
import argparse
from paperforge.retrieval import gateway
def run(args) -> int:
def run(args: argparse.Namespace) -> int:
"""Execute ``paper-lookup`` via the Layer 4 gateway."""
result = gateway.route_gateway(
args.vault_path,

View file

@ -2,6 +2,7 @@
from __future__ import annotations
import argparse
import json
from paperforge import __version__ as PF_VERSION
@ -9,7 +10,7 @@ from paperforge.core.result import PFResult
from paperforge.retrieval import gateway
def run(args) -> int:
def run(args: argparse.Namespace) -> int:
"""Execute ``paper-navigation`` via the Layer 4 gateway."""
result = gateway.route_gateway(
args.vault_path,

View file

@ -2,13 +2,14 @@
from __future__ import annotations
import argparse
import json
from pathlib import Path
from paperforge.retrieval import gateway
def run(args) -> int:
def run(args: argparse.Namespace) -> int:
"""Execute ``scoped-fetch`` via the Layer 4 gateway."""
vault = Path(args.vault_path)
result = gateway.route_gateway(