@guanlin4924/devflow-pi 0.1.28 → 0.1.29
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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -288,7 +288,7 @@ export type NaturalControlAction = "approve" | "reject";
|
|
|
288
288
|
|
|
289
289
|
export function classifyNaturalControlAction(input: string): NaturalControlAction | null {
|
|
290
290
|
const text = input.trim();
|
|
291
|
-
if (/^(?:批准|确认|同意|通过)(?:\s*(?:(?:full|完整|全量)?\s
|
|
291
|
+
if (/^(?:批准|确认|同意|通过)(?:\s*(?:(?:full|完整|全量)?\s*初始化|执行|完成|继续|推进|当前(?:方案|步骤|计划)))?[。!!]?$/i.test(text)) return "approve";
|
|
292
292
|
if (/^(?:拒绝|不同意|暂不|需要修改|退回)(?:执行|继续|推进|当前(?:方案|步骤|计划))?[。!!]?$/.test(text)) return "reject";
|
|
293
293
|
return null;
|
|
294
294
|
}
|
package/src/constants.ts
CHANGED