@zshuangmu/agenthub 0.4.3 → 0.4.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zshuangmu/agenthub",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "AI Agent 打包与分发平台 - 一句话打包上传,一键下载获得能力",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/cli.js CHANGED
@@ -115,11 +115,12 @@ agenthub pack - 打包 Agent
115
115
  --version <ver> 版本号 (默认: 1.0.0)
116
116
  --tags <tags> 标签,逗号分隔
117
117
  --category <cat> 分类
118
+ --featured 标记为精选 Agent
118
119
 
119
120
  示例:
120
121
  agenthub pack --workspace ./my-agent --config ./openclaw.json
121
122
  agenthub pack --workspace ./my-agent --config ./openclaw.json --version 2.0.0
122
- agenthub pack --workspace ./my-agent --config ./openclaw.json --name "Code Helper"
123
+ agenthub pack --workspace ./my-agent --config ./openclaw.json --name "Code Helper" --featured
123
124
  `,
124
125
  publish: `
125
126
  agenthub publish - 发布 Agent
@@ -103,6 +103,7 @@ export async function packCommand(options) {
103
103
  tags: options.tags ? options.tags.split(",").map((t) => t.trim()) : [],
104
104
  category: options.category,
105
105
  version,
106
+ featured: options.featured === true,
106
107
  });
107
108
 
108
109
  // 5. 验证 MANIFEST
@@ -5,7 +5,7 @@
5
5
 
6
6
  const WORKSPACE_FILES = ["AGENTS.md", "SOUL.md", "USER.md", "IDENTITY.md", "TOOLS.md", "HEARTBEAT.md", "BOOTSTRAP.md"];
7
7
 
8
- export function createManifest({ slug, name, description, author, memoryCounts, openclawTemplate, skills = [], prompts = [], tags = [], category, language = "zh-CN", version = "1.0.0" }) {
8
+ export function createManifest({ slug, name, description, author, memoryCounts, openclawTemplate, skills = [], prompts = [], tags = [], category, language = "zh-CN", version = "1.0.0", featured = false }) {
9
9
  const hasModel = openclawTemplate?.agents?.defaults?.model?.primary;
10
10
  const totalMemory = memoryCounts.public + memoryCounts.portable + memoryCounts.private;
11
11
 
@@ -69,6 +69,7 @@ export function createManifest({ slug, name, description, author, memoryCounts,
69
69
  category: category || "General",
70
70
  language: language,
71
71
  license: "MIT",
72
+ featured,
72
73
  },
73
74
  };
74
75
  }