mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: add a permission-gated UI action registry and action slots for plugins
Moves the terminal toolbar's hardwired AI button into a slot the ssh-terminal plugin offers and the ai plugin fills, gated on ai.services.use.
This commit is contained in:
1 parent
225f618337
commit
2d6c1cdecb
29 files changed
+1971
-40
No files matched your search
@@ -36,7 +36,18 @@
|
||||
"defaultForRole": {
|
||||
"admin": ["ai.services.use"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"id": "ai.openWithContext",
|
||||
"titleKey": "ai.assistant",
|
||||
"handler": "openWithContext",
|
||||
"icon": "Bot",
|
||||
"permission": "ai.services.use",
|
||||
"slot": "terminal.toolbar",
|
||||
"kind": "button"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sidecars": []
|
||||
}
|
||||
Reference in new issue
Block a user