Слияние частей A и B этапа 2 (разрешены конфликты: задания, MCP-инструменты, формат ответа категоризации)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 16:55:16 +03:00
parent a5bf9bf71e
commit fa83bfbc2f
24 changed files with 1818 additions and 30 deletions

View File

@@ -164,7 +164,7 @@ async function resolveVendor(pool: Pool, name: string | null): Promise<{ id: str
return { id: null, problem: `вендор «${name}» не найден в QuickBooks` };
}
async function resolveProject(pool: Pool, object: string | null): Promise<{ id: string | null; problem?: string }> {
export async function resolveProject(pool: Pool, object: string | null): Promise<{ id: string | null; problem?: string }> {
if (!object) return { id: null, problem: "проект неясен: в инвойсе нет названия объекта или адреса" };
const want = normalizeAddress(object);
const wantKey = addressKey(object);