feat: 完成插件管理系统产品化P0闭环落地
此提交实现完整的插件管理产品化闭环: 1. 中心机新增Ed25519密钥、审计/运行上报表、插件扩展字段,实现票据/管控清单签发、鉴权下载能力 2. 部署端新增设备级单活调度器、用户私有插件库、离线/联网校验链、插件下载安装流程 3. 控制面与部署前端同步更新UI与接口适配,新增审计页、插件管理增强功能 4. 修复两个工作流脚本的过滤与Excel导出问题,优化打包依赖与日志面板 5. 新增完整架构设计与实施文档
This commit is contained in:
@@ -54,6 +54,10 @@ class ScenePlugin:
|
||||
# 表单字段定义:[{key,label,type,default,options}]
|
||||
# type ∈ int | text | select
|
||||
fields: List[dict] = []
|
||||
# 声明式能力/权限(manifest 驱动):与插件包 plugin.json 保持一致;
|
||||
# 缺省场景可用本地类补充,plugin.json 存在时以其为权威。
|
||||
capabilities: List[str] = []
|
||||
permissions: dict = {}
|
||||
|
||||
def run(self, fields: dict, ctx: RunContext) -> dict:
|
||||
raise NotImplementedError(f"插件 {self.id} 未实现 run")
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"id": "seal_check",
|
||||
"name": "考勤月报封存检查",
|
||||
"version": "1.0.0",
|
||||
"description": "填写每月正休规则,一键执行五项检查并导出多 Sheet Excel 报告",
|
||||
"category": "考勤",
|
||||
"icon": "",
|
||||
"platform": "hr",
|
||||
"uses_month": true,
|
||||
"capabilities": ["seal_check", "hr.seal_check"],
|
||||
"permissions": {
|
||||
"platforms": ["hr"]
|
||||
},
|
||||
"fields": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fixed_rest_days": { "type": "integer", "title": "固休应休天数", "default": 5, "description": "" },
|
||||
"size_rest_days": { "type": "integer", "title": "大小休应休天数", "default": 6, "description": "" },
|
||||
"quota_rest_days": { "type": "integer", "title": "限额排休上限", "default": 8, "description": "" }
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user