Skip to main content

Module trust

Module trust 

Source
Expand description

Trust management for project resources.

Provides functionality to manage trust decisions for project-local resources, extensions, and configurations. This ensures that untrusted projects cannot execute arbitrary code or load malicious resources.

§Overview

When a project is not trusted, the following restrictions apply:

  • Project-local extensions are not loaded
  • Project-local skills and prompts are not loaded
  • Project-local context files are not loaded
  • Certain settings are ignored

Trust decisions are persisted in .rpi/trust.json and can be managed via the /trust slash command or the --approve/--no-approve CLI flags.

Structs§

ProjectTrust
Trust configuration for a project.
TrustStore
Trust store that manages trust decisions for multiple projects.

Enums§

TrustDecision
Trust decision for a project.
TrustError
Errors that can occur during trust operations.

Functions§

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