АРЧ АП11 - Архитектура: вынести inventory intent-family из resolveAddressIntent и зафиксировать pre-expansion cut

This commit is contained in:
2026-04-17 18:59:17 +03:00
parent 29721d16cd
commit 50c66e71a8
7 changed files with 745 additions and 5 deletions
@@ -1,4 +1,5 @@
import type { AddressIntentResolution } from "../types/addressQuery";
import { resolveInventoryAddressIntent } from "./addressInventoryIntentSignals";
import {
hasInventoryProfitabilityCue,
hasInventoryPurchaseStem,
@@ -1900,6 +1901,11 @@ export function resolveAddressIntent(userMessage: string): AddressIntentResoluti
};
}
const inventoryIntent = resolveInventoryAddressIntent(text);
if (inventoryIntent) {
return inventoryIntent;
}
if (
/(?:старым\s+закупк(?:ам|и|ах)|относится\s+ли\s+.*\s+к\s+старым\s+закупк(?:ам|и|ах)|очень\s+давно|давно\s+куплен|давно\s+приобретен|old\s+stock|old\s+purchase|aging\s+by\s+purchase\s+date)/iu.test(
text