АРЧ АП11 - Архитектура после ге :

This commit is contained in:
2026-04-17 23:49:21 +03:00
parent 8f9364e7c9
commit a5ea9adf53
72 changed files with 7353 additions and 4027 deletions
@@ -3,6 +3,10 @@ import {
mergeKnownOrganizations,
normalizeOrganizationScopeValue
} from "./assistantOrganizationMatcher";
import {
isGroundedAddressDebug,
readAddressDebugOrganization
} from "./assistantContinuityPolicy";
const DATA_SCOPE_CACHE_TTL_MS = 60_000;
@@ -311,6 +315,12 @@ export function createAssistantDataScopePolicy(deps: AssistantDataScopePolicyDep
if (selected) {
return selected;
}
if (isGroundedAddressDebug(debug)) {
const groundedOrganization = normalizeOrganizationScopeValue(readAddressDebugOrganization(debug));
if (groundedOrganization) {
return groundedOrganization;
}
}
}
return null;