Add per-feature Cursor channel toggles for admin and runtime.
Memind CI / Test, build, and release guards (push) Has been cancelled

Expose page/data/scheduled-task/chat-bridge switches in the智趣体验通道 config so Tang can roll out Cursor paths independently with DeepSeek fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-31 09:40:52 +08:00
parent ac2c87be43
commit 617ff0d1dd
21 changed files with 915 additions and 127 deletions
+5
View File
@@ -63,6 +63,7 @@ import {
resolveRequestOrigin,
} from './server/portal-publication-shell.mjs';
import { attachPortalRuntimeRoutes } from './server/portal-runtime-routes.mjs';
import { createHarnessRuntimeService } from './services/harness/runtime.mjs';
import { attachPortalStaticDeliveryRoutes } from './server/portal-static-delivery-routes.mjs';
import { createPortalWorkspacePublicationDelivery } from './server/portal-workspace-publication-delivery.mjs';
import { attachPortalSeoDiscoveryRoutes } from './server/portal-seo-discovery-routes.mjs';
@@ -283,6 +284,7 @@ let memoryV2ConfigService = null;
let skillRuntimeConfigService = null;
let systemDisclosurePolicyService = null;
let agentCodeRunPolicyService = null;
let harnessRuntimeService = null;
let wechatCursorExecutorPolicyService = null;
let wechatScheduleLlmConfigService = null;
let wechatScheduledTaskManageLlmConfigService = null;
@@ -338,6 +340,7 @@ async function bootstrapUserAuth() {
try {
if (!isDatabaseConfigured()) return false;
const pool = createDbPool();
harnessRuntimeService = createHarnessRuntimeService({ pool, env: process.env });
const domainServices =
await bootstrapPortalDomainServices({
pool,
@@ -517,6 +520,7 @@ async function bootstrapUserAuth() {
conversationMemoryService,
memoryV2,
systemDisclosurePolicyService,
wechatCursorExecutorPolicyService,
mindSpaceAssets,
getWorkspacePublicationDelivery: () =>
mindSpaceWorkspacePublicationDelivery,
@@ -789,6 +793,7 @@ attachPortalRuntimeRoutes(api, {
getEpisodicMemoryService: () => episodicMemoryService,
getAgentRunGateway: () => agentRunGateway,
getCodeRunPolicyService: () => agentCodeRunPolicyService,
getHarnessRuntimeService: () => harnessRuntimeService,
env: process.env,
});