Module

server.fragment_targets_debug

Debug JSON endpoint for the fragment target registry.

Serves a machine-readable view of the registry at /__chirp/debug/fragment-targets when debug=True. Complements the startup banner (terminal_checks._format_fragment_registry) and the fragment_target_orphancontract check — same data, JSON shape, so scripts and devtools UIs can consume it.

Functions

render_fragment_targets_debug 1 str
Serialize the fragment target registry to a JSON string.
def render_fragment_targets_debug(registry: FragmentTargetRegistry | None) -> str
Parameters
Name Type Description
registry FragmentTargetRegistry | None
Returns
str