Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Value = "0.1.1"
Functions ¶
This section is empty.
Types ¶
type GrammarProvenance ¶
type GrammarProvenance struct {
Manifest string `json:"manifest"`
SHA256 *string `json:"sha256"`
Versions []GrammarVersion `json:"versions"`
}
GrammarProvenance identifies the pinned grammar manifest and its entries.
type GrammarVersion ¶
type GrammarVersion struct {
Name string `json:"name"`
Version string `json:"version"`
Commit string `json:"commit"`
}
GrammarVersion is the compact grammar identity exposed by provenance.
type Provenance ¶
type Provenance struct {
Kivgraph string `json:"kivgraph"`
Commit *string `json:"commit"`
Dirty *bool `json:"dirty"`
Go string `json:"go"`
Node *string `json:"node"`
TypeScript *string `json:"typescript"`
TypeScriptFallback *string `json:"typescript_fallback"`
Ladybug string `json:"ladybug"`
GoLadybug string `json:"go_ladybug"`
Schema int `json:"schema"`
SnapshotRowFormat uint32 `json:"snapshot_row_format"`
Resolver *string `json:"resolver"`
Grammars GrammarProvenance `json:"grammars"`
// RustAnalyzer is the engine the bundle carries for Rust. A development
// binary ships none and reports null: the analyzer it would run comes
// from the PATH and is not part of this build's provenance.
RustAnalyzer *string `json:"rust_analyzer"`
}
Provenance is the stable machine-readable output of `kivgraph version --json`. Fields unavailable outside a distribution bundle are represented as null rather than guessed values.
func Collect ¶
func Collect(executablePath, workingDir string) (Provenance, error)
Collect obtains provenance from the executable's distribution manifest when present. Without a bundle manifest it returns build/runtime metadata and explicit nulls for values that are not embedded in a development binary.