mdk-skills 2.4.13 → 2.4.14

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": "mdk-skills",
3
- "version": "2.4.13",
3
+ "version": "2.4.14",
4
4
  "description": "mdk-engineer - 沉稳靠谱的前端开发助手 Claude Skills 配置包,一键注入 .claude/ 技能目录和 CLAUDE.md 人设配置",
5
5
  "author": "XiaoMa",
6
6
  "license": "MIT",
@@ -937,7 +937,8 @@ async function handleApi(req, res) {
937
937
  });
938
938
  return sendJSON(res, { results: parseSkillsFindOutput(stdout) });
939
939
  } catch (e) {
940
- if (e.killed) return sendJSON(res, { cancelled: true }, 499);
940
+ // 被新搜索取消的旧进程:返回 200 而非 499,避免浏览器标红
941
+ if (e.killed) return sendJSON(res, { results: [], cancelled: true });
941
942
  return sendJSON(res, { results: [] });
942
943
  }
943
944
  }