feat(intent): 歧义任务走 LLM 路由,并在选中 agent 时离开直聊会话
Memind CI / Test, build, and release guards (push) Has been cancelled

对比/清单/行程等口吻按人群场景交给分类器;本机 .env 可覆盖 admin-db 的 router 开关。
顺带在 MindSpace MCP token 过期时轮换 Goose 会话,避免旧会话空 Finish。
This commit is contained in:
John
2026-09-12 11:07:45 +08:00
parent 58909a21a7
commit ce2a4b0e1a
17 changed files with 1148 additions and 35 deletions
@@ -2,6 +2,7 @@ import crypto from 'node:crypto';
import fs from 'node:fs';
import path from 'node:path';
import { createAgentRunGateway } from '../agent-run-gateway.mjs';
import { resolveDirectEscalationContextPolicy } from '../chat-task-intent-config.mjs';
import { releaseMaterializedPageDeliveryContracts } from '../mindspace-delivery-contract.mjs';
import { resolvePublishDir } from '../user-publish.mjs';
import { createGoalRunService } from '../goal-run-service.mjs';
@@ -256,6 +257,7 @@ export function bootstrapPortalGatewayServices({
llmProviderService,
systemDisclosurePolicyService,
chatIntentRouter,
directEscalationContextPolicy: resolveDirectEscalationContextPolicy(env),
sessionSnapshotService,
conversationMemoryService,
goalRunService,