Files
iAOP/core/template-console/__init__.py

49 lines
2.0 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
"""⑤.7 模板配置台(Template Console)内核引擎 —— EPIC #9。
配置台是**跨模板通用的内核能力**:为实施工程师提供一个无代码的配置驱动
界面,把"模型超参 / RAG / 布局"三类配置 + 点位字典 + 版本发布统一编排,
并将发布的配置**推送给内核**(edge-gateway / rag-kb / model-framework)。
本包拆为 6 个子模块,对应 6 个 issue(同一 feature 分支承载,单 PR 关联):
- ``rbac`` (#62) 三级 RBAC 权限(admin / engineer / readonly);
- ``point_importer`` (#63) 点位字典 CSV 导入 + 自动校验页面(复用
``core/edge-gateway/point_dict`` 校验器,增加配置台
级结果聚合 + OPC 节点格式校验 + 模板选择);
- ``config_store`` (#64) 配置项 CRUD(模型超参 / RAG / 布局三类,文件系统
版本化 JSON 存储);
- ``preview`` (#65) 预览渲染引擎(布局/告警/查询 → 可预览结构化输出,
对齐 iAOP-cockpit-layout-v1 widget 类型);
- ``release`` (#66) 版本发布 + 回滚点(基于 config_store 快照,semver);
- ``push_channel`` (#67) 配置台↔内核配置推送契约(JSON manifest + 校验和 +
幂等性)。
设计原则(对齐 PRD「可解释可溯源」与既有内核范式):
- 纯标准库零运行时依赖(无 pyyaml/numpy/pandas),YAML 子集用内置解析器;
- dataclass + Enum + 类型注解 + 中文 docstring;
- 关键决策均带 ``meaning`` / ``reason`` 字段,便于审计与可解释性。
"""
from __future__ import annotations
from .rbac import (
Action,
Permission,
Role,
RoleKind,
User,
has_permission,
)
__all__ = [
"Action",
"Permission",
"Role",
"RoleKind",
"User",
"has_permission",
]
#: 本包版本(对齐 EPIC #9 模板配置台交付节奏)
__version__ = "1.0.0"