Expand description
Config, state, logging, and persistence surface shared by every binary.
This crate is published so the nyx-agent binary can be installed
from crates.io with versioned internal dependencies. It is an
implementation detail of Nyx Agent, not a stable public API.
Re-exports§
pub use config::AiConfig;pub use config::AiRuntime;pub use config::Config;pub use config::ConfigError;pub use config::EnvConfig;pub use config::EnvPullPolicy;pub use config::GeneralConfig;pub use config::NyxConfig;pub use config::PerformanceConfig;pub use config::ProjectConfig;pub use config::RepoConfig;pub use config::RepoSourceConfig;pub use config::RunConfig;pub use config::SandboxBackend;pub use config::SandboxConfig;pub use config::ScheduleConfig;pub use config::TriggersConfig;pub use config::UiConfig;pub use event_log::run_event_log_path;pub use event_log::safe_run_log_segment;pub use event_log::RunEventLogWriter;pub use log_init::init as init_logging;pub use log_init::json_log_path;pub use log_init::LogConfig;pub use log_init::LogInitError;pub use repo::ingest;pub use repo::parse_git_auth;pub use repo::repo_from_config;pub use repo::IngestError;pub use repo::IngestedRepo;pub use repo::SnapshotBackend;pub use run::mint_run_id;pub use run::CrossRepoCallgraphStub;pub use run::CrossRepoEdge;pub use run::InconclusiveReason;pub use run::RepoBundle;pub use run::RepoOutcome;pub use run::Run;pub use run::RunBundle;pub use run::RunCounts;pub use run::RunDispatcher;pub use run::ScanLane;pub use run::ScanLaneError;pub use run::WorkspaceHandle;pub use secrets::SecretError;pub use secrets::SecretStore;pub use secrets::ACCOUNT_AI_ANTHROPIC;pub use secrets::ACCOUNT_AI_LOCAL_LLM;pub use secrets::DEFAULT_SERVICE;pub use secrets::ENV_BACKEND as SECRETS_ENV_BACKEND;pub use state::mint_token;pub use state::StateDir;pub use state::StateError;pub use store::Store;pub use store::StoreError;pub use store::CURRENT_SCHEMA_VERSION;pub use time::now_epoch_ms;
Modules§
- config
- Typed configuration loaded from
nyx-agent.toml. - event_
log - Durable per-run event logs for the UI’s live stream.
- ids
- Small helpers for minting persisted-record identifiers.
- log_
init tracinginitialisation shared by every binary entry point.- project
- Project entity: groups multiple repos into a single logical product.
- repo
- Repository ingestion.
- report
- Run-level reports and per-finding repro bundles.
- run
- Parallel static-pass dispatcher and run aggregator.
- secrets
- OS-keychain backed secret storage.
- state
- Filesystem layout for the agent’s persistent state.
- store
- SQLite persistence layer for the agent.
- time
- Time helpers shared across the workspace.
Structs§
- Project
- In-memory descriptor of a configured project.
- Project
Id - Stable identifier for a
Project. Wraps the row id from theprojectstable. - Repo
- In-memory descriptor of a configured repository.
Enums§
- GitAuth
- Auth descriptor for
RepoSource::Git. Parsed from the configauth = "<scheme>:<value>"string. - Repo
Source - Source kind for a
Repo. Mirrors the config shape but decodes the auth descriptor string into a typedGitAuth.