Skip to main content

Crate sephera_runtime

Crate sephera_runtime 

Source
Expand description

§Sephera Runtime

Where the code being analysed lives: a local path, a temporary checkout of a git repository, or a .sephera.toml that names one. Also the Ctrl+C policy, which lives here because it is a property of the run rather than of any one command.

Everything downstream consumes this through the re-exports below. The five crates behind it are separate because they have separate reasons to change – the parser cache moves with Tree-sitter, the traversal with the file format – and this one exists so a caller has one place to ask “where do I read from” rather than five.

Structs§

AvailableContextProfiles
CleanupGuard
Holds the right to clean up until it is dropped.
CommandToml
The flags most commands share.
ContextCommandInput
DeprecatedKey
Keys that are accepted, but should not be written any more.
Interrupt
A handle to the process’s one Ctrl+C listener.
Interrupted
A long git command was stopped at the user’s request rather than finishing.
LoadedConfig
A loaded config file, with the path it came from.
ProfileToml
[profiles.<name>], with the same shape as the file’s top level.
ProjectSettings
Settings every command reads from .sephera.toml, not just context.
ProjectSource
The part of [project] that only decides which bytes get read.
ResolvedContextOptions
ResolvedSource
SourceRequest

Enums§

ConfigCommand
Which command a table belongs to.
ResolvedContextCommand
TreeHostingStyle

Constants§

CONFIG_FILE_NAME
The file name looked for during discovery.
INTERRUPTED_EXIT_CODE
The exit code for a run stopped at the user’s request.

Functions§

build_context_report
Builds the final context report from resolved context options.
interrupt
The process-wide handle, installing the listener on first use.
load_config_file
Read and validate a config file.
load_project_settings
Read the [project] table for an analysis rooted at base_path.
resolve_changed_files
Which files a diff spec touched.
resolve_context_command
Resolves config, source selection, and CLI-compatible defaults for a context invocation.
resolve_source
Resolves a local path or remote repository URL into a concrete analysis source on disk.