@hupan56/wlkj 3.5.2 → 3.5.3
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
|
@@ -23,7 +23,10 @@ User input: $ARGUMENTS
|
|
|
23
23
|
|
|
24
24
|
## 流程
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
0. **先判类型**:
|
|
27
|
+
- **配置类**("改X超时/阈值/配置/限流/间隔"): 知识层无配置实体,get_impact 遍历不到配置点。**直接 `Grep "timeout|超时|threshold|cron|interval|expiry"` 精确搜代码**定位配置点(文件:行:当前值)。
|
|
28
|
+
- **业务类**(功能/逻辑/接口): 走步骤 1-2。
|
|
29
|
+
1. 调 get_impact 查影响面(upstream谁依赖我/downstream我依赖谁)⚠️ edges 稀疏时可能遍历不出,诚实说"图谱无边,建议人工追"
|
|
27
30
|
2. 调 context_pack 取上下文(代码+API+字段)
|
|
28
31
|
3. 输出:改动范围/影响面/风险/必跑测试/改前注意
|
|
29
32
|
|
|
@@ -42,10 +42,11 @@ User input: $ARGUMENTS
|
|
|
42
42
|
|
|
43
43
|
## 快速档(3步出PRD)
|
|
44
44
|
|
|
45
|
-
### Step 1:
|
|
45
|
+
### Step 1: 取上下文
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
**先判需求类型(决定取上下文方式)**:
|
|
48
|
+
- **配置类**("改X超时/阈值/配置/限流/间隔/频率/cron/过期"): 知识层无配置实体(只抽方法/类),context_pack 拿不到配置点。**先 `Grep "timeout|超时|threshold|cron|interval|expiry"` 精确搜代码**定位配置点(文件:行:当前值),再 context_pack 取业务上下文补充。
|
|
49
|
+
- **业务类**(功能/流程/字段): 调 context_pack:{keyword:"<核心词>",platform:"<app|web>"}。返回空补 search_code。
|
|
49
50
|
|
|
50
51
|
### Step 2: 写6章PRD
|
|
51
52
|
|
|
@@ -33,8 +33,9 @@ User input: $ARGUMENTS
|
|
|
33
33
|
- "改XX影响谁" → get_impact
|
|
34
34
|
- "XX字段/XX表结构" → search_field
|
|
35
35
|
- 模糊/概念问题 → semantic_search
|
|
36
|
+
- **"改XX超时/阈值/配置/限流/间隔/频率/cron/过期" → 配置类(知识层无配置实体!)**: 直接 `Grep "timeout|超时|threshold|cron|interval|expiry|限流|@Scheduled|@XxlJob"` 精确搜代码字面量,定位 **文件:行:当前值**。知识层只抽方法/类,配置在方法体/yml/注解里搜不到——必须 Grep,别调 search_code 拿方法名(对配置需求没用)。
|
|
36
37
|
|
|
37
|
-
**一次调1-2个工具就够,不要串行调5
|
|
38
|
+
**一次调1-2个工具就够,不要串行调5个。配置类必走 Grep。**
|
|
38
39
|
|
|
39
40
|
## 🚨 接地铁律
|
|
40
41
|
|