feat(plugin-inventory): add setEnabled Remote that toggles and persists a plugin

pluginInventory/setEnabled calls ctx.loader.update({disabled}) for a live
effect and writes an explicit disabled override into the profile's user
patch layer so the choice survives a restart. The patch row id is the bare
entry options.id, not the group-prefixed tree id.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pine
2026-08-14 13:53:24 +08:00
parent 18457f57b9
commit 3e0eca752c
5 changed files with 127 additions and 1 deletions
@@ -49,6 +49,7 @@
],
"license": "MIT",
"dependencies": {
"js-yaml": "^4.2.0",
"zod": "^4.4.3"
},
"peerDependencies": {