Isolate Cursor executor to admin-configured whitelist channel for H5 and WeChat.
Memind CI / Test, build, and release guards (push) Failing after 4m22s

Non-allowlisted users stay on the existing Goose/DeepSeek path; only memindadm whitelist users enter the TKMind Cursor channel on selected intents and channels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-28 15:27:10 +08:00
parent 02fdcdedc5
commit 416bf7a29a
13 changed files with 339 additions and 42 deletions
+2 -1
View File
@@ -27,8 +27,9 @@ export function resolvePreferredCodeExecutor(env = process.env) {
}
export function cursorPageTasksDefaultEnabled(env = process.env) {
// 已废弃:页面任务是否走 Cursor 由 memindadm「智趣体验通道」白名单控制,不再靠此 env 全员开启。
if (!cursorExecutorEnabled(env)) return false;
return envFlag(env.MEMIND_CURSOR_PAGE_TASKS_DEFAULT, true);
return envFlag(env.MEMIND_CURSOR_PAGE_TASKS_DEFAULT, false);
}
/** @deprecated 普通 Agent 编排不再默认走 Cursor;仅页面/问卷/Excel 等代码任务使用 enforcePageGenerationCursorRuntime */