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
+9
View File
@@ -6,6 +6,7 @@ import {
CHAT_SKILL_DEFINITIONS,
filterChatSkills,
isExcelAnalysisIntent,
isPageDataDevIntent,
isPageDataIntent,
isPageGenerationIntent,
} from './chat-skills.mjs';
@@ -168,3 +169,11 @@ test('buildAutoChatSkillPrefix enables publish for implicit page requests', () =
assert.match(prefix, /static-page-publish/);
assert.match(prefix, /禁止询问是否还要发布/);
});
test('isPageDataDevIntent matches repair phrases but not new survey creation', () => {
assert.equal(isPageDataDevIntent('修复问卷 insert 403 columns_not_allowed'), true);
assert.equal(isPageDataDevIntent('page-data-dev 修 policy 白名单'), true);
assert.equal(isPageDataDevIntent('帮我做一个报名问卷'), false);
assert.equal(isPageDataIntent('帮我做一个报名问卷'), true);
assert.equal(isPageDataIntent('修复问卷 insert 403 columns_not_allowed'), false);
});