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§
- Available
Context Profiles - Cleanup
Guard - Holds the right to clean up until it is dropped.
- Command
Toml - The flags most commands share.
- Context
Command Input - Deprecated
Key - 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.
- Loaded
Config - A loaded config file, with the path it came from.
- Profile
Toml [profiles.<name>], with the same shape as the file’s top level.- Project
Settings - Settings every command reads from
.sephera.toml, not justcontext. - Project
Source - The part of
[project]that only decides which bytes get read. - Resolved
Context Options - Resolved
Source - Source
Request
Enums§
- Config
Command - Which command a table belongs to.
- Resolved
Context Command - Tree
Hosting Style
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 atbase_path. - resolve_
changed_ files - Which files a diff spec touched.
- resolve_
context_ command - Resolves config, source selection, and CLI-compatible defaults for a
contextinvocation. - resolve_
source - Resolves a local path or remote repository URL into a concrete analysis source on disk.