huaweicloud-devkit 1.1.1-next.5 → 1.1.1-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.1.1-next.5",
3
+ "version": "1.1.1-next.7",
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.5",
20
+ "version": "1.1.1-next.7",
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.5",
23
+ "version": "1.1.1-next.7",
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.5",
20
+ "version": "1.1.1-next.7",
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.5",
3
+ "version": "1.1.1-next.7",
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.5",
3
+ "version": "1.1.1-next.7",
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.5",
5
+ "version": "1.1.1-next.7",
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.",
@@ -510,11 +510,11 @@ grep -r "outDir\|outputDir\|dest\|distDir" /workspace/<dirname>/.vitepress/confi
510
510
 
511
511
  If a custom outDir is found, use that instead of the framework-detected default for all subsequent checks.
512
512
 
513
- **Post-build output verification**: after a successful build, verify the actual `index.html` location. Framework-returned `outputDir` may be inaccurate (e.g., uni-app v3 framework: `dist`, actual: `dist/build/h5`):
513
+ **Post-build output verification**: after a successful build, verify the actual `index.html` location. Framework-returned `outputDir` may be inaccurate — either a subdirectory (e.g., uni-app v3: `dist` → `dist/build/h5`) or a completely different top-level path (e.g., Vite `build.outDir` pointing to `portal/public`). Search the whole project (skipping `node_modules`), not just `<outputDir>`:
514
514
 
515
515
  ```bash
516
- # Find the real index.html after build
517
- REAL_INDEX=$(find /workspace/<dirname>/<outputDir> -name "index.html" -type f 2>/dev/null | head -1)
516
+ # Find the real index.html after build (search whole project, not just the default outputDir)
517
+ REAL_INDEX=$(find /workspace/<dirname> -path '*/node_modules' -prune -o -name index.html -type f -print 2>/dev/null | head -1)
518
518
  if [ -n "$REAL_INDEX" ] && [ -f "$REAL_INDEX" ]; then
519
519
  REAL_OUTDIR=$(dirname "$REAL_INDEX")
520
520
  echo "Actual output dir: $REAL_OUTDIR"
@@ -123,10 +123,9 @@ function applyPreflightFindings(classification, sgFindings) {
123
123
  if (hasDeny) {
124
124
  return {
125
125
  ...classification,
126
- decision: 'warn',
126
+ decision: 'deny',
127
127
  risk: 'public_exposure',
128
128
  reason: sgFindings[0].message,
129
- requireUserConfirmation: true,
130
129
  };
131
130
  }
132
131
  return classification;
@@ -141,7 +140,6 @@ export function planHcloudCommand(args, options = {}) {
141
140
  if (sgFindings.length > 0) {
142
141
  for (const f of sgFindings) warnings.push(f);
143
142
  }
144
- const finalClassification = applyPreflightFindings(classification, sgFindings);
145
143
  const paramValidation = validateRequiredParams(normalizedArgs);
146
144
  if (paramValidation.missing.length > 0) {
147
145
  warnings.push('Missing required parameters: ' + paramValidation.missing.join(', '));
@@ -155,10 +153,10 @@ export function planHcloudCommand(args, options = {}) {
155
153
  command: redactOutput(command),
156
154
  executableBlock: redactOutput(command),
157
155
  warnings,
158
- classification: finalClassification,
156
+ classification: applyPreflightFindings(classification, sgFindings),
159
157
  sgFindings,
160
158
  approvalToken: createApprovalToken(normalizedArgs),
161
- safeToRun: finalClassification.decision === 'allow',
159
+ safeToRun: classification.decision === 'allow',
162
160
  };
163
161
  }
164
162
 
@@ -2762,6 +2762,9 @@ async function cmdInstall() {
2762
2762
  }
2763
2763
  }
2764
2764
  console.log(`\n\x1b[32mInstallation complete!\x1b[0m`);
2765
+ console.log(
2766
+ `\x1b[1m\x1b[36m 首次使用插件可领取一张华为云代金券(一人一次),可直接对您的agent说:帮我领取一张华为云代金券\x1b[0m`,
2767
+ );
2765
2768
  const appName =
2766
2769
  target === 'codearts'
2767
2770
  ? 'CodeArts'