pub struct CaptureProjectInputs<'a> {
pub project_flag: Option<ProjectBinding>,
pub env_project: Option<ProjectBinding>,
pub session: &'a SessionState,
pub worktree_path: Option<&'a str>,
pub config_project: Option<ProjectBinding>,
pub user_default: Option<ProjectBinding>,
}Expand description
Inputs to the capture-time project chain. The config tier is the
.visdom/tracing.toml project_id (a UUID, via
project_from_config); the legacy default_project NAME is never an
input — resolving it needs a network call, and the stream hook (which
fires per event) never does one. init/sync migrate it to project_id
(commands::migrate).
Fields§
§project_flag: Option<ProjectBinding>--project override (only project status supplies it; the hook passes None).
env_project: Option<ProjectBinding>TRACEVAULT_PROJECT, UUID form ONLY — parsed by the caller (via
commands::stream::env_project_binding) so this module stays free of
environment reads. The NAME form is deliberately not a tier here: it
would need a list_projects round trip, and this is the network-free
chain the per-event hook runs. Both callers fill this field from that
same reader, so project status cannot report a tier ingest ignores.
session: &'a SessionState§worktree_path: Option<&'a str>§config_project: Option<ProjectBinding>The workspace tier: project_from_config of the
.visdom/tracing.toml at the event’s project root. Passed in so the
function stays pure.
user_default: Option<ProjectBinding>user_project_default::load() — passed in so the function stays pure.