新增:ekb agent rule-get,规则详情含关联Agent;rules 支持 --level 筛选
- rule_detail.py:支持 ID 或编码(0001/#0001)查询,展示完整描述和关联Agent列表 - rule_list.py:新增 --level 筛选参数 - 注册 rule-get 命令,更新命令树
This commit is contained in:
1 parent
fd41415d83
commit
a863377da8
4 files changed
+72
-1
No files matched your search
@@ -6,6 +6,7 @@ from ekb_cli.commands.agent.detail import cmd_detail
|
||||
from ekb_cli.commands.agent.logs import cmd_logs
|
||||
from ekb_cli.commands.agent.update import cmd_update
|
||||
from ekb_cli.commands.agent.rule_list import cmd_rule_list
|
||||
from ekb_cli.commands.agent.rule_detail import cmd_rule_detail
|
||||
|
||||
app = typer.Typer(help="智能审核 Agent 管理")
|
||||
|
||||
@@ -14,3 +15,4 @@ app.command("get")(cmd_detail)
|
||||
app.command("update")(cmd_update)
|
||||
app.command("logs")(cmd_logs)
|
||||
app.command("rules")(cmd_rule_list)
|
||||
app.command("rule-get")(cmd_rule_detail)
|
||||
Reference in new issue
Block a user