Skip to main content

Crate tokmd_analysis_format

Crate tokmd_analysis_format 

Source
Expand description

§tokmd-analysis-format

Tier 3 (Formatting)

Rendering for analysis receipts. Supports multiple output formats including Markdown, JSON, JSON-LD, XML, SVG, Mermaid, and optional fun outputs.

§Effort rendering

Effort sections are rendered in two tiers:

  1. receipt.effort the preferred path for the newer effort-estimation receipt surface. This can render size basis, confidence, drivers, assumptions, and optional delta data.
  2. derived.cocomo a legacy fallback used when the richer effort section is absent but classic derived COCOMO data is present.

The formatter intentionally renders whatever the receipt contains without inferring missing estimate data. If the upstream effort builder is still scaffold-only, the formatter preserves that truth rather than making the estimate look more complete than it is.

§What belongs here

  • Analysis receipt rendering to various formats
  • Format-specific transformations
  • Fun output integration (OBJ, MIDI when enabled)

§What does NOT belong here

  • Analysis computation (use tokmd-analysis)
  • CLI argument parsing
  • Base receipt formatting (use tokmd-format)

Enums§

RenderedOutput

Functions§

render