Skip to main content

Crate saya_cli

Crate saya_cli 

Source

Structs§

Cli
ContractClaimView
One claim of a contract, in renderable form. value is a short rendered form of the claim payload (e.g. a column name for default_time_column, an alias for table_alias). reason is the optional justification a directive claim carries; contracts show renders it, contracts list does not.
ContractConflictView
A disagreement between confirmed claims of an exclusive kind on one object. Names the kind and the claim IDs only — never claim text.
ContractQueueItemView
One claim waiting for review — a Candidate or a persisted Stale claim — in renderable form. The queue is a flat per-claim listing — not the object-grouped ContractView shape — so it gets its own DTO rather than a one-claim “contract” with a smuggled evidence count. profile is the profile name, never the opaque identity, and there is no field for the identity here either.
ContractView
One object’s recallable contract, ready to render. schema_state is one of current, needs_review, stale, live_schema_unavailable.
GlobalOptions
RuntimeConfig
SessionState

Enums§

ClaimKindArg
Command
ConfigCommand
ConnectionCommand
ContractsCommand
ForgetReasonArg
FormatArg
RenderFormat
ReviewDecisionArg
The decision a /confirm, /reject, or /use short-reference command carries, resolved by run_contracts against the stored claim the prefix names. Spec D. Confirm and Reject reach the existing mutating ops; UseOnce reaches use_candidate_once, which validates and admits for one recall without promoting — a candidate stays a candidate.
SessionAction
SlashCommand
TerminalEvent

Functions§

approval_name
capture_output_start
Begins capturing emit output on this thread. Pair with capture_output_take. Nested starts are a programming error and panic so a forgotten take cannot silently swallow a later test’s output.
capture_output_take
Returns and clears the (stdout, stderr) captured since capture_output_start; panics if capture was not started.
default_session_dir
load_with_sources
parse_slash_command
profile_identity
render_event
resolve_session_dir
resolve_state_db_path
run
run_contracts
run_from_env

Type Aliases§

Session