← Về thư mục
skills/paper-lookup/scripts/_common.py
- InputError · class · L40-L41 — class InputError(Exception)
- read_input · function · L44-L77 — def read_input(source: str, *, max_bytes: int = MAX_INPUT_BYTES) -> str
- load_json · function · L80-L87 — def load_json(source: str, *, max_bytes: int = MAX_INPUT_BYTES) -> Any
- emit · function · L90-L96 — def emit(payload: Any, destination: str | None = None) -> None
- strip_control · function · L99-L101 — def strip_control(text: str) -> str
- collapse_ws · function · L104-L113 — def collapse_ws(text: str | None) -> str
- Reconciliation · class · L117-L186 — class Reconciliation
- complete · method · L149-L155 — def complete(self) -> bool
- ok · method · L158-L160 — def ok(self) -> bool
- note · method · L162-L163 — def note(self, message: str) -> None
- as_dict · method · L165-L186 — def as_dict(self) -> dict[str, Any]
- redact_url · function · L201-L216 — def redact_url(url: str) -> str
- fail · function · L219-L227 — def fail(message: str, code: int = 1) -> None