@routerhub/agent-rules 1.0.23 → 1.0.25

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/AGENTS.base.md CHANGED
@@ -70,6 +70,11 @@
70
70
 
71
71
  - 如 UI 自动化测试端口被占用,需自动切换到未被占用的新端口,保证测试流程不中断。
72
72
 
73
+ ## 错误处理与日志
74
+
75
+ - 统一使用 `console.error` 记录错误日志,禁止使用 `console.log` 输出错误信息。
76
+ - 错误信息必须包含上下文(如函数名、模块名),便于快速定位问题。
77
+
73
78
  ## 优先级声明
74
79
 
75
80
  - 若规则之间有冲突,按以下优先级执行:
@@ -49,3 +49,4 @@
49
49
  - PR 必须通过 ESLint 检查
50
50
  - PR 必须通过单元测试
51
51
  - PR 必须至少有 1 名代码审批者同意
52
+ <!-- 测试 -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {