skill-atlas-cli 0.2.0 → 0.2.1
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 +2 -2
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
|
@@ -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
|
|