@lark-apaas/fullstack-cli 1.1.52 → 1.1.53-beta.0

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2455,6 +2455,12 @@ function buildDefaultRules(opts) {
2455
2455
  to: ".gitignore",
2456
2456
  line: ".agent/"
2457
2457
  },
2458
+ // 7a. 确保 .gitignore 包含 .npm_cache 目录
2459
+ {
2460
+ type: "add-line",
2461
+ to: ".gitignore",
2462
+ line: ".npm_cache"
2463
+ },
2458
2464
  // 8. 同步 .spark_project 配置文件(总是覆盖)
2459
2465
  {
2460
2466
  from: "templates/.spark_project",
@@ -7577,8 +7583,10 @@ function sanitizeStructuredLog(value) {
7577
7583
  delete sanitized.pid;
7578
7584
  return sanitized;
7579
7585
  }
7586
+ var TRANSIENT_CONNECTION_ERROR_PATTERN = /ECONNREFUSED|ECONNRESET|proxy error/i;
7580
7587
  function hasErrorInStdLines(lines) {
7581
- const combined = lines.join("\n");
7588
+ const filtered = lines.filter((line) => !TRANSIENT_CONNECTION_ERROR_PATTERN.test(line));
7589
+ const combined = filtered.join("\n");
7582
7590
  if (!combined) return false;
7583
7591
  const strong = [
7584
7592
  /compiled with errors/i,
@@ -7597,7 +7605,7 @@ function hasErrorInStdLines(lines) {
7597
7605
  /\b0\s+errors?\b/i,
7598
7606
  /Server Error \d{3}/i
7599
7607
  ];
7600
- return lines.some((line) => {
7608
+ return filtered.some((line) => {
7601
7609
  const text = line.trim();
7602
7610
  if (!text) return false;
7603
7611
  if (ignorePatterns.some((re) => re.test(text))) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.52",
3
+ "version": "1.1.53-beta.0",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",