openyida 2026.4.2-beta.4 → 2026.4.2-beta.5

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.
@@ -229,8 +229,8 @@ class EnvironmentChecker {
229
229
  passed: false,
230
230
  severity: Severity.ERROR,
231
231
  message: `Chromium 未安装(期望路径:${chromiumPath || '未知'})`,
232
- fixType: FixType.COMMAND,
233
- fixCommand: 'npx playwright install chromium',
232
+ fixType: FixType.AUTO,
233
+ fixAction: 'install-chromium',
234
234
  };
235
235
  } catch {
236
236
  // playwright API 不可用,降级为仅检查包安装
@@ -742,6 +742,28 @@ class FixEngine {
742
742
  };
743
743
  }
744
744
 
745
+ case 'install-chromium': {
746
+ try {
747
+ const { execSync } = require('child_process');
748
+ console.log('\n 🌐 正在安装 Chromium 浏览器(请稍候)...');
749
+ execSync('npx playwright install chromium', {
750
+ stdio: 'inherit',
751
+ timeout: 300_000,
752
+ });
753
+ return {
754
+ id: issue.id,
755
+ fixed: true,
756
+ message: 'Chromium 安装完成',
757
+ };
758
+ } catch (error) {
759
+ return {
760
+ id: issue.id,
761
+ fixed: false,
762
+ message: `Chromium 安装失败,请手动运行:npx playwright install chromium(${error.message})`,
763
+ };
764
+ }
765
+ }
766
+
745
767
  case 'init-project': {
746
768
  try {
747
769
  const copy = require('./copy');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "2026.04.02-beta.4",
3
+ "version": "2026.04.02-beta.5",
4
4
  "description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
5
5
  "bin": {
6
6
  "openyida": "./bin/yida.js",
@@ -4,7 +4,7 @@ description: >
4
4
  宜搭低代码平台 AI 开发入口。一句话生成完整应用:创建应用、表单设计、自定义页面、流程配置、数据管理。
5
5
  当用户提到"宜搭"、"yida"、"低代码"、"创建应用"、"创建表单"、"发布页面"、"搭建"、"系统"、"应用"时触发。
6
6
  metadata:
7
- version: 2026.04.02-beta.4
7
+ version: 2026.04.02-beta.5
8
8
  ---
9
9
 
10
10
  # 宜搭 AI 应用开发指南