@zshuangmu/agenthub 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -161,6 +161,9 @@ agenthub verify code-review-assistant --registry ./.registry --target-workspace
161
161
  ### HTTP API
162
162
 
163
163
  ```bash
164
+ # 健康检查
165
+ curl http://localhost:3001/api/health
166
+
164
167
  # 列出所有 Agent
165
168
  curl http://localhost:3001/api/agents
166
169
 
@@ -170,8 +173,20 @@ curl "http://localhost:3001/api/agents?q=react"
170
173
  # 获取 Agent 详情
171
174
  curl http://localhost:3001/api/agents/my-agent
172
175
 
176
+ # 下载 Agent Bundle
177
+ curl http://localhost:3001/api/agents/my-agent/download
178
+
173
179
  # 获取统计信息
174
180
  curl http://localhost:3001/api/stats
181
+
182
+ # 获取下载排行
183
+ curl "http://localhost:3001/api/stats/ranking?limit=10"
184
+
185
+ # 发布 Agent (POST)
186
+ curl -X POST http://localhost:3001/api/publish -H "Content-Type: application/json" -d '{"slug":"my-agent","version":"1.0.0"}'
187
+
188
+ # 上传发布 Agent (POST)
189
+ curl -X POST http://localhost:3001/api/publish-upload -H "Content-Type: application/json" -d '{"bundleData":"..."}'
175
190
  ```
176
191
 
177
192
  ### AI 自动发现
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zshuangmu/agenthub",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "AI Agent 打包与分发平台 - 一句话打包上传,一键下载获得能力",
5
5
  "type": "module",
6
6
  "main": "src/index.js",