{% extends "base.html" %} {% block title %}插件管理 - 机器人管理后台{% endblock %} {% block content %}
Plugins Workspace

插件管理

统一查看插件状态、版本、说明与配置,减少传统后台式碎片操作。

刷新插件
插件总数
{% raw %}{{ plugins.length }}{% endraw %}
当前已注册插件模块
运行中
{% raw %}{{ runningPluginsCount }}{% endraw %}
可正常提供能力的插件
已停用
{% raw %}{{ stoppedPluginsCount }}{% endraw %}
待启用或排查状态
治理告警
{% raw %}{{ governanceRiskCount }}{% endraw %}
存在配置、依赖或加载风险的插件
执行异常
{% raw %}{{ executionRiskCount }}{% endraw %}
最近执行失败、超时或进入熔断的插件
熔断中
{% raw %}{{ openCircuitCount }}{% endraw %}
当前被保护机制隔离的高风险插件

高风险插件

优先排查熔断中、连续失败或最近错误较多的插件。

暂无高风险插件
{% raw %}{{ index + 1 }}{% endraw %}
{% raw %}{{ plugin.name }}{% endraw %}
{% raw %}{{ executionLabel((plugin.execution_summary || {}).status) }}{% endraw %}
{% raw %}{{ (plugin.execution_summary || {}).summary || '暂无执行摘要' }}{% endraw %}
最近错误:{% raw %}{{ (plugin.execution_summary || {}).last_error_message || '无' }}{% endraw %}

慢插件排行

基于最近一次执行耗时,快速定位可能影响主链路响应的插件。

暂无执行样本
{% raw %}{{ index + 1 }}{% endraw %}
{% raw %}{{ plugin.name }}{% endraw %}
{% raw %}{{ formatDurationMs((plugin.execution_summary || {}).last_process_time_ms) }}{% endraw %}
{% raw %}{{ (plugin.execution_summary || {}).summary || '暂无执行摘要' }}{% endraw %}
成功率:{% raw %}{{ formatPercent((plugin.execution_summary || {}).success_rate) }}{% endraw %} 累计执行:{% raw %}{{ (plugin.execution_summary || {}).total_executions || 0 }}{% endraw %}

依赖核心插件

优先保护被多个插件依赖的基础能力节点,避免单点异常扩散。

暂无依赖关系数据
{% raw %}{{ index + 1 }}{% endraw %}
{% raw %}{{ plugin.name }}{% endraw %}
{% raw %}{{ `${(plugin.dependency_summary || {}).dependent_count || 0} 个上游` }}{% endraw %}
{% raw %}{{ buildDependencyCoreSummary(plugin) }}{% endraw %}
执行:{% raw %}{{ executionLabel((plugin.execution_summary || {}).status) }}{% endraw %} 治理:{% raw %}{{ governanceLabel(plugin.governance_status) }}{% endraw %}

缺失依赖风险

快速查看声明了依赖但当前目标未加载的插件,优先处理运行链断裂问题。

当前没有缺失依赖风险
{% raw %}{{ index + 1 }}{% endraw %}
{% raw %}{{ plugin.name }}{% endraw %}
{% raw %}{{ `${(plugin.dependency_summary || {}).missing_count || 0} 个缺失` }}{% endraw %}
{% raw %}{{ buildMissingDependencySummary(plugin) }}{% endraw %}
模块:{% raw %}{{ plugin.module_name }}{% endraw %}

插件列表

优先关注状态、执行表现和说明,再进入单个插件详情与配置编辑。

暂无插件数据
{% raw %}{{ index + 1 }}{% endraw %}
{% raw %}{{ plugin.name }}{% endraw %}
模块:{% raw %}{{ plugin.module_name }}{% endraw %}
{% raw %}{{ pluginStatusLabel(plugin) }}{% endraw %}
版本:{% raw %}{{ plugin.version || '未知' }}{% endraw %} 治理:{% raw %}{{ governanceLabel(plugin.governance_status) }}{% endraw %}
执行:{% raw %}{{ executionLabel((plugin.execution_summary || {}).status) }}{% endraw %} 成功率:{% raw %}{{ formatPercent((plugin.execution_summary || {}).success_rate) }}{% endraw %} 耗时:{% raw %}{{ formatDurationMs((plugin.execution_summary || {}).last_process_time_ms) }}{% endraw %}
{% raw %}{{ plugin.description || '暂无描述' }}{% endraw %}
{% raw %}{{ governanceIssueSummary(plugin) }}{% endraw %} {% raw %}{{ plugin.feature_key ? `Feature: ${plugin.feature_key}` : '未接入群级权限' }}{% endraw %}
依赖:{% raw %}{{ buildDependencySummaryText(plugin) }}{% endraw %}
{% raw %}{{ plugin.status === 'RUNNING' ? '禁用' : '启用' }}{% endraw %} 重载 详情 群状态
查看插件基础信息、命令列表与配置内容,需要时可直接在这里编辑配置。
{% raw %}{{ selectedPlugin.name }}{% endraw %} {% raw %}{{ selectedPlugin.module_name }}{% endraw %} {% raw %}{{ selectedPlugin.version }}{% endraw %} {% raw %}{{ selectedPlugin.author }}{% endraw %} {% raw %}{{ pluginStatusLabel(selectedPlugin) }}{% endraw %} {% raw %}{{ governanceLabel(selectedPlugin.governance_status) }}{% endraw %} {% raw %}{{ selectedPlugin.command_prefix || '无' }}{% endraw %} {% raw %}{{ selectedPlugin.description }}{% endraw %}
{% raw %}{{ pluginType }}{% endraw %}
{% raw %}{{ selectedPlugin.feature_key || '未声明' }}{% endraw %} {% raw %}{{ selectedPlugin.supports_group_switch ? '支持' : '未接入' }}{% endraw %}
{% raw %}{{ dependency }}{% endraw %}
声明依赖 {% raw %}{{ selectedPlugin.dependency_summary.declared_count || 0 }}{% endraw %}
已解析依赖 {% raw %}{{ selectedPlugin.dependency_summary.resolved_count || 0 }}{% endraw %}
缺失依赖 {% raw %}{{ selectedPlugin.dependency_summary.missing_count || 0 }}{% endraw %}
下游依赖 {% raw %}{{ selectedPlugin.dependency_summary.dependent_count || 0 }}{% endraw %}
已解析依赖
{% raw %}{{ `${dependency.name} (${dependency.status_label || dependency.status || '未知'})` }}{% endraw %}
缺失依赖
{% raw %}{{ dependency.name }}{% endraw %}
下游依赖插件
{% raw %}{{ `${dependency.name} (${dependency.status_label || dependency.status || '未知'})` }}{% endraw %}
{% raw %}{{ cmd }}{% endraw %}
配置文件 {% raw %}{{ selectedPlugin.config_overview.exists ? '存在' : '缺失' }}{% endraw %}
解析状态 {% raw %}{{ selectedPlugin.config_overview.parse_ok ? '正常' : '失败' }}{% endraw %}
配置分组 {% raw %}{{ selectedPlugin.config_overview.section_count || 0 }}{% endraw %}
敏感字段 {% raw %}{{ selectedPlugin.config_overview.sensitive_field_count || 0 }}{% endraw %}
{% raw %}{{ selectedPlugin.config_path || '未声明配置路径' }}{% endraw %}
{% raw %}{{ `解析错误:${selectedPlugin.config_overview.parse_error}` }}{% endraw %}
熔断状态 {% raw %}{{ selectedPlugin.execution_guard.circuit_state || 'closed' }}{% endraw %}
连续失败 {% raw %}{{ selectedPlugin.execution_guard.consecutive_failures || 0 }}{% endraw %}
连续超时 {% raw %}{{ selectedPlugin.execution_guard.consecutive_timeouts || 0 }}{% endraw %}
恢复剩余 {% raw %}{{ `${selectedPlugin.execution_guard.open_remaining_seconds || 0}s` }}{% endraw %}
执行状态 {% raw %}{{ executionLabel(selectedPlugin.execution_summary.status) }}{% endraw %}
累计执行 {% raw %}{{ selectedPlugin.execution_summary.total_executions || 0 }}{% endraw %}
成功率 {% raw %}{{ formatPercent(selectedPlugin.execution_summary.success_rate) }}{% endraw %}
超时率 {% raw %}{{ formatPercent(selectedPlugin.execution_summary.timeout_rate) }}{% endraw %}
最近耗时 {% raw %}{{ formatDurationMs(selectedPlugin.execution_summary.last_process_time_ms) }}{% endraw %}
最近成功 {% raw %}{{ selectedPlugin.execution_summary.last_success_at_text || '-' }}{% endraw %}
最近失败 {% raw %}{{ selectedPlugin.execution_summary.last_failure_at_text || '-' }}{% endraw %}
最近错误 {% raw %}{{ selectedPlugin.execution_summary.last_error_message || '无' }}{% endraw %}
{% raw %}{{ selectedPlugin.execution_summary.summary || '暂无执行摘要' }}{% endraw %}
{% raw %}{{ governanceLabel(diagnostic.level) }}{% endraw %} {% raw %}{{ diagnostic.message }}{% endraw %}
暂无治理诊断项
编辑配置 保存配置 取消
{% raw %}{{ selectedPlugin.configText }}{% endraw %}
{% raw %}{{ configError }}{% endraw %}
{% raw %}{{ pluginGroupStatusData.plugin_name || '未知插件' }}{% endraw %} {% raw %}{{ `共 ${pluginGroupStatusData.total_group_count || 0} 个群` }}{% endraw %}
已开启 {% raw %}{{ pluginGroupStatusData.enabled_count || 0 }}{% endraw %} 未开启 {% raw %}{{ pluginGroupStatusData.disabled_count || 0 }}{% endraw %}
已开启群 {% raw %}{{ pluginGroupStatusData.enabled_count || 0 }}{% endraw %}
暂无已开启群
{% raw %}{{ group.group_name || group.group_id }}{% endraw %}
群ID:{% raw %}{{ group.group_id }}{% endraw %}
关闭
未开启群 {% raw %}{{ pluginGroupStatusData.disabled_count || 0 }}{% endraw %}
暂无未开启群
{% raw %}{{ group.group_name || group.group_id }}{% endraw %}
群ID:{% raw %}{{ group.group_id }}{% endraw %}
开启
{% endblock %} {% block scripts %} {% endblock %}