АРЧ АП11 - Архитектура: вынести inventory intent-family из resolveAddressIntent и зафиксировать pre-expansion cut
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user