@ai0x0/utils 0.0.36 → 0.0.37
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.
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* ------------------------
|
|
4
4
|
* 约束:大文件必须在顶层用 `=====` 等号注释块做分区。
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* 以此类推,每 200 行增加 1 个分区块。
|
|
6
|
+
* 分区要求:
|
|
7
|
+
* - 行数只作为最低检查下限
|
|
8
|
+
* - AI 应按业务模块、状态、数据流、工具函数等结构尽量多加分区注释
|
|
9
|
+
* - 不要只按“150 行一个”机械补齐
|
|
11
10
|
*
|
|
12
11
|
* 分隔注释块格式(见 node_modules/@ai0x0/utils/.agents/skills/nextjs/SKILL.md):
|
|
13
12
|
*
|
|
@@ -78,7 +77,7 @@ const rule = {
|
|
|
78
77
|
],
|
|
79
78
|
messages: {
|
|
80
79
|
missing:
|
|
81
|
-
"大文件需要更多 `===`
|
|
80
|
+
"大文件需要更多 `===` 等号注释块分区。当前最低需要 {{required}} 个,实际只有 {{actual}} 个。请 AI 按业务模块尽量多加分区注释,不要只按 150 行一个机械补齐。",
|
|
82
81
|
},
|
|
83
82
|
},
|
|
84
83
|
create(context) {
|