feat: add page_data_dev code-run path and adm policy design docs
Introduce Page Data dev repair intent routing, page_data_dev taskType autodetect, and help-code02 memindadm runtime policy specification. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -71,9 +71,27 @@ function isInteractivePageDataIntent(text) {
|
||||
return INTERACTIVE_PAGE_DATA_SURFACE_PATTERN.test(text) || featureCount >= 2;
|
||||
}
|
||||
|
||||
const PAGE_DATA_DEV_INTENT_PATTERNS = [
|
||||
/columns_not_allowed/i,
|
||||
/\bpage[\s-]?data[\s-]?dev\b/i,
|
||||
/(?:insert|提交|写入).{0,16}(?:失败|403|报错|error)/iu,
|
||||
/(?:修复|修|排查|debug|fix).{0,24}(?:问卷|page[\s-]?data|数据提交|插入|admin|后台|policy|绑定|bind)/iu,
|
||||
/(?:问卷|page[\s-]?data|数据页|表单页).{0,24}(?:bug|坏了|不通|失败|有问题)/iu,
|
||||
/(?:测试|verify).{0,16}(?:没过|失败|不通过)/iu,
|
||||
/(?:repair|修复).{0,16}(?:bind|绑定|policy|策略)/iu,
|
||||
];
|
||||
|
||||
/** Page Data 开发修复(Aider 兜底):修 bug / 测回归,不是新建问卷。 */
|
||||
export function isPageDataDevIntent(text) {
|
||||
const normalized = String(text ?? '').trim();
|
||||
if (!normalized) return false;
|
||||
return PAGE_DATA_DEV_INTENT_PATTERNS.some((pattern) => pattern.test(normalized));
|
||||
}
|
||||
|
||||
export function isPageDataIntent(text) {
|
||||
const normalized = String(text ?? '').trim();
|
||||
if (!normalized) return false;
|
||||
if (isPageDataDevIntent(normalized)) return false;
|
||||
return PAGE_DATA_INTENT_PATTERNS.some((pattern) => pattern.test(normalized))
|
||||
|| isInteractivePageDataIntent(normalized);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user