feat(coding-agent): expose project trust to extensions

closes #5523
This commit is contained in:
Mario Zechner
2026-06-09 13:02:58 +02:00
parent 081a0a2bef
commit db3f9953ee
8 changed files with 35 additions and 0 deletions

View File

@@ -892,6 +892,12 @@ Current run mode: `"tui"`, `"rpc"`, `"json"`, or `"print"`. Use `ctx.mode === "t
Current working directory.
### ctx.isProjectTrusted()
Returns whether project-local trust is active for the current session context. This includes temporary trust decisions and CLI trust overrides, not just saved decisions in the global trust store.
Use this before reading project-local extension configuration that should only be honored for trusted projects.
### ctx.sessionManager
Read-only access to session state. See [Session Format](session-format.md) for the full SessionManager API and entry types.