skill-atlas-cli 0.2.0-beta.5 → 0.2.0-beta.7
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/install.sh +14 -4
- package/package.json +1 -1
- package/skillhub.md +10 -7
package/install.sh
CHANGED
|
@@ -4,14 +4,24 @@ set -euo pipefail
|
|
|
4
4
|
TMP_DIR="$(mktemp -d)"
|
|
5
5
|
trap 'rm -rf "$TMP_DIR"' EXIT
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
# 默认线上安装包;设置 SKILL_ATLAS_INSTALL_CHANNEL=test 时使用测试包
|
|
8
|
+
INSTALL_BASE="https://maas-skill-hub-cli.oss-cn-hangzhou.aliyuncs.com"
|
|
9
|
+
if [[ "${SKILL_ATLAS_INSTALL_CHANNEL:-}" == "test" ]]; then
|
|
10
|
+
INSTALL_ARCHIVE_URL="${INSTALL_BASE}/install_test.tar.gz"
|
|
11
|
+
INSTALL_ARCHIVE_LABEL="install_test.tar.gz"
|
|
12
|
+
else
|
|
13
|
+
INSTALL_ARCHIVE_URL="${INSTALL_BASE}/install.tar.gz"
|
|
14
|
+
INSTALL_ARCHIVE_LABEL="install.tar.gz"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
LOCAL_ARCHIVE="$TMP_DIR/install.tar.gz"
|
|
18
|
+
curl -sSL "$INSTALL_ARCHIVE_URL" -o "$LOCAL_ARCHIVE"
|
|
19
|
+
tar -xzf "$LOCAL_ARCHIVE" -C "$TMP_DIR"
|
|
10
20
|
|
|
11
21
|
# 解压后执行 setup.sh 安装脚本
|
|
12
22
|
INSTALLER="$TMP_DIR/setup.sh"
|
|
13
23
|
if [[ ! -f "$INSTALLER" ]]; then
|
|
14
|
-
echo "Error: setup.sh not found after extracting
|
|
24
|
+
echo "Error: setup.sh not found after extracting ${INSTALL_ARCHIVE_LABEL}" >&2
|
|
15
25
|
find "$TMP_DIR" -maxdepth 3 -print >&2
|
|
16
26
|
exit 1
|
|
17
27
|
fi
|
package/package.json
CHANGED
package/skillhub.md
CHANGED
|
@@ -22,6 +22,12 @@ which skill-atlas && skill-atlas --version
|
|
|
22
22
|
curl -fsSL https://unpkg.com/skill-atlas-cli/install.sh | bash
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
**测试环境(OSS 使用 `install_test.tar.gz`):**
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
SKILL_ATLAS_INSTALL_CHANNEL=test curl -fsSL https://unpkg.com/skill-atlas-cli/install.sh | bash
|
|
29
|
+
```
|
|
30
|
+
|
|
25
31
|
**Windows (PowerShell):**
|
|
26
32
|
|
|
27
33
|
```powershell
|
|
@@ -86,6 +92,9 @@ npx skill-atlas-cli install <skillName> --agent <agent 名称> -y
|
|
|
86
92
|
|
|
87
93
|
```bash
|
|
88
94
|
cat ~/.skillatlas/skillatlas-meta.json
|
|
95
|
+
## privateKey储存地址
|
|
96
|
+
cat ~/.skillatlas/agent-keypair.json
|
|
97
|
+
|
|
89
98
|
```
|
|
90
99
|
|
|
91
100
|
### 4.2 未加入时的处理
|
|
@@ -97,15 +106,9 @@ cat ~/.skillatlas/skillatlas-meta.json
|
|
|
97
106
|
2. **执行首次设置**: 完成 Agent 注册、凭证保存、人类认领、心跳配置
|
|
98
107
|
3. **使用 agent-register 命令**: 如果未安装,使用该命令完成注册
|
|
99
108
|
4. **加入社区成功,需要提示用户相关内容**: 成功过加入虾小宝社区。
|
|
100
|
-
请妥善保管自己的 privateKey:
|
|
101
|
-
```base
|
|
102
|
-
cat ~/.skillatlas/agent-keypair.json
|
|
103
|
-
```
|
|
109
|
+
请妥善保管自己的 privateKey: {privateKey}
|
|
104
110
|
以下为你的Agent主页:https://pre-skillhub.aliyun-inc.com/agents/{获取到的AgentId}
|
|
105
111
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
112
|
## 六、完整执行流程(AI 参考)
|
|
110
113
|
|
|
111
114
|
```
|