@rolemodel/pi-manage-permissions
v0.0.1
Published
Provides a command to manage permissions for @gotgenes/pi-permission-system
Readme
@rolemodel/omlx — Dynamic oMLX Model Discovery
This is a UI manager for permissions implemented by @gotgenes/pi-permission-system
Table of Contents
Quick Start
# Install this extension
pi install npm:@rolemodel/pi-manage-permissionsThis requires an external package to actually enforce permissions. It is designed to output the permissions format used by this extension:
pi install npm:@gotgenes/pi-permission-systemOpen the TUI and navigate and enable permissions for all the available tools:
/manage-permissionsCustom Entries
The extension doesn't handle complex matching permissions but those can be set in the config file ~/.pi/agent/extensions/pi-permission-system/config.json
{
"read": {
"*": "allow",
"git push *": "ask",
"rm -rf *": "deny"
}
}Additional the path object is also not supported directly in the manger UI, but is a part of @gotgenes/pi-permission-system allows providing cross cutting rules for all tools that are called with a path matching the pattern.
{
"path": {
"*.key": "deny"
}
}