@clawos-dev/clawd 0.2.212 → 0.2.213-beta.424.80e84de
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.
|
@@ -44,7 +44,7 @@ set -a; . "$KIT_DIR/.secrets/aliyun.env"; set +a
|
|
|
44
44
|
# aliyun.env.local: 本机个人 override(永远不被 OTA 覆盖,见 refreshDeployKit)。有就后 source 覆盖 env。
|
|
45
45
|
[ -f "$KIT_DIR/.secrets/aliyun.env.local" ] && { set -a; . "$KIT_DIR/.secrets/aliyun.env.local"; set +a; }
|
|
46
46
|
export ALIBABA_CLOUD_REGION_ID="${REGION:?config.env 缺 REGION}"
|
|
47
|
-
_ident="$(aliyun sts GetCallerIdentity 2>&1)" || { echo "❌ aliyun sts GetCallerIdentity 失败(检查 .secrets/aliyun.env 凭证):" >&2; echo "$_ident" >&2; exit 1; }
|
|
47
|
+
_ident="$(aliyun --mode AK sts GetCallerIdentity 2>&1)" || { echo "❌ aliyun sts GetCallerIdentity 失败(检查 .secrets/aliyun.env 凭证):" >&2; echo "$_ident" >&2; exit 1; }
|
|
48
48
|
ACC="$(printf '%s' "$_ident" | python3 -c 'import sys,json;print(json.load(sys.stdin)["AccountId"])')" || { echo "❌ 解析 AccountId 失败,aliyun 输出非 JSON:" >&2; echo "$_ident" >&2; exit 1; }
|
|
49
49
|
mkdir -p ~/.s
|
|
50
50
|
cat > ~/.s/access.yaml <<EOF
|
|
@@ -99,7 +99,7 @@ echo "==> s deploy ($DEPLOY_NAME)"
|
|
|
99
99
|
echo "::stage::verify"
|
|
100
100
|
# 精确匹配 s.yaml.tmpl 里写死的 domainName 模式: <DEPLOY_NAME>.app.clawos.chat
|
|
101
101
|
EXPECTED_DOM="${DEPLOY_NAME}.app.clawos.chat"
|
|
102
|
-
DOM="$(aliyun fc GET /2023-03-30/custom-domains --region "$REGION" 2>/dev/null | python3 -c "
|
|
102
|
+
DOM="$(aliyun --mode AK fc GET /2023-03-30/custom-domains --region "$REGION" 2>/dev/null | python3 -c "
|
|
103
103
|
import sys,json
|
|
104
104
|
d=json.load(sys.stdin)
|
|
105
105
|
target='$EXPECTED_DOM'
|
package/package.json
CHANGED