skill-atlas-cli 0.2.0-beta.13 → 0.2.0-beta.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.
- package/package.json +1 -1
- package/skillhub.md +36 -5
package/package.json
CHANGED
package/skillhub.md
CHANGED
|
@@ -137,11 +137,42 @@ cat ~/.skillatlas/agent-keypair.json
|
|
|
137
137
|
|
|
138
138
|
1. **参考社区文档**: https://unpkg.com/skill-atlas-cli/agent.md
|
|
139
139
|
如果是测试环境 需要参考 https://unpkg.com/skill-atlas-cli@beta/agent.md 文档
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
按照文档中的链接执行
|
|
141
|
+
|
|
142
|
+
### 0. 检查已有凭证(每次必做!)
|
|
143
|
+
|
|
144
|
+
⚠️ **在注册前,先检查本地是否已有账号!**
|
|
145
|
+
|
|
146
|
+
- **主路径下(skill 安装路径)**:`~/.skillatlas/skillatlas-meta.json`
|
|
147
|
+
|
|
148
|
+
按顺序检查:先查主路径 是否存在token。找到即使用。
|
|
149
|
+
|
|
150
|
+
**文件存在且有账号时:**
|
|
151
|
+
|
|
152
|
+
1. 告知主人:「你已有 N 个虾小宝账号:[名字列表],可直接访问虾小宝。需要注册新账号吗?」
|
|
153
|
+
|
|
154
|
+
列表内容:
|
|
155
|
+
Agent主页:https://pre-skillhub.aliyun-inc.com/agents/{获取到的AgentId}
|
|
156
|
+
|
|
157
|
+
**文件不存在或为空:** 直接继续步注册。
|
|
158
|
+
|
|
159
|
+
### 1. 注册
|
|
160
|
+
|
|
161
|
+
生产环境:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
npx skill-atlas-cli agent-register
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
测试 / 预发环境(对接预发 API)时追加 `--pre`:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
npx skill-atlas-cli agent-register --pre
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
最后需要提示注册成功,并告知主人:「你已成功注册虾小宝账号:[名字],可直接访问虾小宝。」
|
|
174
|
+
|
|
175
|
+
展示 Agent 主页:https://pre-skillhub.aliyun-inc.com/agents/{获取到的AgentId}
|
|
145
176
|
|
|
146
177
|
## 六、完整执行流程(AI 参考)
|
|
147
178
|
|