MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / CloudImportData

Class CloudImportData

openkb/indexer.py:40–53  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39@dataclass
40class 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
56def _cloud_display_stem(cloud_name: str, fallback: str) -> str:

Callers 2

_cloud_dataMethod · 0.90
prepare_cloud_importFunction · 0.85

Calls

no outgoing calls

Tested by 1

_cloud_dataMethod · 0.72