feat(mindspace): enforce PostgreSQL user data delivery

This commit is contained in:
john
2026-07-13 15:29:29 +08:00
parent b33c943b69
commit a6620fb719
57 changed files with 2779 additions and 164 deletions
+7 -3
View File
@@ -888,7 +888,10 @@ export function createChatIntentRouter(options = {}) {
function getStatus() {
return {
enabled: Boolean(policy.enabled),
enabled: true,
ruleRoutingEnabled: true,
llmRoutingEnabled: false,
configuredLlmEnabled: Boolean(policy.enabled),
modelProviderKeyId: policy.modelProviderKeyId ?? null,
model: policy.model ?? null,
modelApiType: policy.modelApiType ?? 'chat',
@@ -903,8 +906,9 @@ export function createChatIntentRouter(options = {}) {
}
function isEnabled() {
// Skill + rule routing only; LLM intent router is intentionally disabled.
return false;
// Rule + skill routing is always active. The LLM classifier stays disabled
// independently; returning false here would make the gateway skip rules too.
return true;
}
async function resolveRouterContext({ userId, sessionId, text, forceDeepReasoning = false }) {