(user_id: str, paper: Dict[str, Any])
| 2592 | "report_source_key": str(path), |
| 2593 | "report_source_name": path.name, |
| 2594 | "report_style": _configured_report_style(), |
| 2595 | "response_language": language, |
| 2596 | }, |
| 2597 | ) |
| 2598 | wiki_backfilled = _backfill_docs_to_wiki(user_id, docs) |
| 2599 | payload = _reports_payload(docs, write_feishu_requested=should_write_feishu) |
| 2600 | payload["wiki_backfilled"] = wiki_backfilled |
| 2601 | return payload |
| 2602 | |
| 2603 | |
| 2604 | def _reading_placeholder_path(user_id: str, paper: Dict[str, Any]) -> Path: |
| 2605 | with _reading_agent_output_env_patch(): |
| 2606 | target_dir = reading_agent._resolve_configured_dir( # noqa: SLF001 - shared storage contract |
| 2607 | "PAPERFLOW_READING_REPORTS_DIR", |
| 2608 | "data/exports", |
| 2609 | paper, |
| 2610 | user_id=user_id, |
| 2611 | category="reading_reports", |
| 2612 | ) |
| 2613 | target_dir.mkdir(parents=True, exist_ok=True) |
no test coverage detected