yg-team-cli 2.6.0 → 2.6.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.
package/README.md CHANGED
@@ -79,6 +79,11 @@
79
79
  - **优化**: 全面统一了各命令中状态图标(✓, ⟳, ◉, ○)的定义,提供一致的视觉交互体验
80
80
  - **增强**: `sync-memory` 现在能更准确地根据任务勾选情况自动更新 `AI_MEMORY.md` 中的完成日期及状态列
81
81
 
82
+ **v2.6.2** - 增强 Lint 命令稳定性
83
+ - **改进**: `lint` 命令改为非阻塞式运行 TypeScript 类型检查。当检测到复杂的环境配置或老旧依赖导致的 `tsc` 报错时,系统将输出警告而非判定整体执行失败
84
+ - **新增**: 为 `lint` 命令增加 `--no-type-check` 选项,允许完全跳过类型检查环节,专注于代码规范校验
85
+ - **修复**: 统一了全系统的 Lint 扫描范围判定,减少了由于目录嵌套导致的误报现象
86
+
82
87
  **v2.4.10** - 修复 Claude 返回权限确认而非实际内容问题
83
88
  - **修复**: 添加 `--dangerously-skip-permissions` 参数跳过权限确认
84
89
  - **问题**: v2.4.9 中 Claude CLI 在新目录首次运行时返回权限确认提示而非 spec 内容
package/dist/cli.js CHANGED
@@ -4477,7 +4477,7 @@ var init_lint = __esm({
4477
4477
  init_esm_shims();
4478
4478
  init_utils();
4479
4479
  init_logger();
4480
- lintCommand = new Command7("lint").option("--fix", "\u81EA\u52A8\u4FEE\u590D\u95EE\u9898").description("\u4EE3\u7801\u8D28\u91CF\u68C0\u67E5 (\u524D\u7AEF + \u540E\u7AEF)").action(async (options) => {
4480
+ lintCommand = new Command7("lint").option("--fix", "\u81EA\u52A8\u4FEE\u590D\u95EE\u9898").option("--no-type-check", "\u8DF3\u8FC7 TypeScript \u7C7B\u578B\u68C0\u67E5").description("\u4EE3\u7801\u8D28\u91CF\u68C0\u67E5 (\u524D\u7AEF + \u540E\u7AEF)").action(async (options) => {
4481
4481
  try {
4482
4482
  logger.header("\u4EE3\u7801\u8D28\u91CF\u68C0\u67E5");
4483
4483
  logger.newLine();
@@ -4507,15 +4507,26 @@ var init_lint = __esm({
4507
4507
  stdio: "inherit"
4508
4508
  });
4509
4509
  }
4510
- await execa3("npx", ["tsc", "--noEmit"], {
4511
- cwd: "frontend",
4512
- stdio: "pipe"
4513
- });
4510
+ if (options.typeCheck !== false) {
4511
+ try {
4512
+ logger.step("\u6B63\u5728\u8FDB\u884C TypeScript \u7C7B\u578B\u68C0\u67E5...");
4513
+ await execa3("npx", ["tsc", "--noEmit"], {
4514
+ cwd: "frontend",
4515
+ stdio: "pipe"
4516
+ });
4517
+ } catch (tscError) {
4518
+ logger.warn("TypeScript \u7C7B\u578B\u68C0\u67E5\u53D1\u73B0\u95EE\u9898\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801\u7C7B\u578B\u5B89\u5168\u3002");
4519
+ if (process.env.DEBUG) {
4520
+ console.log(tscError.stdout);
4521
+ }
4522
+ results.frontend.errors.push("TypeScript \u7C7B\u578B\u68C0\u67E5\u5931\u8D25 (\u5DF2\u8DF3\u8FC7\u963B\u585E)");
4523
+ }
4524
+ }
4514
4525
  results.frontend.passed = true;
4515
4526
  logger.success("\u524D\u7AEF\u4EE3\u7801\u68C0\u67E5\u901A\u8FC7");
4516
4527
  } catch (error) {
4517
4528
  results.frontend.errors.push(error.message);
4518
- logger.error("\u524D\u7AEF\u4EE3\u7801\u68C0\u67E5\u5931\u8D25");
4529
+ logger.error(`\u524D\u7AEF\u4EE3\u7801\u68C0\u67E5\u5931\u8D25: ${error.message}`);
4519
4530
  }
4520
4531
  } else {
4521
4532
  logger.info("\u672A\u627E\u5230\u524D\u7AEF\u9879\u76EE (frontend/package.json)");
@@ -4654,9 +4665,9 @@ async function displayFeatureInventory() {
4654
4665
  ]);
4655
4666
  logger.table(["\u529F\u80FD", "\u72B6\u6001", "\u8FDB\u5EA6"], tableData);
4656
4667
  logger.newLine();
4657
- const completed = inventory.filter((i) => i.status === "\u5DF2\u5B8C\u6210").length;
4658
- const inProgress = inventory.filter((i) => i.status === "\u8FDB\u884C\u4E2D").length;
4659
- const pending = inventory.filter((i) => i.status === "\u672A\u5F00\u59CB").length;
4668
+ const completed = inventory.filter((i) => i.status.includes("\u5DF2\u5B8C\u6210")).length;
4669
+ const inProgress = inventory.filter((i) => i.status.includes("\u8FDB\u884C\u4E2D")).length;
4670
+ const pending = inventory.filter((i) => i.status.includes("\u672A\u5F00\u59CB")).length;
4660
4671
  logger.info(`\u603B\u8BA1: ${inventory.length} | \u5DF2\u5B8C\u6210: ${completed} | \u8FDB\u884C\u4E2D: ${inProgress} | \u672A\u5F00\u59CB: ${pending}`);
4661
4672
  logger.newLine();
4662
4673
  }