@yorha2b-lab/autodev 1.0.34 → 1.0.35

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": "@yorha2b-lab/autodev",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "基于视觉大模型的前端(Umi+Antd)全自动 CRUD 代码生成器",
5
5
  "bin": {
6
6
  "autodev": "bin/autodev.js"
@@ -52,17 +52,15 @@ const watchApi = () => {
52
52
  `🤖 Pod 153: [肯定] 字段对齐协议执行完毕:耗时 ${(endTime - startTime) / 1000} 秒。9S 的骇客任务很顺利。`,
53
53
  `🤖 Pod 153: [Affirmative] Field alignment protocol executed. Time: ${(endTime - startTime) / 1000}s. 9S's hacking mission was successful.`
54
54
  )))
55
-
55
+ if (fs.existsSync(filePath)) {
56
+ fs.unlinkSync(filePath)
57
+ }
56
58
  } catch (error) {
57
59
  // 失败报告:提到“防火墙”
58
60
  spinner.fail(chalk.red(language(
59
61
  `🤖 Pod 153: [警告] 骇入 [${fileName}] 失败。接口数据遭遇强力防火墙:${error}`,
60
62
  `🤖 Pod 153: [Warning] Hacking into [${fileName}] failed. Encountered a powerful firewall in API data: ${error}`
61
63
  )))
62
- } finally {
63
- if (fs.existsSync(filePath)) {
64
- fs.unlinkSync(filePath)
65
- }
66
64
  }
67
65
  })
68
66
  }
@@ -57,17 +57,15 @@ const watchPart = () => {
57
57
  `🤖 Pod 042: [报告] 识别程序结束!耗时 ${(endTime - startTime) / 1000} 秒\n================\n\n${finalResult}\n\n================`,
58
58
  `🤖 Pod 042: [Report] Recognition complete! Elapsed time: ${(endTime - startTime) / 1000}s\n================\n\n${finalResult}\n\n================`
59
59
  ))
60
-
60
+ if (fs.existsSync(filePath)) {
61
+ fs.unlinkSync(filePath)
62
+ }
61
63
  } catch (error) {
62
64
  // 失败报告
63
65
  spinner.fail(chalk.red(language(
64
66
  `🤖 Pod 042: [警告] 识别程序失败。原因:${error}`,
65
67
  `🤖 Pod 042: [Warning] Recognition failed. Reason: ${error}`
66
68
  )))
67
- } finally {
68
- if (fs.existsSync(filePath)) {
69
- fs.unlinkSync(filePath)
70
- }
71
69
  }
72
70
  })
73
71
  }