openyida 2026.4.2-beta.0 → 2026.4.2-beta.2

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.
@@ -426,7 +426,12 @@ class ProjectInitChecker {
426
426
  }
427
427
 
428
428
  async check() {
429
- const projectDir = path.join(this.projectRoot, 'project');
429
+ // projectRoot 本身就是 project 目录(AI 工具将工作区根识别为 project/ 子目录时),
430
+ // 则直接检测 projectRoot/config.json,避免拼出 project/project 的错误路径。
431
+ const rootBasename = path.basename(this.projectRoot);
432
+ const projectDir = rootBasename === 'project'
433
+ ? this.projectRoot
434
+ : path.join(this.projectRoot, 'project');
430
435
  const configPath = path.join(projectDir, 'config.json');
431
436
  const passed = fs.existsSync(projectDir) && fs.existsSync(configPath);
432
437
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "2026.04.02-beta.0",
3
+ "version": "2026.04.02-beta.2",
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.0
7
+ version: 2026.04.02-beta.2
8
8
  ---
9
9
 
10
10
  # 宜搭 AI 应用开发指南