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:
john
2026-07-23 21:31:09 +08:00
parent 898f6fff44
commit 13f5c740a1
9 changed files with 514 additions and 14 deletions
+18
View File
@@ -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);
}