mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 01:21:31 +00:00
refactor(plugins): separate activation from enablement (#59844)
* refactor(plugins): separate activation from enablement * fix(cli): sanitize verbose plugin activation reasons
This commit is contained in:
parent
4aeb0255f3
commit
f911bbc353
15 changed files with 148 additions and 42 deletions
|
|
@ -156,6 +156,13 @@ function formatPluginLine(plugin: PluginRecord, verbose = false): string {
|
|||
if (plugin.providerIds.length > 0) {
|
||||
parts.push(` providers: ${plugin.providerIds.join(", ")}`);
|
||||
}
|
||||
if (plugin.activated !== undefined || plugin.activationSource || plugin.activationReason) {
|
||||
const activationSummary =
|
||||
plugin.activated === false
|
||||
? "inactive"
|
||||
: (plugin.activationSource ?? (plugin.activated ? "active" : "inactive"));
|
||||
parts.push(` activation: ${activationSummary}`);
|
||||
}
|
||||
if (plugin.error) {
|
||||
parts.push(theme.error(` error: ${plugin.error}`));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue