- 证据: pipeline_steps、pipeline_versions 表恒为0行, 三功能上线后从未使用 - 产线定义已收敛为代码能力包(PipelineAbility)+pipelines表元数据, 页面无法定义新能力(每种能力需先写代码注册handler), 在线开发属伪命题 - 删除: wwwroot 下 pipelines/pipeline_steps/pipeline_versions/pipeline_editor 页面目录与配套 API dspy、json/models CRUD 定义、init.py 死函数、 load_path.py 权限注册 - 保留: pipelines 表(agent 运行时读 name/default_model)、executor 引擎、 agent/llm/skill_proposals 等模块主体
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
#!/usr/bin/env python3
|
||
"""RBAC path registration for pipeline_core module.
|
||
|
||
2026-08-28:产线管理三功能(产线定义/产线步骤/发布记录)已移除,
|
||
对应的 pipelines / pipeline_steps / pipeline_versions / pipeline_editor
|
||
CRUD 页面与 API 全部删除,注册清单同步清理。
|
||
"""
|
||
import os, sys, subprocess
|
||
|
||
MOD = "pipeline_core"
|
||
|
||
PATHS_LOGINED = [
|
||
f"/{MOD}",
|
||
]
|
||
|
||
|
||
def main():
|
||
root = os.path.expanduser("~/pipeline")
|
||
if not os.path.isfile(os.path.join(root, "set_role_perm.py")):
|
||
print("ERROR: pipeline root not found")
|
||
sys.exit(1)
|
||
set_perm = os.path.join(root, "set_role_perm.py")
|
||
py = sys.executable
|
||
count = 0
|
||
for path in PATHS_LOGINED:
|
||
r = subprocess.run([py, set_perm, "logined", path], capture_output=True, text=True, cwd=root)
|
||
if r.returncode == 0:
|
||
count += 1
|
||
else:
|
||
print(f" WARN: {path} -> {r.stderr.strip()[-80:]}")
|
||
print(f"Registered {count}/{len(PATHS_LOGINED)} paths for {MOD}")
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|