From f6cabb77b7186d5844360492b6c8eace31bb9b51 Mon Sep 17 00:00:00 2001 From: Basoff Date: Fri, 20 Feb 2026 14:16:45 +0300 Subject: [PATCH] test --- 01_ПОЛНАЯ_СТРУКТУРА_PBI_И_SQL.md | 5 ++++- 02_КОММЕНТАРИИ_ДЛЯ_ИИ_ПОМОЩНИКА.md | 5 +++-- .../Calculationofthecostofproductionreferences.bat | 0 .../Calculationofthecostofproductionreferences.py | 0 .../Calculationofthecostofreproduction.bat | 0 .../Calculationofthecostofreproduction.py | 0 .../CostCalculationFrom2022_1_5.bat | 0 .../CostCalculationFrom2022_1_5.py | 0 {python skript => python script}/main (3).py | 0 {python skript => python script}/main3.bat | 0 .../old/РасчетСебестоимостиБезПроизводства.py | 0 .../old/РасчетСебестоимостиСПроизводством.py | 0 Текстовый документ.txt | 0 13 files changed, 7 insertions(+), 3 deletions(-) rename {python skript => python script}/Calculationofthecostofproductionreferences.bat (100%) rename {python skript => python script}/Calculationofthecostofproductionreferences.py (100%) rename {python skript => python script}/Calculationofthecostofreproduction.bat (100%) rename {python skript => python script}/Calculationofthecostofreproduction.py (100%) rename {python skript => python script}/CostCalculationFrom2022_1_5.bat (100%) rename {python skript => python script}/CostCalculationFrom2022_1_5.py (100%) rename {python skript => python script}/main (3).py (100%) rename {python skript => python script}/main3.bat (100%) rename {python skript => python script}/old/РасчетСебестоимостиБезПроизводства.py (100%) rename {python skript => python script}/old/РасчетСебестоимостиСПроизводством.py (100%) create mode 100644 Текстовый документ.txt diff --git a/01_ПОЛНАЯ_СТРУКТУРА_PBI_И_SQL.md b/01_ПОЛНАЯ_СТРУКТУРА_PBI_И_SQL.md index 3f97def..2cd7569 100644 --- a/01_ПОЛНАЯ_СТРУКТУРА_PBI_И_SQL.md +++ b/01_ПОЛНАЯ_СТРУКТУРА_PBI_И_SQL.md @@ -58,7 +58,7 @@ | `analytics.manufacturers` | — | | `analytics.manufacturer_payment_stage` | — | | `analytics.manufacturer_counterparty_map` | — | -| `analytics.deficit_money_request` | — | +| `analytics.deficit_money_request` | scenario_id, manufacturer_id, contractor_1c_id, arrival_month, amount_rub/usd | | `analytics.forecast_history` | — | | `analytics.load_log_w_ostatok_da_net` | — | | `analytics.sales_weekly_features` | — | @@ -183,6 +183,7 @@ | Процедура | Назначение | |-----------|------------| | `analytics.sp_build_deficit_proposal` | Расчёт дефицита и рекомендаций к заказу | +| `analytics.sp_fill_deficit_money_request` | Заполнение заявок на оплату по дефициту (manufacturers + contractor) | | `analytics.sp_rebuild_stock_plan_by_arrival` | План остатков по месяцам прихода | | `analytics.sp_run_deficit_all_skus` | Пересчёт дефицита по всем SKU | | `analytics.sp_build_forecast_s4_by_group` | Прогноз по группе | @@ -285,6 +286,8 @@ forecast (analytics.forecast) ↓ sp_build_deficit_proposal → deficit_proposal ↓ +sp_fill_deficit_money_request → deficit_money_request (заявки на оплату по производителям) + ↓ sp_rebuild_stock_plan_by_arrival → stock_plan_by_arrival Формула: closing = opening + inbound_confirmed + inbound_deficit - forecast_demand diff --git a/02_КОММЕНТАРИИ_ДЛЯ_ИИ_ПОМОЩНИКА.md b/02_КОММЕНТАРИИ_ДЛЯ_ИИ_ПОМОЩНИКА.md index b503c3c..23209cb 100644 --- a/02_КОММЕНТАРИИ_ДЛЯ_ИИ_ПОМОЩНИКА.md +++ b/02_КОММЕНТАРИИ_ДЛЯ_ИИ_ПОМОЩНИКА.md @@ -61,9 +61,10 @@ API (5710) ──► MySQL (users, jobs, basket) - **POST /agent/chat** — запуск Cursor Agent. Тело: `{ prompt, history }`. Ответ: `{ jobId }`. - **GET /agent/chatStatus?jobId=xxx** — polling результата. Ответ: `{ content, done }`. +- **GET /agent/repoInfo** — URL для git clone и дата последнего коммита. Ответ: `{ cloneUrl, lastUpdated, cloneCommand }`. - Маркер конца: `__AGENT_DONE__` в файле. -- CWD агента: `analytics/` (относительно api). -- `CURSOR_API_KEY` в .env — обязателен. +- CWD агента: `analytics/` (по умолчанию) или `ANALYTICS_REPO_PATH` из .env. +- **Переменные .env:** `CURSOR_API_KEY` (обязательно), `ANALYTICS_REPO_PATH` (путь к репо, напр. `/home/mag/analytics`), `ANALYTICS_GIT_CLONE_URL` (если git remote не настроен). ### 2.3 Система задач (JobManager) diff --git a/python skript/Calculationofthecostofproductionreferences.bat b/python script/Calculationofthecostofproductionreferences.bat similarity index 100% rename from python skript/Calculationofthecostofproductionreferences.bat rename to python script/Calculationofthecostofproductionreferences.bat diff --git a/python skript/Calculationofthecostofproductionreferences.py b/python script/Calculationofthecostofproductionreferences.py similarity index 100% rename from python skript/Calculationofthecostofproductionreferences.py rename to python script/Calculationofthecostofproductionreferences.py diff --git a/python skript/Calculationofthecostofreproduction.bat b/python script/Calculationofthecostofreproduction.bat similarity index 100% rename from python skript/Calculationofthecostofreproduction.bat rename to python script/Calculationofthecostofreproduction.bat diff --git a/python skript/Calculationofthecostofreproduction.py b/python script/Calculationofthecostofreproduction.py similarity index 100% rename from python skript/Calculationofthecostofreproduction.py rename to python script/Calculationofthecostofreproduction.py diff --git a/python skript/CostCalculationFrom2022_1_5.bat b/python script/CostCalculationFrom2022_1_5.bat similarity index 100% rename from python skript/CostCalculationFrom2022_1_5.bat rename to python script/CostCalculationFrom2022_1_5.bat diff --git a/python skript/CostCalculationFrom2022_1_5.py b/python script/CostCalculationFrom2022_1_5.py similarity index 100% rename from python skript/CostCalculationFrom2022_1_5.py rename to python script/CostCalculationFrom2022_1_5.py diff --git a/python skript/main (3).py b/python script/main (3).py similarity index 100% rename from python skript/main (3).py rename to python script/main (3).py diff --git a/python skript/main3.bat b/python script/main3.bat similarity index 100% rename from python skript/main3.bat rename to python script/main3.bat diff --git a/python skript/old/РасчетСебестоимостиБезПроизводства.py b/python script/old/РасчетСебестоимостиБезПроизводства.py similarity index 100% rename from python skript/old/РасчетСебестоимостиБезПроизводства.py rename to python script/old/РасчетСебестоимостиБезПроизводства.py diff --git a/python skript/old/РасчетСебестоимостиСПроизводством.py b/python script/old/РасчетСебестоимостиСПроизводством.py similarity index 100% rename from python skript/old/РасчетСебестоимостиСПроизводством.py rename to python script/old/РасчетСебестоимостиСПроизводством.py diff --git a/Текстовый документ.txt b/Текстовый документ.txt new file mode 100644 index 0000000..e69de29