A fetched cloud doc + its resolved wiki name, before any KB write. Returned by :func:`prepare_cloud_import` so the caller can snapshot this doc's specific paths (O(1)) before :func:`_write_long_doc_artifacts` writes them — instead of copying the whole summaries/sources trees on every im
| 38 | |
| 39 | @dataclass |
| 40 | class CloudImportData: |
| 41 | """A fetched cloud doc + its resolved wiki name, before any KB write. |
| 42 | |
| 43 | Returned by :func:`prepare_cloud_import` so the caller can snapshot this |
| 44 | doc's specific paths (O(1)) before :func:`_write_long_doc_artifacts` writes |
| 45 | them — instead of copying the whole summaries/sources trees on every import. |
| 46 | """ |
| 47 | |
| 48 | doc_id: str |
| 49 | doc_name: str # collision-resistant wiki slug (resolved, not yet written) |
| 50 | cloud_name: str # cloud display name (original filename in the cloud) |
| 51 | description: str |
| 52 | tree: dict |
| 53 | all_pages: list |
| 54 | |
| 55 | |
| 56 | def _cloud_display_stem(cloud_name: str, fallback: str) -> str: |
no outgoing calls