重构:api层拆分 agent/rule,引入 Pydantic 校验,统一 re-export,补充 README.api.md
This commit is contained in:
1 parent
c3c389146f
commit
4466af7726
16 files changed
+487
-216
No files matched your search
@@ -54,3 +54,17 @@ def get_client() -> EkbClient:
|
||||
access_token=corp["access_token"],
|
||||
staff_id=corp["staff_id"],
|
||||
)
|
||||
|
||||
|
||||
# ── 统一 re-export:commands 只从这里导入,内部拆分对外透明 ──────────
|
||||
from ekb_cli.api.agent import ( # noqa: E402
|
||||
check_agent_name,
|
||||
list_agents,
|
||||
get_agent,
|
||||
save_agent,
|
||||
)
|
||||
from ekb_cli.api.rule import ( # noqa: E402
|
||||
list_rules,
|
||||
save_rule,
|
||||
update_rule,
|
||||
)
|
||||
Reference in new issue
Block a user