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
+3 -2
View File
@@ -63,7 +63,7 @@ import {
CHAT_IMAGE_UPLOAD_MAX_INPUT_BYTES,
} from '../utils/imageUpload';
import { buildAbsoluteAssetDownloadUrl } from '../utils/mindspaceCards';
import { resolveAgentRunOptions } from '../utils/agentRunMode';
import { resolveAgentRunOptions, resolvePageDataDevTaskType } from '../utils/agentRunMode';
import {
buildUserMessage,
normalizeConversationMessages,
@@ -1472,8 +1472,9 @@ export function useTKMindChat(
}
try {
const pageDataDevTaskType = resolvePageDataDevTaskType(trimmed);
const runOptions = resolveAgentRunOptions(trimmed, {
taskType: 'h5_chat_code_task',
taskType: pageDataDevTaskType ?? 'h5_chat_code_task',
userId: userRef.current?.id ?? null,
requestId,
mindspaceContext: options?.mindspaceContext ?? null,