feat(cursor): wire executor through portal, admin, and wechat routes

Register cursor in LLM executor bindings, route page/code tasks through
cursor runtime selection, and bootstrap wechat cursor policy services.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-27 09:33:47 +08:00
parent a29e1ec5c8
commit ad6dcc283f
17 changed files with 343 additions and 16 deletions
+3
View File
@@ -34,6 +34,7 @@ import { createOrchestratorObservabilityService } from './services/orchestrator/
import { createSkillRuntimeAdminConfigService } from './skill-runtime-admin-config.mjs';
import { createSystemDisclosurePolicyService } from './system-disclosure-policy.mjs';
import { createAgentCodeRunAdminConfigService } from './agent-code-run-admin-config.mjs';
import { createWechatCursorExecutorAdminConfigService } from './wechat-cursor-executor-admin-config.mjs';
import { createMindSearchConfigService } from './mindsearch-config.mjs';
import { createWechatScheduleLlmConfigService } from './wechat-schedule-llm-config.mjs';
import { createWechatIntentRouterConfigService } from './wechat-intent-router-config.mjs';
@@ -150,6 +151,7 @@ export async function createAdminServices(env = {}) {
});
await systemDisclosurePolicyService.initialize();
const agentCodeRunPolicyService = createAgentCodeRunAdminConfigService(pool, { env: process.env });
const wechatCursorExecutorPolicyService = createWechatCursorExecutorAdminConfigService(pool);
const wechatScheduleLlmConfigService = createWechatScheduleLlmConfigService(pool);
const wechatIntentRouterConfigService = createWechatIntentRouterConfigService(pool);
const adminSystemTestService = createAdminSystemTestService({
@@ -198,6 +200,7 @@ export async function createAdminServices(env = {}) {
skillRuntimeConfigService,
systemDisclosurePolicyService,
agentCodeRunPolicyService,
wechatCursorExecutorPolicyService,
wechatScheduleLlmConfigService,
wechatIntentRouterConfigService,
adminSystemTestService,