补充CRUD生成路径的权限设置

- READ层级: 12个harnessed_agent CRUD目录的index.ui + get_*.dspy
            3个harnessed_reasoning CRUD目录的index.ui + get_*.dspy
- ADMIN层级: 12个harnessed_agent CRUD目录的add/update/delete_*.dspy (36文件)
            3个harnessed_reasoning CRUD目录的add/update/delete_*.dspy (9文件)
- 基于JSON CRUD alias确定目录结构和文件名
This commit is contained in:
yumoqing 2026-05-13 13:55:02 +08:00
parent 8261f9d309
commit 050dd0b2da

View File

@ -80,6 +80,34 @@ READ_PATHS=(
# API 配置查看(只读) # API 配置查看(只读)
"/harnessed_agent/api/agent_config_get.dspy" "/harnessed_agent/api/agent_config_get.dspy"
# ---------- CRUD index.ui (列表页面,只读浏览) ----------
"/harnessed_agent/hermes_memory/index.ui"
"/harnessed_agent/hermes_sessions/index.ui"
"/harnessed_agent/hermes_skills/index.ui"
"/harnessed_agent/hermes_tasks/index.ui"
"/harnessed_agent/hermes_workflows/index.ui"
"/harnessed_agent/hermes_executions/index.ui"
"/harnessed_agent/hermes_executions_task/index.ui"
"/harnessed_agent/hermes_tasks_workflow/index.ui"
"/harnessed_agent/harnessed_remote_skills/index.ui"
"/harnessed_agent/harnessed_agent_config_view/index.ui"
"/harnessed_agent/executions_by_workflow/index.ui"
"/harnessed_agent/task_dependencies/index.ui"
# ---------- CRUD get_*.dspy (单条记录读取) ----------
"/harnessed_agent/hermes_memory/get_hermes_memory.dspy"
"/harnessed_agent/hermes_sessions/get_hermes_sessions.dspy"
"/harnessed_agent/hermes_skills/get_hermes_skills.dspy"
"/harnessed_agent/hermes_tasks/get_hermes_tasks.dspy"
"/harnessed_agent/hermes_workflows/get_hermes_workflows.dspy"
"/harnessed_agent/hermes_executions/get_hermes_executions.dspy"
"/harnessed_agent/hermes_executions_task/get_hermes_executions_task.dspy"
"/harnessed_agent/hermes_tasks_workflow/get_hermes_tasks_workflow.dspy"
"/harnessed_agent/harnessed_remote_skills/get_harnessed_remote_skills.dspy"
"/harnessed_agent/harnessed_agent_config_view/get_harnessed_agent_config_view.dspy"
"/harnessed_agent/executions_by_workflow/get_executions_by_workflow.dspy"
"/harnessed_agent/task_dependencies/get_task_dependencies.dspy"
# ---------- harnessed_reasoning ---------- # ---------- harnessed_reasoning ----------
# 控制台/主页(用户使用入口) # 控制台/主页(用户使用入口)
"/harnessed_reasoning/hermes_reasoning.ui" "/harnessed_reasoning/hermes_reasoning.ui"
@ -95,6 +123,16 @@ READ_PATHS=(
"/harnessed_reasoning/api/config_get.dspy" "/harnessed_reasoning/api/config_get.dspy"
# 推理提交(核心使用功能,所有登录用户可用) # 推理提交(核心使用功能,所有登录用户可用)
"/harnessed_reasoning/api/reasoning_submit.dspy" "/harnessed_reasoning/api/reasoning_submit.dspy"
# ---------- CRUD index.ui (列表页面,只读浏览) ----------
"/harnessed_reasoning/harnessed_reasoning_sessions_crud/index.ui"
"/harnessed_reasoning/harnessed_reasoning_session_detail/index.ui"
"/harnessed_reasoning/harnessed_reasoning_config_view/index.ui"
# ---------- CRUD get_*.dspy (单条记录读取) ----------
"/harnessed_reasoning/harnessed_reasoning_sessions_crud/get_harnessed_reasoning_sessions_crud.dspy"
"/harnessed_reasoning/harnessed_reasoning_session_detail/get_harnessed_reasoning_session_detail.dspy"
"/harnessed_reasoning/harnessed_reasoning_config_view/get_harnessed_reasoning_config_view.dspy"
) )
READ_ROLES=("logined" "owner.admin" "reseller.admin" "provider.admin" "customer.admin" "reseller.operator" "reseller.accountant" "reseller.maintainer") READ_ROLES=("logined" "owner.admin" "reseller.admin" "provider.admin" "customer.admin" "reseller.operator" "reseller.accountant" "reseller.maintainer")
@ -121,7 +159,45 @@ ADMIN_PATHS=(
"/harnessed_agent/deploy_skill.ui" "/harnessed_agent/deploy_skill.ui"
"/harnessed_agent/execute_remote_skill.ui" "/harnessed_agent/execute_remote_skill.ui"
# harnessed_agent CRUD 页面完整CRUD = 含写操作) # harnessed_agent CRUD 写操作add/update/delete
"/harnessed_agent/hermes_memory/add_hermes_memory.dspy"
"/harnessed_agent/hermes_memory/update_hermes_memory.dspy"
"/harnessed_agent/hermes_memory/delete_hermes_memory.dspy"
"/harnessed_agent/hermes_sessions/add_hermes_sessions.dspy"
"/harnessed_agent/hermes_sessions/update_hermes_sessions.dspy"
"/harnessed_agent/hermes_sessions/delete_hermes_sessions.dspy"
"/harnessed_agent/hermes_skills/add_hermes_skills.dspy"
"/harnessed_agent/hermes_skills/update_hermes_skills.dspy"
"/harnessed_agent/hermes_skills/delete_hermes_skills.dspy"
"/harnessed_agent/hermes_tasks/add_hermes_tasks.dspy"
"/harnessed_agent/hermes_tasks/update_hermes_tasks.dspy"
"/harnessed_agent/hermes_tasks/delete_hermes_tasks.dspy"
"/harnessed_agent/hermes_workflows/add_hermes_workflows.dspy"
"/harnessed_agent/hermes_workflows/update_hermes_workflows.dspy"
"/harnessed_agent/hermes_workflows/delete_hermes_workflows.dspy"
"/harnessed_agent/hermes_executions/add_hermes_executions.dspy"
"/harnessed_agent/hermes_executions/update_hermes_executions.dspy"
"/harnessed_agent/hermes_executions/delete_hermes_executions.dspy"
"/harnessed_agent/hermes_executions_task/add_hermes_executions_task.dspy"
"/harnessed_agent/hermes_executions_task/update_hermes_executions_task.dspy"
"/harnessed_agent/hermes_executions_task/delete_hermes_executions_task.dspy"
"/harnessed_agent/hermes_tasks_workflow/add_hermes_tasks_workflow.dspy"
"/harnessed_agent/hermes_tasks_workflow/update_hermes_tasks_workflow.dspy"
"/harnessed_agent/hermes_tasks_workflow/delete_hermes_tasks_workflow.dspy"
"/harnessed_agent/harnessed_remote_skills/add_harnessed_remote_skills.dspy"
"/harnessed_agent/harnessed_remote_skills/update_harnessed_remote_skills.dspy"
"/harnessed_agent/harnessed_remote_skills/delete_harnessed_remote_skills.dspy"
"/harnessed_agent/harnessed_agent_config_view/add_harnessed_agent_config_view.dspy"
"/harnessed_agent/harnessed_agent_config_view/update_harnessed_agent_config_view.dspy"
"/harnessed_agent/harnessed_agent_config_view/delete_harnessed_agent_config_view.dspy"
"/harnessed_agent/executions_by_workflow/add_executions_by_workflow.dspy"
"/harnessed_agent/executions_by_workflow/update_executions_by_workflow.dspy"
"/harnessed_agent/executions_by_workflow/delete_executions_by_workflow.dspy"
"/harnessed_agent/task_dependencies/add_task_dependencies.dspy"
"/harnessed_agent/task_dependencies/update_task_dependencies.dspy"
"/harnessed_agent/task_dependencies/delete_task_dependencies.dspy"
# harnessed_agent api/ CRUD 写操作API接口层
"/harnessed_agent/api/harnessed_agent_config_create.dspy" "/harnessed_agent/api/harnessed_agent_config_create.dspy"
"/harnessed_agent/api/harnessed_agent_config_update.dspy" "/harnessed_agent/api/harnessed_agent_config_update.dspy"
"/harnessed_agent/api/harnessed_agent_config_delete.dspy" "/harnessed_agent/api/harnessed_agent_config_delete.dspy"
@ -167,6 +243,17 @@ ADMIN_PATHS=(
# ---------- harnessed_reasoning ---------- # ---------- harnessed_reasoning ----------
# 配置管理(管理员专用) # 配置管理(管理员专用)
"/harnessed_reasoning/api/config_save.dspy" "/harnessed_reasoning/api/config_save.dspy"
# harnessed_reasoning CRUD 写操作add/update/delete
"/harnessed_reasoning/harnessed_reasoning_sessions_crud/add_harnessed_reasoning_sessions_crud.dspy"
"/harnessed_reasoning/harnessed_reasoning_sessions_crud/update_harnessed_reasoning_sessions_crud.dspy"
"/harnessed_reasoning/harnessed_reasoning_sessions_crud/delete_harnessed_reasoning_sessions_crud.dspy"
"/harnessed_reasoning/harnessed_reasoning_session_detail/add_harnessed_reasoning_session_detail.dspy"
"/harnessed_reasoning/harnessed_reasoning_session_detail/update_harnessed_reasoning_session_detail.dspy"
"/harnessed_reasoning/harnessed_reasoning_session_detail/delete_harnessed_reasoning_session_detail.dspy"
"/harnessed_reasoning/harnessed_reasoning_config_view/add_harnessed_reasoning_config_view.dspy"
"/harnessed_reasoning/harnessed_reasoning_config_view/update_harnessed_reasoning_config_view.dspy"
"/harnessed_reasoning/harnessed_reasoning_config_view/delete_harnessed_reasoning_config_view.dspy"
) )
ADMIN_ROLES_ONLY=("owner.admin" "reseller.admin" "provider.admin" "customer.admin" "reseller.operator" "reseller.accountant" "reseller.maintainer") ADMIN_ROLES_ONLY=("owner.admin" "reseller.admin" "provider.admin" "customer.admin" "reseller.operator" "reseller.accountant" "reseller.maintainer")