@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 +1 -1
- package/src/cli.js +2 -1
- package/src/commands/pack.js +1 -0
- package/src/lib/manifest.js +2 -1
package/package.json
CHANGED
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
|
package/src/commands/pack.js
CHANGED
package/src/lib/manifest.js
CHANGED
|
@@ -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
|
}
|