Skip to main content

Crate sva_cli

Crate sva_cli 

Source

Structs§

AnalyzeArgs
Builtins
Callable
Finding
These ride a success envelope; a refusal raises sva_core::CliError::LintRefused.
Framing
LintReport
RenderArgs
Scaffolded
Traceable

Enums§

CliError
Every expected failure mode this crate can hit; none of them a panic.
Command
Format
How the diagnostics an evaluator answers are rendered. One set of objects, two renderings.
SampleEncoding
Pcm16 is the format tag Python’s stdlib wave module can open; hound marks any bits_per_sample > 16 format WAVE_FORMAT_EXTENSIBLE, which it refuses.
Stopped

Constants§

ANALYZE_REPRESENTATIONS
Only the readings that are a pure function of a buffer; the rest need the graph behind it.
FILES
(path under the new directory, contents), written in this order so a directory always exists before a file lands in it. Every body stays a closed form until its own layer’s written sample(), and each node’s comment says why it is written that way rather than the way that costs orders of magnitude more.
NAME
NEXT
(command, why), in the order a stranger should run them: what the composition IS before what it sounds like, and what a render costs before paying for it. Answered beside the tree new wrote, so the first thing an agent reads is the next thing it should do.
USAGE
VERSION

Functions§

analyze
The same routing over a decoded external WAV instead of a rendered graph: the file’s own rate stands, and its own length is the horizon.
builtins
builtins_data
caught
The default hook leaves a stack trace on stderr and 101, not a JSON response.
colored
composition
--in where the caller named a directory, the process’s own where it did not. Either way the path is read here, so a caller is told which directory answered nothing rather than meeting the graph’s own refusal for a tree that was never there.
cwd
diagnostics_text
The objects the envelope carries, one line each.
entry_points
Every node nothing references, master included — the roots a whole composition has.
error_envelope
data.diagnostics is always present, empty where the failure has no subject to locate.
help_data
help_text
Read off the constants the parser itself defaults to, so a printed default cannot drift from the one a render actually uses.
lint
With no target, lints the whole directory against master; with one, lints only what it reaches, against it instead.
lint_data
target: null is a whole-directory lint — the only mode that runs the entry-point check — so a caller can tell an empty diagnostics there from an empty one under a target, where that check never runs at all.
new_data
parse_args
--version/-V and --help are global flags, recognized anywhere in argv (cli standard).
read_channels
De-interleaves every channel into its own plane at the file’s own native rate — no resampling, ever, so a reference recording’s own clock is what every reading is against.
read_wav
refuse_inside
render
A target renders FROM itself, so only its dependency subtree is evaluated and its own extent decides the length.
scaffold
Refuses if <dir>/<name> already exists, so new never overwrites a caller’s own work. An idempotency_key is recorded beside the composition and answers the same Scaffolded again when the same key is retried over a tree still holding exactly this scaffold, so a network retry or an agent restart converges rather than erroring.
stopped
One internal_error either way, under the code and the advice that fit what stopped it.
success_envelope
trace
Every entry point is a root: master has no privilege, an uninstantiated bench refuses.
trace_data
Every key a trace declares is written, null where the node has no such thing — the one null convention sva_core::NONE states, so a caller reads a field rather than probing for it.
version_data
write_analysis
A reading no Representation names: its value is already JSON, so only the envelope.
write_channels
write_destination
A .wav path takes the samples; any other takes the JSON stdout caps.
write_wav