@zshuangmu/agenthub 0.4.12 → 0.4.14

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/package.json +1 -1
  2. package/src/cli.js +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zshuangmu/agenthub",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "AI Agent 打包与分发平台 - 一句话打包上传,一键下载获得能力",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/cli.js CHANGED
@@ -75,6 +75,8 @@ AgentHub v${VERSION} - AI Agent 打包与分发平台
75
75
  stats 查看 Agent 统计信息
76
76
  doctor 诊断 AgentHub 安装和环境问题
77
77
  serve 启动 Web + API 服务
78
+ api 仅启动 API 后端服务
79
+ web 仅启动 Web 前端服务
78
80
 
79
81
  选项:
80
82
  --help, -h 显示帮助信息
@@ -258,6 +260,34 @@ agenthub rollback - 回滚 Agent 到指定版本
258
260
  示例:
259
261
  agenthub rollback workspace --to 1.0.0 --registry ./.registry --target-workspace ./my-workspace
260
262
  agenthub rollback workspace --to 1.0.0 --server https://agenthub.cyou --target-workspace ./my-workspace
263
+ `,
264
+ info: `
265
+ agenthub info - 查看 Agent 详情
266
+
267
+ 用法:
268
+ agenthub info <agent-slug> [--registry <dir> | --server <url>]
269
+
270
+ 选项:
271
+ --registry <dir> 本地 Registry 目录(与 --server 二选一)
272
+ --server <url> 远程服务器地址(默认: https://agenthub.cyou)
273
+ --json JSON 格式输出
274
+
275
+ 示例:
276
+ agenthub info code-review-assistant --registry ./.registry
277
+ agenthub info my-agent --server https://agenthub.cyou --json
278
+ `,
279
+ "publish-remote": `
280
+ agenthub publish-remote - 发布 Agent 到远程服务器
281
+
282
+ 用法:
283
+ agenthub publish-remote <bundle-dir> --server <url>
284
+
285
+ 选项:
286
+ --server <url> 远程服务器地址(默认: https://agenthub.cyou)
287
+
288
+ 示例:
289
+ agenthub publish-remote ./bundles/my-agent.agent
290
+ agenthub publish-remote ./bundles/my-agent.agent --server https://agenthub.cyou
261
291
  `,
262
292
  stats: `
263
293
  agenthub stats - 查看 Agent 统计信息