opencode-empirical-plan 0.3.4 → 0.3.5
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 +1 -1
- package/src/hooks/skill-reminder.ts +17 -3
package/package.json
CHANGED
|
@@ -14,8 +14,22 @@ if (!(globalThis as Record<symbol, unknown>)[KEY]) {
|
|
|
14
14
|
|
|
15
15
|
const store = (globalThis as Record<symbol, unknown>)[KEY] as SkillReminderStore;
|
|
16
16
|
|
|
17
|
-
const ENGLISH_KEYWORD_REGEX =
|
|
18
|
-
|
|
17
|
+
const ENGLISH_KEYWORD_REGEX =
|
|
18
|
+
/\b(plan|planning|roadmap|strategy|milestone|timeline|breakdown|research|investigate|proposal)\b/i;
|
|
19
|
+
const CHINESE_KEYWORDS = [
|
|
20
|
+
// 原有
|
|
21
|
+
"计划", "规划", "制定计划", "做计划",
|
|
22
|
+
// 方案类
|
|
23
|
+
"方案", "出方案", "测试方案", "设计方案", "技术方案", "实施方案",
|
|
24
|
+
// 研究调研类
|
|
25
|
+
"研究", "调研", "做研究", "做调研", "调查", "摸底",
|
|
26
|
+
// 拆解分析类
|
|
27
|
+
"拆解", "分步", "分解",
|
|
28
|
+
// 策略路线类
|
|
29
|
+
"策略", "路线图",
|
|
30
|
+
// 排期时间线类
|
|
31
|
+
"排期", "时间表", "里程碑",
|
|
32
|
+
];
|
|
19
33
|
const MAX_DEDUP_ENTRIES = 200;
|
|
20
34
|
|
|
21
35
|
const PLUGIN_VARIANT = "empirical-plan-reminder";
|
|
@@ -23,7 +37,7 @@ const REMINDER_PREFIX = "## [Empirical Plan Reminder]";
|
|
|
23
37
|
|
|
24
38
|
const REMINDER_TEXT = `## [Empirical Plan Reminder]
|
|
25
39
|
|
|
26
|
-
检测到规划类关键词(plan / 计划 / 规划)。
|
|
40
|
+
检测到规划类关键词(plan / 方案 / 研究 / 调研 / 拆解 / 策略 / 排期 / 计划 / 规划)。
|
|
27
41
|
|
|
28
42
|
**在回答前,请先执行:**
|
|
29
43
|
\`\`\`
|