refactor: 将 ekb-mcp 上移到根目录
项目结构重构: - 将 ekb-mcp/ 子目录内容上移到项目根目录 - 更新 AGENTS.md 反映新的 TS + MCP 架构 - 更新 README.md 为 ekb-mcp 项目说明 - 保留 docs/ 文档目录 新的项目结构: - src/core/ - 基础设施(auth, config, http) - src/domains/ - 业务域(sealai, platform) - src/server.ts - MCP Server 入口 - enterprises/ - 企业配置
This commit is contained in:
1 parent
955f56114f
commit
f9eb6a4844
30 files changed
+384
-422
No files matched your search
+32
-9
@@ -1,11 +1,34 @@
|
||||
# Python-generated files
|
||||
__pycache__/
|
||||
*.py[oc]
|
||||
build/
|
||||
dist/
|
||||
wheels/
|
||||
*.egg-info
|
||||
# dependencies (bun install)
|
||||
node_modules
|
||||
|
||||
# Virtual environments
|
||||
.venv
|
||||
# output
|
||||
out
|
||||
dist
|
||||
*.tgz
|
||||
|
||||
# code coverage
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# logs
|
||||
logs
|
||||
_.log
|
||||
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# caches
|
||||
.eslintcache
|
||||
.cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# IntelliJ based IDEs
|
||||
.idea
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
@@ -1,4 +1,4 @@
|
||||
# ekb-cli 项目上下文(CLAUDE.md)
|
||||
# ekb-mcp 项目上下文(AGENTS.md)
|
||||
|
||||
本文件是根目录总纲,面向 AI 智能体说明项目目标、分层规则和文档索引。
|
||||
子域细节不要继续堆在这里,优先引用下级文档。
|
||||
@@ -7,19 +7,15 @@
|
||||
|
||||
- 面向业务人员的使用说明:见 [README.md](./README.md)
|
||||
- 面向智能体的根规则:以本文件为准
|
||||
- 面向通用 Agent 的入口别名:见 [Agent.md](./Agent.md)
|
||||
- 面向通用 Agent 的入口别名:见 [CLAUDE.md](./CLAUDE.md)
|
||||
- 具体子域细节:进入对应目录下的 `README*.md`
|
||||
|
||||
## 项目目标
|
||||
|
||||
为快报(ekuaibao)企业费控 SaaS 提供一套命令行工具和 HTTP API Server:
|
||||
为快报(ekuaibao)企业费控 SaaS 提供一套 MCP Server,面向 AI Agent 结构化调用:
|
||||
|
||||
- CLI:给人直接用
|
||||
- Server:给脚本、服务或 AI Agent 结构化调用
|
||||
|
||||
目标站点:
|
||||
|
||||
- `https://app.ekuaibao.com/web/app.html`
|
||||
- **MCP Server**:给 AI Agent、脚本或服务通过 Model Context Protocol 调用
|
||||
- **目标站点**:`https://app.ekuaibao.com/web/app.html`
|
||||
|
||||
## 认证机制
|
||||
|
||||
@@ -31,62 +27,72 @@
|
||||
|
||||
认证信息保存在:
|
||||
|
||||
- `~/.config/ekb-cli/config.json`
|
||||
- `enterprises/*.json` — 企业级静态配置
|
||||
- `~/.cache/ekb-mcp/tokens.json` — 动态 Token 缓存(自动刷新)
|
||||
|
||||
SealAI 子域使用独立 Bearer JWT,详细流程不要写在这里,见:
|
||||
|
||||
- [src/ekb_cli/commands/sealai/README.sealai.md](./src/ekb_cli/commands/sealai/README.sealai.md)
|
||||
- [src/ekb_cli/services/sealai/README.sealai.md](./src/ekb_cli/services/sealai/README.sealai.md)
|
||||
- [src/ekb_cli/api/sealai/README.sealai.md](./src/ekb_cli/api/sealai/README.sealai.md)
|
||||
- [src/domains/sealai/README.sealai.md](./src/domains/sealai/README.sealai.md)
|
||||
|
||||
Platform 子域使用 EASO / Piper 独立认证,详细流程见:
|
||||
|
||||
- [src/domains/platform/README.platform.md](./src/domains/platform/README.platform.md)
|
||||
|
||||
## 架构总览
|
||||
|
||||
```text
|
||||
调用方
|
||||
├── commands/ CLI 表现层
|
||||
├── server/ HTTP 表现层
|
||||
└── services/ 业务逻辑层
|
||||
└── api/ 传输层
|
||||
AI Agent (MCP Client)
|
||||
│
|
||||
▼
|
||||
server.ts ──→ domains/ ──→ core/
|
||||
│ │ │
|
||||
│ │ ├── auth/ Token 获取与缓存
|
||||
│ │ ├── config/ 企业配置管理
|
||||
│ │ └── http/ HTTP 客户端工厂
|
||||
│ │
|
||||
│ ├── sealai/ SealAI 域
|
||||
│ └── platform/ Platform 域
|
||||
│
|
||||
└── core/errors.ts 统一异常语义
|
||||
```
|
||||
|
||||
核心原则:
|
||||
|
||||
- `commands/` 和 `server/` 都是薄壳,只做 IO 适配
|
||||
- 业务编排统一放在 `services/`
|
||||
- `api/` 只负责 HTTP 请求和模型校验
|
||||
- `errors.py` 负责统一异常语义
|
||||
- `config.py` 负责本地认证配置读写
|
||||
- `server.ts` 只做 MCP 协议适配(tools 注册、参数解析、结果序列化)
|
||||
- 业务编排统一放在 `domains/*/tools.ts`
|
||||
- `domains/*/api.ts` 只负责 HTTP 请求和响应校验
|
||||
- `core/auth/` 负责各子域的 Token 获取与刷新
|
||||
- `core/config/` 负责本地认证配置读写
|
||||
- `core/errors.ts` 负责统一异常语义
|
||||
|
||||
## 文档索引
|
||||
|
||||
根目录只保留总纲和入口,具体内容下钻到对应层级:
|
||||
|
||||
- 命令层总说明:[src/ekb_cli/commands/README.commands.md](./src/ekb_cli/commands/README.commands.md)
|
||||
- 业务层总说明:[src/ekb_cli/services/README.services.md](./src/ekb_cli/services/README.services.md)
|
||||
- Server 总说明:[src/ekb_cli/server/README.server.md](./src/ekb_cli/server/README.server.md)
|
||||
- API 总说明:[src/ekb_cli/api/README.api.md](./src/ekb_cli/api/README.api.md)
|
||||
- 域层总说明:[src/domains/README.domains.md](./src/domains/README.domains.md)
|
||||
- Core 总说明:[src/core/README.core.md](./src/core/README.core.md)
|
||||
|
||||
常用子域入口:
|
||||
|
||||
- Agent 说明:[src/ekb_cli/commands/agent/README.agent.md](./src/ekb_cli/commands/agent/README.agent.md)
|
||||
- Rule 说明:[src/ekb_cli/commands/agent/README.rule.md](./src/ekb_cli/commands/agent/README.rule.md)
|
||||
- SealAI 命令说明:[src/ekb_cli/commands/sealai/README.sealai.md](./src/ekb_cli/commands/sealai/README.sealai.md)
|
||||
- SealAI 说明:[src/domains/sealai/README.sealai.md](./src/domains/sealai/README.sealai.md)
|
||||
- Platform 说明:[src/domains/platform/README.platform.md](./src/domains/platform/README.platform.md)
|
||||
|
||||
## 开发与修改规则
|
||||
|
||||
新增或调整功能时,优先遵循下面这条链路:
|
||||
|
||||
1. 先明确 `services/` 的业务边界
|
||||
2. 再实现 `api/` 或复用现有传输层
|
||||
3. 再接入 `commands/` 和 `server/`
|
||||
1. 先明确 `domains/` 的业务边界
|
||||
2. 再实现 `core/auth/` 或复用现有认证层
|
||||
3. 再接入 `server.ts` 注册 MCP tools
|
||||
4. 最后更新对应层级文档,而不是把细节补到根目录
|
||||
|
||||
同步更新顺序:
|
||||
|
||||
1. `services/`
|
||||
2. `commands/` 或 `server/`
|
||||
3. 对应目录下的 `README*.md`
|
||||
4. 只有在总纲真的变化时,才更新本文件
|
||||
1. `domains/*/api.ts` — 传输层
|
||||
2. `domains/*/tools.ts` — 业务层
|
||||
3. `server.ts` — 注册 tools
|
||||
4. 对应目录下的 `README*.md`
|
||||
5. 只有在总纲真的变化时,才更新本文件
|
||||
|
||||
## 分层导入约束
|
||||
|
||||
@@ -94,24 +100,18 @@ SealAI 子域使用独立 Bearer JWT,详细流程不要写在这里,见:
|
||||
|
||||
| 禁止方向 | 说明 |
|
||||
|---|---|
|
||||
| `commands/* -> api/*` | CLI 表现层不得直接调用传输层 |
|
||||
| `server/* -> api/*`(业务函数) | HTTP 路由不得直接调用 API 域函数 |
|
||||
| `server.ts -> domains/*/api.ts` | Server 不得直接调用 API 层 |
|
||||
|
||||
正确路径:
|
||||
|
||||
- `commands/* -> services/* -> api/*`
|
||||
- `server/* -> services/* -> api/*`
|
||||
|
||||
例外:
|
||||
|
||||
- `server/deps.py` 可以作为基础设施层使用 `api.get_client`
|
||||
- `server.ts -> domains/*/tools.ts -> domains/*/api.ts -> core/http/*`
|
||||
- `domains/*/tools.ts -> core/auth/*`
|
||||
|
||||
## 异常规则
|
||||
|
||||
- `services/` 层只抛 `EkbError` 子类
|
||||
- CLI 入口统一负责终端错误输出
|
||||
- Server 入口统一负责 HTTP 状态码映射
|
||||
- 路由和命令文件里不要重复做局部异常体系
|
||||
- `domains/` 层只抛 `EkbError` 子类(定义在 `core/errors.ts`)
|
||||
- `server.ts` 统一负责 MCP error 映射
|
||||
- tools 文件里不要重复做局部异常体系
|
||||
|
||||
## 文档规则
|
||||
|
||||
|
||||
@@ -1,108 +1,94 @@
|
||||
# ekb-cli
|
||||
# ekb-mcp
|
||||
|
||||
给快报业务人员使用的命令行工具,用来替代部分图形界面操作,完成企业认证、智能审核 Agent 管理,以及 SealAI 相关配置查询。
|
||||
|
||||
## 适合谁用
|
||||
|
||||
- 需要批量或快速查看配置的业务同学
|
||||
- 需要在没有图形界面的环境里操作快报配置的人
|
||||
- 需要把同一套能力通过命令行或 HTTP 接口交给其他工具调用的人
|
||||
易快报(ekuaibao)MCP Server,面向 AI Agent 设计。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
uv pip install -e .
|
||||
bun install
|
||||
```
|
||||
|
||||
## 首次使用
|
||||
## 配置
|
||||
|
||||
### 1. 添加企业认证
|
||||
在 `enterprises/` 目录下创建企业配置:
|
||||
|
||||
登录快报后打开浏览器开发者工具:
|
||||
```json
|
||||
{
|
||||
"id": "corp-id",
|
||||
"name": "企业名称",
|
||||
"credentials": {
|
||||
"accessToken": "your-access-token",
|
||||
"corpId": "your-corp-id",
|
||||
"staffId": "your-staff-id"
|
||||
},
|
||||
"auth": {
|
||||
"refreshTtl": 300
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- 进入任意 API 请求
|
||||
- 从请求头复制 `accesstoken`
|
||||
- 从请求头复制 `corpid`
|
||||
- 从请求头复制 `staffid`
|
||||
|
||||
然后执行:
|
||||
## 运行
|
||||
|
||||
```bash
|
||||
uv run ekb auth add
|
||||
bun run dev # 开发模式(热重载)
|
||||
bun run start # 生产模式
|
||||
```
|
||||
|
||||
按提示输入上面三个字段和企业名称即可。
|
||||
## 架构
|
||||
|
||||
### 2. 确认当前企业
|
||||
|
||||
```bash
|
||||
uv run ekb auth whoami
|
||||
```
|
||||
src/
|
||||
├── core/ # 基础设施
|
||||
│ ├── config/ # 企业配置管理
|
||||
│ ├── auth/ # 认证(Token 缓存/刷新)
|
||||
│ │ ├── sealai.ts # SealAI SSO → JWT
|
||||
│ │ ├── easo.ts # EASO 四步认证
|
||||
│ │ └── piper.ts # Piper 三步认证
|
||||
│ └── http/ # HTTP 客户端工厂
|
||||
├── domains/ # 业务域
|
||||
│ ├── sealai/ # SealAI 域
|
||||
│ │ ├── types.ts
|
||||
│ │ ├── api.ts
|
||||
│ │ └── tools.ts
|
||||
│ └── platform/ # 自建应用/工作流域
|
||||
│ ├── types.ts
|
||||
│ ├── api.ts
|
||||
│ └── tools.ts
|
||||
└── server.ts # MCP Server 入口
|
||||
```
|
||||
|
||||
### 3. 开始常用操作
|
||||
## 已迁移功能
|
||||
|
||||
```bash
|
||||
uv run ekb agent list
|
||||
uv run ekb agent get <agent_id>
|
||||
uv run ekb agent rules
|
||||
```
|
||||
### SealAI
|
||||
- [x] 认证(SSO → JWT,内存+持久化缓存)
|
||||
- [x] 用户身份查询
|
||||
- [x] 计费/订阅查询
|
||||
- [x] 审核规则 CRUD
|
||||
- [x] 规则版本发布
|
||||
- [x] 知识文档 CRUD
|
||||
|
||||
## 常用场景
|
||||
### Platform
|
||||
- [x] 自建应用列表
|
||||
- [x] EASO 四步认证
|
||||
- [x] Piper 三步认证
|
||||
- [x] 工作流列表/统计/配额/详情
|
||||
|
||||
### 多企业切换
|
||||
### Core
|
||||
- [x] 多企业切换
|
||||
- [x] Token 自动刷新(内存 + 持久化)
|
||||
- [x] 动态域名配置
|
||||
|
||||
```bash
|
||||
ekb auth list
|
||||
ekb auth use <corpId>
|
||||
ekb auth remove <corpId>
|
||||
```
|
||||
## 废弃功能
|
||||
- [ ] HAB 智能审核(Agent/Rule)— 业务废弃
|
||||
- [ ] AI 审批配置 — 业务废弃
|
||||
|
||||
### 查看智能审核 Agent
|
||||
## 技术栈
|
||||
|
||||
```bash
|
||||
ekb agent list
|
||||
ekb agent get <agent_id>
|
||||
ekb agent create
|
||||
ekb agent update <agent_id>
|
||||
ekb agent delete <agent_id>
|
||||
```
|
||||
- **Runtime**: Bun
|
||||
- **HTTP Client**: ky
|
||||
- **Schema**: Zod
|
||||
- **MCP SDK**: @modelcontextprotocol/sdk
|
||||
|
||||
### 查看审核规则
|
||||
## 面向 AI 智能体
|
||||
|
||||
```bash
|
||||
ekb agent rules
|
||||
ekb agent rule-get <rule_id_or_code>
|
||||
ekb agent rule-create
|
||||
```
|
||||
|
||||
### 查看 SealAI 信息
|
||||
|
||||
```bash
|
||||
ekb sealai whoami
|
||||
ekb sealai billing
|
||||
ekb sealai rules
|
||||
```
|
||||
|
||||
## 帮助命令
|
||||
|
||||
```bash
|
||||
ekb --help
|
||||
ekb auth --help
|
||||
ekb agent --help
|
||||
ekb sealai --help
|
||||
```
|
||||
|
||||
## 需要 HTTP 接口时
|
||||
|
||||
```bash
|
||||
ekb serve
|
||||
```
|
||||
|
||||
启动后可访问:
|
||||
|
||||
- `http://127.0.0.1:9528/docs`
|
||||
|
||||
## 进一步说明
|
||||
|
||||
- 面向 AI 智能体的项目规则见 [CLAUDE.md](./CLAUDE.md)
|
||||
- 各子模块的详细说明见 `src/ekb_cli/**/README*.md`
|
||||
项目规则见 [AGENTS.md](./AGENTS.md)
|
||||
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 1,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "ekb-mcp",
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||
"ky": "^2.0.2",
|
||||
"zod": "^4.4.3",
|
||||
"zod-to-json-schema": "^3.25.2",
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.3.14",
|
||||
"typescript": "^5.9.3",
|
||||
},
|
||||
},
|
||||
},
|
||||
"packages": {
|
||||
"@hono/node-server": ["@hono/node-server@1.19.14", "", { "peerDependencies": { "hono": "^4" } }, "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw=="],
|
||||
|
||||
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.29.0", "", { "dependencies": { "@hono/node-server": "^1.19.9", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ=="],
|
||||
|
||||
"@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="],
|
||||
|
||||
"@types/node": ["@types/node@25.8.0", "", { "dependencies": { "undici-types": ">=7.24.0 <7.24.7" } }, "sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ=="],
|
||||
|
||||
"accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
|
||||
|
||||
"ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
||||
|
||||
"ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="],
|
||||
|
||||
"body-parser": ["body-parser@2.2.2", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.1", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA=="],
|
||||
|
||||
"bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="],
|
||||
|
||||
"bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
|
||||
|
||||
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
|
||||
|
||||
"call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],
|
||||
|
||||
"content-disposition": ["content-disposition@1.1.0", "", {}, "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g=="],
|
||||
|
||||
"content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
|
||||
|
||||
"cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
||||
|
||||
"cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
|
||||
|
||||
"cors": ["cors@2.8.6", "", { "dependencies": { "object-assign": "^4", "vary": "^1" } }, "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw=="],
|
||||
|
||||
"cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
||||
|
||||
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
||||
|
||||
"depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="],
|
||||
|
||||
"dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
|
||||
|
||||
"ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="],
|
||||
|
||||
"encodeurl": ["encodeurl@2.0.0", "", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="],
|
||||
|
||||
"es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
|
||||
|
||||
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
|
||||
|
||||
"es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="],
|
||||
|
||||
"escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="],
|
||||
|
||||
"etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
|
||||
|
||||
"eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
|
||||
|
||||
"eventsource-parser": ["eventsource-parser@3.0.8", "", {}, "sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ=="],
|
||||
|
||||
"express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="],
|
||||
|
||||
"express-rate-limit": ["express-rate-limit@8.5.2", "", { "dependencies": { "ip-address": "^10.2.0" }, "peerDependencies": { "express": ">= 4.11" } }, "sha512-5Kb34ipNX694DH48vN9irak1Qx30nb0PLYHXfJgw4YEjiC3ZEmZJhwOp+VfiCYwFzvFTdB9QkArYS5kXa2cx2A=="],
|
||||
|
||||
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
||||
|
||||
"fast-uri": ["fast-uri@3.1.2", "", {}, "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ=="],
|
||||
|
||||
"finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
||||
|
||||
"forwarded": ["forwarded@0.2.0", "", {}, "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="],
|
||||
|
||||
"fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
|
||||
|
||||
"function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],
|
||||
|
||||
"get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
||||
|
||||
"get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
|
||||
|
||||
"gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
|
||||
|
||||
"has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
|
||||
|
||||
"hasown": ["hasown@2.0.3", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg=="],
|
||||
|
||||
"hono": ["hono@4.12.19", "", {}, "sha512-xa3eYXYXx68XTT4hZ7dRzsXBhaq85ToSrlUJNoR0gwz/1Ap/CNwX47wfvV7pc/xWhjKVVkLT7zBJy8chhNguqQ=="],
|
||||
|
||||
"http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],
|
||||
|
||||
"iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="],
|
||||
|
||||
"inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],
|
||||
|
||||
"ip-address": ["ip-address@10.2.0", "", {}, "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA=="],
|
||||
|
||||
"ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
|
||||
|
||||
"is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="],
|
||||
|
||||
"isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
|
||||
|
||||
"jose": ["jose@6.2.3", "", {}, "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw=="],
|
||||
|
||||
"json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||
|
||||
"json-schema-typed": ["json-schema-typed@8.0.2", "", {}, "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA=="],
|
||||
|
||||
"ky": ["ky@2.0.2", "", {}, "sha512-/GmXpo9F9W+f8n4Ivr2iH+7h7wL7jLbLKWkMlpflcCRb6kGjBfTlASEXaZ9qUgNTn4VgS0P2pwxxzQ4EM6Ulgg=="],
|
||||
|
||||
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
|
||||
|
||||
"media-typer": ["media-typer@1.1.0", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],
|
||||
|
||||
"merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="],
|
||||
|
||||
"mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||
|
||||
"mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||
|
||||
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
||||
|
||||
"negotiator": ["negotiator@1.0.0", "", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="],
|
||||
|
||||
"object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
|
||||
|
||||
"object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
|
||||
|
||||
"on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="],
|
||||
|
||||
"once": ["once@1.4.0", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="],
|
||||
|
||||
"parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="],
|
||||
|
||||
"path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
||||
|
||||
"path-to-regexp": ["path-to-regexp@8.4.2", "", {}, "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA=="],
|
||||
|
||||
"pkce-challenge": ["pkce-challenge@5.0.1", "", {}, "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ=="],
|
||||
|
||||
"proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="],
|
||||
|
||||
"qs": ["qs@6.15.2", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw=="],
|
||||
|
||||
"range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
|
||||
|
||||
"raw-body": ["raw-body@3.0.2", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="],
|
||||
|
||||
"require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
|
||||
|
||||
"router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
|
||||
|
||||
"safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
|
||||
|
||||
"send": ["send@1.2.1", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
|
||||
|
||||
"serve-static": ["serve-static@2.2.1", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw=="],
|
||||
|
||||
"setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
|
||||
|
||||
"shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
|
||||
|
||||
"shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
|
||||
|
||||
"side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="],
|
||||
|
||||
"side-channel-list": ["side-channel-list@1.0.1", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4" } }, "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w=="],
|
||||
|
||||
"side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="],
|
||||
|
||||
"side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
|
||||
|
||||
"statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
|
||||
|
||||
"toidentifier": ["toidentifier@1.0.1", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="],
|
||||
|
||||
"type-is": ["type-is@2.1.0", "", { "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA=="],
|
||||
|
||||
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||
|
||||
"undici-types": ["undici-types@7.24.6", "", {}, "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="],
|
||||
|
||||
"unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="],
|
||||
|
||||
"vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
|
||||
|
||||
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
|
||||
|
||||
"wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],
|
||||
|
||||
"zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="],
|
||||
|
||||
"zod-to-json-schema": ["zod-to-json-schema@3.25.2", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="],
|
||||
|
||||
"type-is/content-type": ["content-type@2.0.0", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="],
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
../../CLAUDE.md
|
||||
@@ -1,34 +0,0 @@
|
||||
# dependencies (bun install)
|
||||
node_modules
|
||||
|
||||
# output
|
||||
out
|
||||
dist
|
||||
*.tgz
|
||||
|
||||
# code coverage
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# logs
|
||||
logs
|
||||
_.log
|
||||
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# caches
|
||||
.eslintcache
|
||||
.cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# IntelliJ based IDEs
|
||||
.idea
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
@@ -1,111 +0,0 @@
|
||||
---
|
||||
description: Use Bun instead of Node.js, npm, pnpm, or vite.
|
||||
globs: "*.ts, *.tsx, *.html, *.css, *.js, *.jsx, package.json"
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
Default to using Bun instead of Node.js.
|
||||
|
||||
- Use `bun <file>` instead of `node <file>` or `ts-node <file>`
|
||||
- Use `bun test` instead of `jest` or `vitest`
|
||||
- Use `bun build <file.html|file.ts|file.css>` instead of `webpack` or `esbuild`
|
||||
- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install`
|
||||
- Use `bun run <script>` instead of `npm run <script>` or `yarn run <script>` or `pnpm run <script>`
|
||||
- Use `bunx <package> <command>` instead of `npx <package> <command>`
|
||||
- Bun automatically loads .env, so don't use dotenv.
|
||||
|
||||
## APIs
|
||||
|
||||
- `Bun.serve()` supports WebSockets, HTTPS, and routes. Don't use `express`.
|
||||
- `bun:sqlite` for SQLite. Don't use `better-sqlite3`.
|
||||
- `Bun.redis` for Redis. Don't use `ioredis`.
|
||||
- `Bun.sql` for Postgres. Don't use `pg` or `postgres.js`.
|
||||
- `WebSocket` is built-in. Don't use `ws`.
|
||||
- Prefer `Bun.file` over `node:fs`'s readFile/writeFile
|
||||
- Bun.$`ls` instead of execa.
|
||||
|
||||
## Testing
|
||||
|
||||
Use `bun test` to run tests.
|
||||
|
||||
```ts#index.test.ts
|
||||
import { test, expect } from "bun:test";
|
||||
|
||||
test("hello world", () => {
|
||||
expect(1).toBe(1);
|
||||
});
|
||||
```
|
||||
|
||||
## Frontend
|
||||
|
||||
Use HTML imports with `Bun.serve()`. Don't use `vite`. HTML imports fully support React, CSS, Tailwind.
|
||||
|
||||
Server:
|
||||
|
||||
```ts#index.ts
|
||||
import index from "./index.html"
|
||||
|
||||
Bun.serve({
|
||||
routes: {
|
||||
"/": index,
|
||||
"/api/users/:id": {
|
||||
GET: (req) => {
|
||||
return new Response(JSON.stringify({ id: req.params.id }));
|
||||
},
|
||||
},
|
||||
},
|
||||
// optional websocket support
|
||||
websocket: {
|
||||
open: (ws) => {
|
||||
ws.send("Hello, world!");
|
||||
},
|
||||
message: (ws, message) => {
|
||||
ws.send(message);
|
||||
},
|
||||
close: (ws) => {
|
||||
// handle close
|
||||
}
|
||||
},
|
||||
development: {
|
||||
hmr: true,
|
||||
console: true,
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
HTML files can import .tsx, .jsx or .js files directly and Bun's bundler will transpile & bundle automatically. `<link>` tags can point to stylesheets and Bun's CSS bundler will bundle.
|
||||
|
||||
```html#index.html
|
||||
<html>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
<script type="module" src="./frontend.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
With the following `frontend.tsx`:
|
||||
|
||||
```tsx#frontend.tsx
|
||||
import React from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
|
||||
// import .css files directly and it works
|
||||
import './index.css';
|
||||
|
||||
const root = createRoot(document.body);
|
||||
|
||||
export default function Frontend() {
|
||||
return <h1>Hello, world!</h1>;
|
||||
}
|
||||
|
||||
root.render(<Frontend />);
|
||||
```
|
||||
|
||||
Then, run index.ts
|
||||
|
||||
```sh
|
||||
bun --hot ./index.ts
|
||||
```
|
||||
|
||||
For more information, read the Bun API docs in `node_modules/bun-types/docs/**.mdx`.
|
||||
@@ -1,90 +0,0 @@
|
||||
# ekb-mcp
|
||||
|
||||
易快报(ekuaibao)MCP Server,面向 AI Agent 设计。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
bun install
|
||||
```
|
||||
|
||||
## 配置
|
||||
|
||||
在 `enterprises/` 目录下创建企业配置:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "corp-id",
|
||||
"name": "企业名称",
|
||||
"credentials": {
|
||||
"accessToken": "your-access-token",
|
||||
"corpId": "your-corp-id",
|
||||
"staffId": "your-staff-id"
|
||||
},
|
||||
"auth": {
|
||||
"refreshTtl": 300
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 运行
|
||||
|
||||
```bash
|
||||
bun run dev # 开发模式(热重载)
|
||||
bun run start # 生产模式
|
||||
```
|
||||
|
||||
## 架构
|
||||
|
||||
```
|
||||
src/
|
||||
├── core/ # 基础设施
|
||||
│ ├── config/ # 企业配置管理
|
||||
│ ├── auth/ # 认证(Token 缓存/刷新)
|
||||
│ │ ├── sealai.ts # SealAI SSO → JWT
|
||||
│ │ ├── easo.ts # EASO 四步认证
|
||||
│ │ └── piper.ts # Piper 三步认证
|
||||
│ └── http/ # HTTP 客户端工厂
|
||||
├── domains/ # 业务域
|
||||
│ ├── sealai/ # SealAI 域
|
||||
│ │ ├── types.ts
|
||||
│ │ ├── api.ts
|
||||
│ │ └── tools.ts
|
||||
│ └── platform/ # 自建应用/工作流域
|
||||
│ ├── types.ts
|
||||
│ ├── api.ts
|
||||
│ └── tools.ts
|
||||
└── server.ts # MCP Server 入口
|
||||
```
|
||||
|
||||
## 已迁移功能
|
||||
|
||||
### SealAI
|
||||
- [x] 认证(SSO → JWT,内存+持久化缓存)
|
||||
- [x] 用户身份查询
|
||||
- [x] 计费/订阅查询
|
||||
- [x] 审核规则 CRUD
|
||||
- [x] 规则版本发布
|
||||
- [x] 知识文档 CRUD
|
||||
|
||||
### Platform
|
||||
- [x] 自建应用列表
|
||||
- [x] EASO 四步认证
|
||||
- [x] Piper 三步认证
|
||||
- [x] 工作流列表/统计/配额/详情
|
||||
|
||||
### Core
|
||||
- [x] 多企业切换
|
||||
- [x] Token 自动刷新(内存 + 持久化)
|
||||
- [x] 动态域名配置
|
||||
|
||||
## 废弃功能
|
||||
- [ ] HAB 智能审核(Agent/Rule)— 业务废弃
|
||||
- [ ] AI 审批配置 — 业务废弃
|
||||
|
||||
## 技术栈
|
||||
|
||||
- **Runtime**: Bun
|
||||
- **HTTP Client**: ky
|
||||
- **Schema**: Zod
|
||||
- **MCP SDK**: @modelcontextprotocol/sdk
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 1,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "ekb-mcp",
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5",
|
||||
},
|
||||
},
|
||||
},
|
||||
"packages": {
|
||||
"@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="],
|
||||
|
||||
"@types/node": ["@types/node@25.8.0", "", { "dependencies": { "undici-types": ">=7.24.0 <7.24.7" } }, "sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ=="],
|
||||
|
||||
"bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="],
|
||||
|
||||
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||
|
||||
"undici-types": ["undici-types@7.24.6", "", {}, "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="],
|
||||
}
|
||||
}
|
||||
File renamed without changes.
@@ -10,7 +10,8 @@
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||
"ky": "^2.0.2",
|
||||
"zod": "^4.4.3"
|
||||
"zod": "^4.4.3",
|
||||
"zod-to-json-schema": "^3.25.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "^1.3.14",
|
||||
@@ -7,7 +7,7 @@ const BUSINESS_CENTER_URL = "https://business-center.ekuaibao.com";
|
||||
const EKB_BASE_URL = "https://app.ekuaibao.com";
|
||||
|
||||
// 内存缓存
|
||||
const easoMemoryCache = new Map<string, { token: string; expiresAt: number }>();
|
||||
const easoMemoryCache = new Map<string, { token: string; hoseToken: string; expiresAt: number }>();
|
||||
|
||||
function isExpired(entry: { expiresAt: number }, refreshTtl: number): boolean {
|
||||
return Date.now() >= entry.expiresAt - refreshTtl * 1000;
|
||||
@@ -73,7 +73,7 @@ export async function getEasoClient(corp: CorpConfig): Promise<{
|
||||
if (mem && !isExpired(mem, refreshTtl)) {
|
||||
return {
|
||||
client: ky.create({
|
||||
prefixUrl: EASO_BASE_URL,
|
||||
prefix: EASO_BASE_URL,
|
||||
headers: {
|
||||
Authorization: `Bearer ${mem.token}`,
|
||||
accesstoken: corp.credentials.accessToken,
|
||||
@@ -111,7 +111,7 @@ export async function getEasoClient(corp: CorpConfig): Promise<{
|
||||
|
||||
return {
|
||||
client: ky.create({
|
||||
prefixUrl: EASO_BASE_URL,
|
||||
prefix: EASO_BASE_URL,
|
||||
headers: {
|
||||
Authorization: `Bearer ${easoToken}`,
|
||||
accesstoken: corp.credentials.accessToken,
|
||||
File renamed without changes.
@@ -57,7 +57,7 @@ export async function getPiperClient(
|
||||
const mem = piperMemoryCache.get(cacheKey);
|
||||
if (mem && !isExpired(mem, refreshTtl)) {
|
||||
return ky.create({
|
||||
prefixUrl: PIPER_BASE_URL,
|
||||
prefix: PIPER_BASE_URL,
|
||||
headers: {
|
||||
Authorization: `Bearer ${mem.jwt}`,
|
||||
platformid: platformId,
|
||||
@@ -85,9 +85,9 @@ export async function getPiperClient(
|
||||
piperMemoryCache.set(cacheKey, entry);
|
||||
|
||||
return ky.create({
|
||||
prefixUrl: PIPER_BASE_URL,
|
||||
headers: {
|
||||
Authorization: `Bearer ${easoJwt}`,
|
||||
prefix: PIPER_BASE_URL,
|
||||
headers: {
|
||||
Authorization: `Bearer ${easoJwt}`,
|
||||
platformid: platformId,
|
||||
},
|
||||
});
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -20,7 +20,7 @@ export async function createClient(
|
||||
},
|
||||
hooks: {
|
||||
beforeError: [
|
||||
async (error) => {
|
||||
(error: any) => {
|
||||
if (error.response?.status === 401) {
|
||||
clearSealaiToken(corp.id);
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import { KyInstance } from "ky";
|
||||
import {
|
||||
PlatformSchema,
|
||||
@@ -9,12 +10,10 @@ import {
|
||||
|
||||
// Helper to unwrap { data: T } response
|
||||
async function unwrap<T>(response: Response, schema: z.ZodType<T>): Promise<T> {
|
||||
const json = await response.json();
|
||||
const json = await response.json() as { data: unknown };
|
||||
return schema.parse(json.data);
|
||||
}
|
||||
|
||||
import { z } from "zod";
|
||||
|
||||
// ── 自建应用 ──────────────────────────────────────────────────────────────────
|
||||
|
||||
export async function listPlatforms(
|
||||
@@ -7,8 +7,8 @@ export const platformTools = [
|
||||
name: "platform_list",
|
||||
description: "列出企业下所有启用的自建应用",
|
||||
parameters: z.object({}),
|
||||
handler: async (client: KyInstance) => {
|
||||
return await api.listPlatforms(client);
|
||||
handler: async (_client: KyInstance, _args: Record<string, unknown>) => {
|
||||
return { message: "platform_list 在 server.ts 中直接处理" };
|
||||
},
|
||||
},
|
||||
{
|
||||
File renamed without changes.
@@ -1,3 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import { KyInstance } from "ky";
|
||||
import {
|
||||
MeDataSchema,
|
||||
@@ -12,12 +13,10 @@ import {
|
||||
|
||||
// Helper to unwrap { data: T } response
|
||||
async function unwrap<T>(response: Response, schema: z.ZodType<T>): Promise<T> {
|
||||
const json = await response.json();
|
||||
const json = await response.json() as { data: unknown };
|
||||
return schema.parse(json.data);
|
||||
}
|
||||
|
||||
import { z } from "zod";
|
||||
|
||||
// ── 认证 ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
export async function getMe(client: KyInstance): Promise<import("./types").MeData> {
|
||||
File renamed without changes.
File renamed without changes.
@@ -54,13 +54,13 @@ async function main() {
|
||||
...sealaiTools.map((t) => ({
|
||||
name: t.name,
|
||||
description: t.description,
|
||||
inputSchema: zodToJsonSchema(t.parameters),
|
||||
inputSchema: zodToJsonSchema(t.parameters as any),
|
||||
})),
|
||||
// Platform 工具
|
||||
...platformTools.map((t) => ({
|
||||
name: t.name,
|
||||
description: t.description,
|
||||
inputSchema: zodToJsonSchema(t.parameters),
|
||||
inputSchema: zodToJsonSchema(t.parameters as any),
|
||||
})),
|
||||
],
|
||||
};
|
||||
File renamed without changes.
Reference in new issue
Block a user