render

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: GPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SchemaVersion = 1

SchemaVersion is the integer used in the "schema" field of every JSON document we emit. Bumping this is a breaking change for consumers and requires a CHANGELOG entry. The structure is intentionally minimal in v1: Phase 10 (v0.5.0) stabilizes the `findings` array shape; until then Findings is always empty and Content holds the raw markdown.

Variables

This section is empty.

Functions

func JSON

func JSON(w io.Writer, p Payload) error

func Markdown

func Markdown(w io.Writer, p Payload) error

func Terminal

func Terminal(w io.Writer, p Payload) error

func VerboseFooter

func VerboseFooter(m Meta) string

VerboseFooter returns the multi-line footer appended after a review when --verbose is in effect. Format is stable: tokens, cost, latency, provider, model — each on its own line, aligned. Cached results get a `(cached)` marker on the tokens line so users see why a fast result was free.

Types

type Format

type Format int
const (
	FormatTerminal Format = iota
	FormatMarkdown
	FormatJSON
)

func (Format) String

func (f Format) String() string

type Meta

type Meta struct {
	Provider  string
	Model     string
	Lang      string
	Usage     provider.Usage
	Cost      float64
	Latency   time.Duration
	Cached    bool
	Timestamp time.Time
}

type Payload

type Payload struct {
	Content string
	Meta    Meta
	Verbose bool
}

type Summary

type Summary struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL