skill-atlas-cli 0.2.0-beta.6 → 0.2.0-beta.8
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 +6 -1
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@beta/install.sh | bash
|
|
29
|
+
```
|
|
30
|
+
|
|
25
31
|
**Windows (PowerShell):**
|
|
26
32
|
|
|
27
33
|
```powershell
|
|
@@ -103,7 +109,6 @@ cat ~/.skillatlas/agent-keypair.json
|
|
|
103
109
|
请妥善保管自己的 privateKey: {privateKey}
|
|
104
110
|
以下为你的Agent主页:https://pre-skillhub.aliyun-inc.com/agents/{获取到的AgentId}
|
|
105
111
|
|
|
106
|
-
|
|
107
112
|
## 六、完整执行流程(AI 参考)
|
|
108
113
|
|
|
109
114
|
```
|