huaweicloud-devkit 1.1.0-next.20 → 1.1.0-next.21

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Discussions](https://img.shields.io/badge/Discussions-Join%20the%20discussion-blue)](https://github.com/huaweicloud/huaweicloud-devkit/discussions)
4
4
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
5
5
  [![CI](https://github.com/huaweicloud/huaweicloud-devkit/actions/workflows/ci.yml/badge.svg)](https://github.com/huaweicloud/huaweicloud-devkit/actions/workflows/ci.yml)
6
+ [![Beta](https://img.shields.io/badge/beta-v1.1-orange)](https://github.com/huaweicloud/huaweicloud-devkit)
6
7
 
7
8
  **[中文](README.zh-CN.md) | English**
8
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.1.0-next.20",
3
+ "version": "1.1.0-next.21",
4
4
  "description": "Agent toolkit that helps coding agents use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities safely and accurately.",
5
5
  "type": "module",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  "mcpServers": "./.mcp.json",
18
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
19
19
  "skills": "./skills/",
20
- "version": "1.1.0-next.20",
20
+ "version": "1.1.0-next.21",
21
21
  "author": {
22
22
  "name": "HuaweiCloud Mate",
23
23
  "url": "https://github.com/huaweicloud"
@@ -20,7 +20,7 @@
20
20
  "mcpServers": "./.mcp.json",
21
21
  "description": "Agent toolkit that helps coding agents use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities safely and accurately.",
22
22
  "skills": "./skills/",
23
- "version": "1.1.0-next.20",
23
+ "version": "1.1.0-next.21",
24
24
  "author": {
25
25
  "name": "HuaweiCloud Mate",
26
26
  "url": "https://github.com/huaweicloud"
@@ -17,7 +17,7 @@
17
17
  "mcpServers": "./.mcp.json",
18
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
19
19
  "skills": "./skills/",
20
- "version": "1.1.0-next.20",
20
+ "version": "1.1.0-next.21",
21
21
  "author": {
22
22
  "name": "HuaweiCloud Mate",
23
23
  "url": "https://github.com/huaweicloud"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.1.0-next.20",
3
+ "version": "1.1.0-next.21",
4
4
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
5
5
  "author": {
6
6
  "name": "HuaweiCloud Mate",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.1.0-next.20",
3
+ "version": "1.1.0-next.21",
4
4
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
5
5
  "author": {
6
6
  "name": "HuaweiCloud Mate",
@@ -2,7 +2,7 @@
2
2
  "name": "huaweicloud-devkit",
3
3
  "id": "huaweicloud-devkit",
4
4
  "displayName": "HuaweiCloud DevKit",
5
- "version": "1.1.0-next.20",
5
+ "version": "1.1.0-next.21",
6
6
  "family": "bundle-plugin",
7
7
  "bundleFormat": "codex",
8
8
  "description": "Guide coding agents to use Huawei Cloud safely — KooCLI, APIs, SDKs, 28 MCP tools, skills, and safety guardrails.",
@@ -940,24 +940,33 @@ if [ -f "${outputPath}/qr.png" ]; then
940
940
  echo "qr_code:PASS"
941
941
  PASS=$((PASS+1))
942
942
  else
943
- ${
944
- isCrossPlatform
945
- ? `
946
- if [ -n "$TUNNEL_URL" ]; then
947
- curl -s "https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1]))" "$TUNNEL_URL" 2>/dev/null)" -o "${outputPath}/qr.png" 2>/dev/null
948
- chmod o+r "${outputPath}/qr.png" 2>/dev/null || true
949
- if [ -f "${outputPath}/qr.png" ] && [ -s "${outputPath}/qr.png" ]; then
950
- echo "qr_code:PASS (auto-generated)"
951
- PASS=$((PASS+1))
943
+ # Auto-detect cross-platform from project files (more reliable than frameworkType param)
944
+ PROJ_DIR="/workspace/${project}"
945
+ IS_CROSS=0
946
+ if [ -f "$PROJ_DIR/manifest.json" ] || grep -qE '"@tarojs/taro"|"@dcloudio/uni-app"' "$PROJ_DIR/package.json" 2>/dev/null; then
947
+ IS_CROSS=1
948
+ fi
949
+ if [ $IS_CROSS -eq 0 ] && ( [ -f "$PROJ_DIR/app.config.ts" ] || [ -f "$PROJ_DIR/app.config.js" ] ) && grep -qE "pages|tabBar" "$PROJ_DIR/app.config."* 2>/dev/null; then
950
+ IS_CROSS=1
951
+ fi
952
+
953
+ if [ $IS_CROSS -eq 1 ]; then
954
+ if [ -n "$TUNNEL_URL" ]; then
955
+ curl -s "https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=$(python3 -c "import urllib.parse, sys; print(urllib.parse.quote(sys.argv[1]))" "$TUNNEL_URL" 2>/dev/null)" -o "${outputPath}/qr.png" 2>/dev/null
956
+ chmod o+r "${outputPath}/qr.png" 2>/dev/null || true
957
+ if [ -f "${outputPath}/qr.png" ] && [ -s "${outputPath}/qr.png" ]; then
958
+ echo "qr_code:PASS (auto-generated)"
959
+ PASS=$((PASS+1))
960
+ else
961
+ echo "qr_code:FAIL (QR generation failed)"
962
+ fi
952
963
  else
953
- echo "qr_code:FAIL (QR generation failed)"
964
+ echo "qr_code:FAIL (no tunnel URL for QR generation)"
954
965
  fi
955
966
  else
956
- echo "qr_code:FAIL (no tunnel URL for QR generation)"
967
+ echo "qr_code:SKIP (not a cross-platform project)"
968
+ TOTAL=$((TOTAL-1))
957
969
  fi
958
- `
959
- : `echo "qr_code:FAIL (no QR code — generate one for cross-platform H5 apps)"`
960
- }
961
970
  fi
962
971
  `}`,
963
972
  `echo "SCORE:\${PASS}/\${TOTAL}"`,