add model-usage plugin

This commit is contained in:
Ryan Hughes
2026-05-27 16:44:24 -04:00
parent dfc450f2cb
commit 752ecaf6e7
12 changed files with 3011 additions and 4 deletions
+10
View File
@@ -55,6 +55,11 @@ ShellRoot {
property var shellConfig: builtinShellConfig
property bool suppressUserReload: false
onShellConfigChanged: {
pluginRegistry.registryRevision++
pluginRegistry.pluginsChanged()
}
function applyShellConfig() {
// Decide which source is canonical: a valid user shell.json overrides
// defaults entirely; otherwise fall back to defaults. We do not deep-merge.
@@ -621,6 +626,11 @@ ShellRoot {
shell.pluginRegistry.rescan()
}
function reloadConfig(): string {
userConfigFile.reload()
return "ok"
}
function setPluginEnabled(id: string, enabled: string): void {
shell.pluginRegistry.setEnabled(id, enabled === "true")
}