gitea
|
39122c83eb
|
refactor: 将项目上下文文件统一为 AGENTS.md
- 新增 AGENTS.md 作为主文件(原 CLAUDE.md 内容)
- CLAUDE.md 改为软链接指向 AGENTS.md(供 Claude 识别)
- 删除冗余的 Agent.md(无工具识别此命名)
AGENTS.md 是 OpenCode 和 Cursor 的标准命名,CLAUDE.md 是 Claude 的标准命名,
通过软链接确保各工具都能正确读取项目上下文。
|
2026-05-18 15:56:26 +08:00 |
|
gitea
|
dec99334d9
|
调整根目录文档定位:README / CLAUDE / Agent
|
2026-04-16 09:59:55 +08:00 |
|
gitea
|
19f6c02c2c
|
架构整改:收口分层边界、统一异常体系、规范文档约定
【止血】
- errors.py: NotLoggedInError.__init__ 增加可选 message 参数,修复
services/sealai/auth_service.py 中 raise NotLoggedInError(f"...") 导致
TypeError 的硬错误
【边界收口】
- services/sealai/auth_service.py: 新增 get_whoami(),封装 api.sealai.get_me,
消灭 commands/server 对 api 层的直接穿透
- commands/sealai/whoami.py: 改用 services.sealai.get_whoami(),去掉 api 层导入
- server/sealai_router.py /me: 改用 services.sealai.get_whoami(),去掉 api 层导入
- services/agent_service.py: 新增 list_agents_cmd 等 _cmd 系列便捷函数,
commands 层无需再 import get_client
- commands/agent/list.py: 改用 list_agents_cmd(),去掉对 api.get_client 的直接依赖
【Schema 归属】
- api/sealai/schemas.py: 新增「Server 请求模型」节,迁入 sealai_router.py 中
原有 6 个内联 BaseModel(RuleCreateRequest 等)
- server/sealai_router.py: 去掉所有内联 BaseModel 和 pydantic 导入,
改从 api/sealai/schemas 统一导入
【导出统一】
- services/__init__.py: 纳入 SealAI 子域的全部 service 函数,
消灭两套并行导出体系;补充模块 docstring
【工程纪律】
- commands/auth.py: 去掉 auth_use / auth_whoami 中的局部异常捕获,
统一由 CLI 入口全局 handler 处理
【文档规范】
- CLAUDE.md: 新增「文档规范」节,明确 {module}.readme.md / {module}.test.py /
README.{dirname}.md 命名约定及分层导入禁止规则
- 新建 README.commands.md / README.server.md / README.services.md /
services/sealai/README.sealai.md / api/sealai/README.sealai.md
|
2026-04-15 17:41:02 +08:00 |
|
gitea
|
29ec257788
|
精简 CLAUDE.md SealAI 章节,细节移入 commands/sealai/README.sealai.md
|
2026-04-14 16:49:28 +08:00 |
|
gitea
|
54ca2ffc4b
|
新增 SealAI CLI 命令层(whoami/billing)+ HTTP 路由 + 文档同步
|
2026-04-14 16:47:20 +08:00 |
|
gitea
|
bfce1fce77
|
文档:新增调试企业列表,记录 AI应用演示环境(ID01Jdq2yIDnMr)
|
2026-04-14 16:23:52 +08:00 |
|
gitea
|
39e1ed1d57
|
逆向补全:新增 rule/detail + rule/delete 端点,更新 CLAUDE.md API 路径文档
- api/rule.py:新增 get_rule_detail()(GET rule/detail?id=)和 delete_rule()(POST rule/delete)
- api/__init__.py:re-export 新增的两个函数
- CLAUDE.md:已知快报 API 路径章节补全,记录 rule/detail 返回字段、404 排除路径列表
和参数名注意事项(id 非 agentId)
|
2026-04-14 16:15:57 +08:00 |
|
gitea
|
9ec009f2cb
|
重构第4批:入口注册 serve 命令,更新命令树和项目文档
__init__.py:
- 注册 serve 命令(ekb serve)
- main() 统一捕获 EkbError,rich 红字输出并 SystemExit(1)
commands/serve.py(新建):
- ekb serve --host --port --reload
- 启动 FastAPI + uvicorn
commands/help.py:
- 命令树补 serve 分支
CLAUDE.md:
- 更新架构分层说明(三层:表现 / 业务 / 传输)
- 更新完整项目结构
- 新增 CLI ↔ HTTP Server 接口对照表
- 更新开发环境和工作规范
|
2026-04-14 11:29:58 +08:00 |
|
gitea
|
83f7ecafce
|
文档整理:拆分 agent 模块文档,清理 CLAUDE.md
- README.md → README.agent.md(agent 枚举常量、条款语义)
- 新增 README.rule.md(rule 枚举常量、关联关系、API)
- CLAUDE.md:去重、移走枚举常量、补全项目结构和命令全图
|
2026-04-06 01:26:10 +08:00 |
|
gitea
|
fd41415d83
|
新增:ekb agent rules 命令,列出企业所有审核规则
- api/agent.py 增加 list_rules / save_rule / update_rule 封装
- 新增 commands/agent/rule_list.py,支持 --full 展开截断字段
- 注册 rules 子命令,更新命令树和 CLAUDE.md API 路径
|
2026-04-06 01:12:15 +08:00 |
|
gitea
|
3ca9e142e0
|
文档:条款语义说明移至 commands/agent/,修正 CLAUDE.md 范围
|
2026-04-06 00:38:54 +08:00 |
|
gitea
|
405006a071
|
docs: add agent terms semantic explanation to CLAUDE.md
|
2026-04-06 00:37:58 +08:00 |
|
gitea
|
1672d14d0b
|
feat: add agent update command and ekb commands tree
- ekb agent update: patch-style update, only overrides provided fields
- ekb commands [group]: rich tree view of full command hierarchy
- api/agent.py: add save_agent()
- CLAUDE.md/README.md: simplify to layered structure
|
2026-04-06 00:37:20 +08:00 |
|
gitea
|
3c4ad6256a
|
feat: 完善认证机制并实现 agent list
- 认证方式从 Cookie 改为 accesstoken+corpid+staffid Header(基于真实请求分析)
- agent list 基于真实 API 响应结构完善(data.items, state/mode 字段)
- 新增 CLAUDE.md:项目上下文、认证说明、已知 API 文档
- 补充 README.md:安装和使用说明
|
2026-04-06 00:06:02 +08:00 |
|