Skip to main content

should_trust_project

Function should_trust_project 

Source
pub fn should_trust_project(
    project_path: &Path,
    trust_store: &TrustStore,
    cli_approve: Option<bool>,
) -> bool
Expand description

Check if a project should be trusted based on various heuristics.

This function implements automatic trust detection based on:

  • Whether the project is in a known safe directory (e.g., home directory)
  • Whether the project has a .rpi/trust.json file with a positive decision
  • Whether the user has explicitly approved the project via CLI flag