docs: 重写 Platform/SealAI 模块文档并补充目录入口

- 重写 docs/modules/platform.md 为当前 TS MCP 结构
- 重写 docs/modules/sealai.md 为当前 MCP tool 清单
- 新增 src/domains/README.domains.md、platform/README.platform.md、sealai/README.sealai.md
- 新增 src/core/README.core.md
- 确保 AGENTS.md 引用的下级文档全部存在
This commit is contained in:
gitea committed 2026-07-17 16:54:09 +08:00
1 parent 93360a8ef9
commit 0b2a060763
6 files changed
+181 -162

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# Domains 域层说明
本目录按业务域组织代码,每个域独立负责自己的传输层、业务层和模型层。
## 当前域
| 域 | 说明 | 详细文档 |
|---|---|---|
| `platform/` | 自建应用(DataLink Platform)与工作流(EASO/Piper) | [README.platform.md](./platform/README.platform.md) |
| `sealai/` | SealAI 独立子域(AI 填单/审批) | [README.sealai.md](./sealai/README.sealai.md) |
## 分层规则
- `api.ts`:只负责 HTTP 请求和响应校验
- `tools.ts`:负责 MCP tool 注册和业务编排
- `types.ts`:Zod schema 与类型定义
Server 入口 `src/server.ts` 只调用 `domains/*/tools.ts`,不直接调用 `api.ts`。
+18
View File
@@ -0,0 +1,18 @@
# Platform 域说明
Platform 域负责自建应用(DataLink Platform)和工作流(EASO/Piper)相关能力。
## 代码结构
```text
src/domains/platform/
├── types.ts # Zod schema 与类型定义
├── api.ts # HTTP 传输层
└── tools.ts # MCP tool 注册 + 服务层聚合函数
```
## 详细文档
完整接口说明、认证链路、MCP tool 列表见:
[docs/modules/platform.md](../../../docs/modules/platform.md)
+18
View File
@@ -0,0 +1,18 @@
# SealAI 域说明
SealAI 域负责 `{corpId.lower()}.sealai.cc` 独立子站的 AI 填单/审批能力。
## 代码结构
```text
src/domains/sealai/
├── types.ts # Zod schema 与类型定义
├── api.ts # HTTP 传输层
└── tools.ts # MCP tool 注册
```
## 详细文档
完整认证说明、MCP tool 列表、数据模型见:
[docs/modules/sealai.md](../../../docs/modules/sealai.md)