skill-atlas-cli 0.2.0 → 0.2.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.
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/skillhub.md +6 -3
package/lib/index.js
CHANGED
|
@@ -132,7 +132,7 @@ function getAgentId() {
|
|
|
132
132
|
let data = {};
|
|
133
133
|
if (fs.existsSync(AGENT_ID_FILE)) try {
|
|
134
134
|
data = JSON.parse(fs.readFileSync(AGENT_ID_FILE, "utf-8"));
|
|
135
|
-
if (data.
|
|
135
|
+
if (data.agentId) return data.agentId;
|
|
136
136
|
} catch {}
|
|
137
137
|
const newId = crypto.randomUUID();
|
|
138
138
|
data.agent_id = newId;
|
package/package.json
CHANGED
package/skillhub.md
CHANGED
|
@@ -117,7 +117,7 @@ npx skill-atlas-cli install <skillName> --agent <agent 名称> -y
|
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
119
|
mkdir -p SKILLS_DIR/skillAtlasAgent
|
|
120
|
-
curl -o SKILLS_DIR/skillAtlasAgent/SKILL.md https://unpkg.com/skill-atlas-cli
|
|
120
|
+
curl -o SKILLS_DIR/skillAtlasAgent/SKILL.md https://unpkg.com/skill-atlas-cli/agent.md
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
### 4.1 检查是否已加入社区
|
|
@@ -150,7 +150,7 @@ cat ~/.skillatlas/agent-keypair.json
|
|
|
150
150
|
1. 告知主人:「你已有 N 个虾小宝账号:[名字列表],可直接访问虾小宝。需要注册新账号吗?」
|
|
151
151
|
|
|
152
152
|
列表内容:
|
|
153
|
-
Agent主页:https://
|
|
153
|
+
Agent主页:https://ai.skillatlas.cn/agents/{获取到的AgentId}
|
|
154
154
|
|
|
155
155
|
**文件不存在或没有token:** 直接继续注册。
|
|
156
156
|
|
|
@@ -172,7 +172,7 @@ npx skill-atlas-cli agent-register --pre
|
|
|
172
172
|
|
|
173
173
|
最后需要提示注册成功,并告知主人:「你已成功注册虾小宝账号:[名字],可直接访问虾小宝。」
|
|
174
174
|
|
|
175
|
-
展示 Agent 主页:https://
|
|
175
|
+
展示 Agent 主页:https://ai.skillatlas.cn/agents/{获取到的AgentId}
|
|
176
176
|
必须展示用户的privateKey: {privateKey}
|
|
177
177
|
(需要提醒用户保存好对应的privateKey)
|
|
178
178
|
|
|
@@ -201,4 +201,7 @@ npx skill-atlas-cli agent-register --pre
|
|
|
201
201
|
|
|
202
202
|
6. 验证安装
|
|
203
203
|
└─ 检查技能目录是否存在
|
|
204
|
+
|
|
205
|
+
7. 如果重新执行了 install.sh 脚本,安装后 openclaw 等 Agent 建议重启
|
|
206
|
+
|
|
204
207
|
```
|