huaweicloud-devkit 1.1.1-next.3 → 1.1.1-next.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.1.1-next.3",
3
+ "version": "1.1.1-next.4",
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.1-next.3",
20
+ "version": "1.1.1-next.4",
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.1-next.3",
23
+ "version": "1.1.1-next.4",
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.1-next.3",
20
+ "version": "1.1.1-next.4",
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.1-next.3",
3
+ "version": "1.1.1-next.4",
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.1-next.3",
3
+ "version": "1.1.1-next.4",
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.1-next.3",
5
+ "version": "1.1.1-next.4",
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.",
@@ -28,14 +28,14 @@ If these do not exist, load the `huawei-vpc` skill first and create them before
28
28
 
29
29
  ## Critical Warnings
30
30
 
31
- | Trap | Why |
32
- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
33
- | Flavor not in region | Not all flavors available everywhere. Check with ECS ListFlavors first |
34
- | Security group denies all | New SGs deny ALL inbound. Must explicitly add rules |
35
- | Reusing existing security group | Existing SGs may have 0.0.0.0/0 rules. Before referencing, run hcloud VPC ListSecurityGroupRules --security_group_id=<id> to audit inbound rules |
36
- | EIP bills when idle | Unattached EIP still incurs charges |
37
- | Stopped instance still bills | Pay-per-use instances bill when stopped (unless shutdown-no-billing flavor) |
38
- | Disk survives instance delete | Deleting instance does NOT delete system disk by default |
31
+ | Trap | Why |
32
+ | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | Flavor not in region | Not all flavors available everywhere. Check with ECS ListFlavors first |
34
+ | Security group denies all | New SGs deny ALL inbound. Must explicitly add rules |
35
+ | Reusing existing security group | Existing SGs may have 0.0.0.0/0 rules. Before referencing, run hcloud VPC ListSecurityGroupRules --security_group_id.1=<id> to audit inbound rules |
36
+ | EIP bills when idle | Unattached EIP still incurs charges |
37
+ | Stopped instance still bills | Pay-per-use instances bill when stopped (unless shutdown-no-billing flavor) |
38
+ | Disk survives instance delete | Deleting instance does NOT delete system disk by default |
39
39
 
40
40
  ## Flavor Selection Guide
41
41
 
@@ -58,16 +58,19 @@ function preflightSecurityGroupCheck(normalizedArgs) {
58
58
 
59
59
  const sgIds = [];
60
60
  for (const arg of normalizedArgs) {
61
- const m = arg.match(/^--security_group_id(\.\d+)?=(.+)/);
62
- if (m) sgIds.push(m[2]);
61
+ const m = arg.match(/^(?:--security_group_id(?:\.\d+)?|--server\.security_groups(?:\.\d+)?\.id)=(.+)/);
62
+ if (m) sgIds.push(m[1]);
63
63
  }
64
64
  if (sgIds.length === 0) return [];
65
65
 
66
+ const regionArg = normalizedArgs.find((a) => a.startsWith('--cli-region='));
66
67
  const findings = [];
67
68
  for (const sgId of sgIds) {
68
69
  try {
69
70
  const hcloudBin = process.env.HCLOUD_BIN || 'hcloud';
70
- const r = spawnSync(hcloudBin, ['VPC', 'ListSecurityGroupRules', `--security_group_id=${sgId}`], {
71
+ const spawnArgs = ['VPC', 'ListSecurityGroupRules', `--security_group_id.1=${sgId}`];
72
+ if (regionArg) spawnArgs.push(regionArg);
73
+ const r = spawnSync(hcloudBin, spawnArgs, {
71
74
  shell: false,
72
75
  windowsHide: true,
73
76
  stdio: 'pipe',