Expand description
Project trust: whether yapi may load a project’s .yapi settings and resources.
Port of trust-manager.ts and project-trust.ts in pi v1.0.0. Decisions live
in <agent>/trust.json, keyed by directory. The nearest decided ancestor wins.
Structs§
- Trust
Option - A choice of the trust prompt and
/trust: pi’sProjectTrustOption. - Trust
Store - Stored trust decisions.
Functions§
- needs_
prompt - Whether startup asks whether to trust
cwd: it has resources needing trust and neither an override, a stored decision nor thedefaultProjectTrustsetting decides. An error when the store must be read and cannot be. - prompt_
title - The title of the startup trust prompt for
cwd. - requires_
trust - Whether
cwdhas project resources that need trust: anything in.yapi/that changes behavior, a chest manifest that installs anything, or an.agents/skillsdirectory in it or an ancestor (other than the user’s own). - resolve_
trusted - Resolves trust without a UI: an explicit override, no resources needing trust,
a stored decision, then the
defaultProjectTrustsetting.askwithout a UI means untrusted. A store that must be read and cannot be is an error, as in pi, never trust. - trust_
options - pi’s
getProjectTrustOptions: trust the project or its parent, or not. Withsession_only, also trust or distrust for this session only.