PermissionGate Module
A process-wide hook the server registers so the runtime layer (which cannot reference the server) can resolve permission requests against the real decision logic — settings, persisted grants, and the interactive prompt. When unset, access is allowed (no permission system present, e.g. in tests).
Functions and values
| Function or value |
Description
|
Full Usage:
PermissionGate.Prompt
Returns: (string -> ResourceAccess -> string -> bool -> Task<PermissionOutcome>) option
|
(sessionKey, access, reason, forceConfirm) -> outcome. Set by the server at startup.
|
Nao