generated from coulomb/repo-seed
For any page name, the set of pages that link to it: extract wikilinks from every union page (new UnionGraph.iter_pages enumeration) and index the resolved ones by target name. Red-links create no backlinks; entries carry source provenance; a chorus target aggregates the backlinks of all members under one name. Derived/ recomputable, stores nothing canonical. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
843 B
Python
26 lines
843 B
Python
"""views/ — derived, recomputable, provenance-carrying read views over the union (§8.4).
|
|
|
|
All views here are *derived tier*: pure functions of the attached shards plus the coordination-log
|
|
fold, storing nothing canonical (SHARD-WP-0011 makes them incrementally maintainable). Presentation
|
|
stays out of core (L6) — these produce models, never rendered output. Per the dependency rule this
|
|
package imports down (union/model/coordination/provenance) and is imported only by the orchestrator.
|
|
"""
|
|
|
|
from shard_wiki.views.backlinks import BackLink, BackLinksIndex, build_backlinks
|
|
from shard_wiki.views.links import (
|
|
ResolvedLink,
|
|
WikiLink,
|
|
extract_links,
|
|
resolve_links,
|
|
)
|
|
|
|
__all__ = [
|
|
"WikiLink",
|
|
"ResolvedLink",
|
|
"extract_links",
|
|
"resolve_links",
|
|
"BackLink",
|
|
"BackLinksIndex",
|
|
"build_backlinks",
|
|
]
|