From 057fe6254c070fcd833e53a3de48e842f51afc65 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 22 Jul 2025 21:01:24 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A1=EF=B8=8F=20=D0=94=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B7=D0=B0=D1=89=D0=B8=D1=82=D0=B0=20=D0=B0?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D1=80=D1=81=D0=BA=D0=B8=D1=85=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2:=20=D0=BA=D0=BE=D0=BF=D0=B8=D1=80=D0=B0=D0=B9?= =?UTF-8?q?=D1=82=D1=8B,=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8?= =?UTF-8?q?=D1=8F,=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20IP,=20Docker=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 183 +++++++--- Dockerfile | 5 + LICENSE | 50 +++ README.md | 45 ++- backend/Dockerfile | 16 + backend/app.js | 12 + backend/config/session.js | 12 + backend/contracts/GovernanceToken.sol | 11 + backend/contracts/GovernorContract.sol | 11 + backend/db.js | 12 + backend/db/init.js | 12 + backend/hardhat.config.js | 12 + backend/middleware/auth.js | 12 + backend/middleware/errorHandler.js | 12 + backend/routes/auth.js | 12 + backend/routes/chat.js | 12 + backend/routes/dle.js | 12 + backend/routes/geocoding.js | 12 + backend/routes/identities.js | 12 + backend/routes/isic.js | 12 + backend/routes/messages.js | 12 + backend/routes/monitoring.js | 12 + backend/routes/pages.js | 12 + backend/routes/rag.js | 12 + backend/routes/settings.js | 12 + backend/routes/tables.js | 12 + backend/routes/tokens.js | 12 + backend/routes/users.js | 12 + backend/scripts/check-dependencies.js | 12 + .../scripts/check-ethers-v6-compatibility.js | 12 + backend/scripts/check-ollama-models.js | 12 + backend/scripts/cleanup-sessions.js | 12 + backend/scripts/deploy/create-dle-manual.js | 12 + backend/scripts/deploy/current-params.json | 18 +- backend/scripts/fix-duplicate-identities.js | 12 + backend/scripts/run-migrations.js | 12 + backend/scripts/wait-for-postgres.sh | 11 + backend/server.js | 12 + backend/services/admin-role.js | 12 + backend/services/ai-assistant.js | 12 + backend/services/aiAssistantRulesService.js | 12 + .../services/aiAssistantSettingsService.js | 12 + backend/services/aiProviderSettingsService.js | 12 + backend/services/auth-service.js | 12 + backend/services/authTokenService.js | 12 + backend/services/dbSettingsService.js | 12 + backend/services/dleService.js | 12 + backend/services/emailAuth.js | 12 + backend/services/emailBot.js | 12 + backend/services/identity-service.js | 12 + backend/services/index.js | 12 + backend/services/ragService.js | 12 + backend/services/rpcProviderService.js | 12 + backend/services/session-service.js | 12 + backend/services/telegramBot.js | 12 + backend/services/userDeleteService.js | 12 + backend/services/vectorSearchClient.js | 12 + backend/services/verification-service.js | 12 + backend/services/wallet-service.js | 12 + backend/tests/ragService.test.js | 12 + backend/tests/ragServiceFull.test.js | 12 + backend/tests/vectorSearchClient.test.js | 12 + backend/utils/checkMail.js | 12 + backend/utils/constants.js | 12 + backend/utils/error.js | 12 + backend/utils/helpers.js | 12 + backend/utils/userUtils.js | 12 + backend/wsHub.js | 12 + clean-logs.sh | 4 + docker-compose.local.yml | 18 + docker-compose.yml | 5 + docs/DLE_Governance_System.md | 12 + docs/RAG_ASSISTANT_INTEGRATION.md | 12 + docs/RAG_TASKS.md | 12 + docs/SOFT_DESCRIPTION.md | 12 + docs/WEB_SSH_TUNNEL_PLAN.md | 12 + docs/interactive-content-sharing.md | 12 + docs/rag-assistant-details.md | 12 + docs/user-tables-relation-task.md | 12 + docs/vector-search-service.md | 12 + frontend/Dockerfile | 16 + frontend/src/App.vue | 12 + frontend/src/api/axios.js | 12 + frontend/src/assets/styles/README.md | 12 + frontend/src/assets/styles/base.css | 12 + frontend/src/assets/styles/global.css | 12 + frontend/src/assets/styles/layout.css | 12 + frontend/src/assets/styles/variables.css | 12 + frontend/src/components/BaseLayout.vue | 14 + frontend/src/components/BroadcastModal.vue | 12 + frontend/src/components/ChatInterface.vue | 12 + frontend/src/components/ContactTable.vue | 12 + frontend/src/components/DleManagement.vue | 12 + frontend/src/components/Header.vue | 12 + .../src/components/ImportContactsModal.vue | 12 + frontend/src/components/Message.vue | 12 + frontend/src/components/MessagesTable.vue | 12 + frontend/src/components/NoAccessModal.vue | 12 + .../src/components/NotificationDisplay.vue | 12 + frontend/src/components/RpcTestModal.vue | 12 + frontend/src/components/Sidebar.vue | 100 ++++++ frontend/src/components/WebSshForm.vue | 12 + .../components/ai-assistant/RuleEditor.vue | 12 + .../ai-assistant/SystemMonitoring.vue | 12 + .../src/components/identity/EmailConnect.vue | 12 + .../components/identity/TelegramConnect.vue | 12 + .../components/identity/WalletConnection.vue | 12 + frontend/src/components/identity/index.js | 12 + frontend/src/components/tables/TableCell.vue | 12 + frontend/src/components/tables/TableRow.vue | 12 + .../src/components/tables/UserTableView.vue | 12 + .../src/components/tables/UserTablesList.vue | 12 + frontend/src/composables/useAuth.js | 12 + frontend/src/composables/useAuthFlow.js | 12 + frontend/src/composables/useChat.js | 12 + .../src/composables/useContactsWebSocket.js | 12 + frontend/src/composables/useNotifications.js | 12 + frontend/src/composables/useTokenBalances.js | 12 + frontend/src/main.js | 12 + frontend/src/router/index.js | 12 + frontend/src/services/contactsService.js | 12 + frontend/src/services/dleService.js | 12 + frontend/src/services/messagesService.js | 12 + frontend/src/services/pagesService.js | 12 + frontend/src/services/tablesService.js | 12 + frontend/src/services/tokens.js | 12 + frontend/src/services/wallet.js | 12 + frontend/src/services/webSshService.js | 12 + frontend/src/utils/api.js | 12 + frontend/src/utils/eventBus.js | 12 + frontend/src/utils/helpers.js | 12 + frontend/src/utils/storage.js | 12 + frontend/src/utils/wallet.js | 12 + frontend/src/views/ContactsView.vue | 12 + frontend/src/views/ContentPageView.vue | 12 + frontend/src/views/CrmView.vue | 12 + frontend/src/views/DleManagementView.vue | 12 + frontend/src/views/HomeView.vue | 12 + frontend/src/views/SettingsView.vue | 12 + .../views/contacts/ContactDeleteConfirm.vue | 12 + .../src/views/contacts/ContactDetailsView.vue | 12 + .../src/views/content/ContentListView.vue | 12 + .../src/views/content/ContentSettingsView.vue | 12 + frontend/src/views/content/PageEditView.vue | 12 + frontend/src/views/content/PageView.vue | 12 + .../views/settings/AI/AiAssistantSettings.vue | 12 + .../settings/AI/DatabaseSettingsView.vue | 12 + .../views/settings/AI/EmailSettingsView.vue | 12 + .../views/settings/AI/OllamaSettingsView.vue | 12 + .../views/settings/AI/OpenAISettingsView.vue | 12 + .../settings/AI/TelegramSettingsView.vue | 12 + .../src/views/settings/AIProviderSettings.vue | 12 + .../src/views/settings/AiSettingsView.vue | 12 + .../src/views/settings/AuthTokensSettings.vue | 12 + .../Interface/InterfaceSettingsView.vue | 12 + .../Interface/InterfaceWebSshView.vue | 12 + .../views/settings/RpcProvidersSettings.vue | 12 + .../views/settings/SecuritySettingsView.vue | 12 + .../src/views/settings/SettingsIndexView.vue | 174 +++++++++- .../src/views/settings/WebSshSettingsView.vue | 12 + frontend/src/views/tables/CreateTableView.vue | 12 + frontend/src/views/tables/DeleteTableView.vue | 12 + frontend/src/views/tables/EditTableView.vue | 12 + frontend/src/views/tables/TableView.vue | 12 + frontend/src/views/tables/TablesListView.vue | 12 + legal/ATTRIBUTION_REQUIREMENTS.md | 113 ++++++ legal/AUTHORS.md | 35 ++ legal/COMMERCIAL_LICENSES.md | 190 ++++++++++ legal/COMMERCIAL_LICENSE_REQUEST.md | 93 +++++ legal/CONTRIBUTING.md | 75 ++++ legal/COPYRIGHT_NOTICE.md | 100 ++++++ legal/GITHUB_PROTECTION_STRATEGY.md | 199 +++++++++++ legal/PUBLICATION_GUIDE.md | 153 ++++++++ legal/README.md | 119 +++++++ legal/TERMS_OF_SERVICE.md | 60 ++++ legal/USAGE_NOTIFICATION.md | 131 +++++++ scripts/README.md | 12 + scripts/add-copyrights.js | 326 ++++++++++++++++++ scripts/migrate-app.sh | 11 + scripts/update-dns.sh | 11 + setup.sh | 4 + vector-search/Dockerfile | 17 + 182 files changed, 4068 insertions(+), 50 deletions(-) create mode 100644 LICENSE create mode 100644 docker-compose.local.yml create mode 100644 legal/ATTRIBUTION_REQUIREMENTS.md create mode 100644 legal/AUTHORS.md create mode 100644 legal/COMMERCIAL_LICENSES.md create mode 100644 legal/COMMERCIAL_LICENSE_REQUEST.md create mode 100644 legal/CONTRIBUTING.md create mode 100644 legal/COPYRIGHT_NOTICE.md create mode 100644 legal/GITHUB_PROTECTION_STRATEGY.md create mode 100644 legal/PUBLICATION_GUIDE.md create mode 100644 legal/README.md create mode 100644 legal/TERMS_OF_SERVICE.md create mode 100644 legal/USAGE_NOTIFICATION.md create mode 100755 scripts/add-copyrights.js diff --git a/.gitignore b/.gitignore index 74785d5..639b321 100644 --- a/.gitignore +++ b/.gitignore @@ -1,56 +1,161 @@ -# Зависимости -node_modules/ -/.pnp -.pnp.js +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. -# Логи -logs/ -*.log +# dependencies +node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* -backend/logs/ -frontend/logs/ -# Файлы окружения +# runtime data +pids +*.pid +*.seed +*.pid.lock + +# coverage directory used by tools like istanbul +coverage/ + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file .env -.env.local -.env.development.local -.env.test.local -.env.production.local -backend/.env -frontend/.env +.env.test +.env.production -# Файлы сборки -/dist -/build -/out +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache -# Кэши и временные файлы -.cache/ -.temp/ -.DS_Store -.idea/ +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +# IDE .vscode/ +.idea/ *.swp *.swo -# Docker тома -/data +# OS +.DS_Store +Thumbs.db -# Приватные ключи и сертификаты -*.pem -*.key -id_rsa -id_rsa.pub +# Logs +logs/ +*.log +# Temporary files +temp/ +tmp/ +*.tmp -# Локальные настройки -.prettierrc.local -.eslintrc.local - -# Файлы базы данных +# Database *.db *.sqlite -*.sqlite3 -docker-compose.local.yml \ No newline at end of file + +# Keys and certificates +*.key +*.pem +*.crt +*.p12 + +# SSH Keys - КРИТИЧЕСКИ ВАЖНО! +id_rsa +id_ed25519 +*.ppk +ssh_host_* +ssh_config + +# Docker +.dockerignore + +# ======================================== +# ПАТЕНТНЫЕ ДОКУМЕНТЫ - НЕ ПУБЛИКОВАТЬ! +# ======================================== + +# Патентные заявки и документы +legal/patents/ +legal/PATENT_*.md +legal/INNOVATION_PROCESS.md +legal/TECHNICAL_SPECIFICATIONS.md +legal/PATENT_DRAWINGS*.md + +# Конфиденциальные технические детали +legal/REGISTRATION_PLAN.md +legal/JURISDICTION.md + +# Временные файлы патентной работы +legal/temp/ +legal/drafts/ +legal/confidential/ + +# ======================================== +# АВТОРСКИЕ ПРАВА И ЛИЦЕНЗИИ - ПУБЛИКОВАТЬ +# ======================================== +# legal/LICENSE.md - ПУБЛИКОВАТЬ +# legal/AUTHORS.md - ПУБЛИКОВАТЬ +# legal/CONTRIBUTING.md - ПУБЛИКОВАТЬ +# legal/COPYRIGHT_NOTICE.md - ПУБЛИКОВАТЬ +# legal/TERMS_OF_SERVICE.md - ПУБЛИКОВАТЬ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 3fdf016..beb7b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,8 @@ +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + FROM node:20-alpine WORKDIR /app # Установка зависимостей diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7823512 --- /dev/null +++ b/LICENSE @@ -0,0 +1,50 @@ +PROPRIETARY SOFTWARE LICENSE + +Copyright (c) 2024-2025 Тарабанов Александр Викторович +All rights reserved. + +This software and associated documentation files (the "Software") are the +proprietary and confidential information of Тарабанов Александр Викторович. + +TERMS AND CONDITIONS: + +1. GRANT OF LICENSE + Subject to the terms and conditions of this License, Тарабанов Александр Викторович + grants you a non-exclusive, non-transferable license to use the Software + for your business operations and internal purposes. + +2. PERMITTED USE + You may: + - Use the Software for your business operations + - Install and run the Software on your systems + - Use the Software to provide services to your clients + - Integrate the Software into your business processes + +3. RESTRICTIONS + You may NOT: + - Resell, redistribute, or sublicense the Software to third parties + - Modify, adapt, or create derivative works without explicit permission + - Reverse engineer, decompile, or disassemble the Software + - Remove or alter any copyright notices + - Use the Software in educational institutions without permission + +4. COMMERCIAL RESALE AND MODIFICATIONS + Commercial resale, distribution, or modifications of this Software + require explicit written permission from Тарабанов Александр Викторович + (info@hb3-accelerator.com). + +5. UPDATES AND MODIFICATIONS + Any updates, modifications, or derivative works require explicit written + permission from the copyright holder. + +6. TERMINATION + This license terminates automatically if you fail to comply with its terms. + +7. DISCLAIMER + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. + +For licensing inquiries: info@hb3-accelerator.com +Website: https://hb3-accelerator.com +GitHub: https://github.com/HB3-ACCELERATOR + +For detailed license information, see: legal/README.md \ No newline at end of file diff --git a/README.md b/README.md index 6c91347..3e7d4a3 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,28 @@ Веб3 приложение для бизнеса с ИИ ассистентом +## Авторство и лицензия + +**Автор:** Тарабанов Александр Викторович +**Организация:** HB3 Accelerator +**Email:** info@hb3-accelerator.com +**Сайт:** [hb3-accelerator.com](https://hb3-accelerator.com) +**GitHub:** [@HB3-ACCELERATOR](https://github.com/HB3-ACCELERATOR) + +### Лицензия + +Этот проект распространяется под **Proprietary Software License**. + +- ✅ **Разрешено:** Использование в бизнесе для внутренних операций +- ✅ **Разрешено:** Предоставление услуг клиентам с использованием софта +- ❌ **Запрещено:** Перепродажа софта без разрешения +- ❌ **Запрещено:** Модификации кода без разрешения автора + +**Для коммерческого использования требуется разрешение автора.** +**Контакты:** info@hb3-accelerator.com + +**Подробная информация:** [legal/LICENSE.md](legal/LICENSE.md) + ## Требования - Docker и Docker Compose @@ -76,4 +98,25 @@ docker compose down # Остановка сервисов и удаление томов docker compose down -v -``` \ No newline at end of file +``` + +## Контакты и поддержка + +### Для вопросов по разработке: +- **GitHub Issues:** [Создать issue](https://github.com/DAO-HB3-Accelerator/DLE/issues) +- **Email:** info@hb3-accelerator.com + +### Для коммерческого лицензирования: +- **Email:** info@hb3-accelerator.com +- **Тема:** "Commercial License Request - DLE" +- **Шаблон запроса:** [legal/COMMERCIAL_LICENSE_REQUEST.md](legal/COMMERCIAL_LICENSE_REQUEST.md) + +### Юридические документы: +- **Лицензия:** [LICENSE](LICENSE) | [Подробно](legal/LICENSE.md) +- **Авторы:** [legal/AUTHORS.md](legal/AUTHORS.md) +- **Для контрибьюторов:** [legal/CONTRIBUTING.md](legal/CONTRIBUTING.md) +- **Уведомления об авторских правах:** [legal/COPYRIGHT_NOTICE.md](legal/COPYRIGHT_NOTICE.md) + +--- + +**© 2024-2025 Тарабанов Александр Викторович. Все права защищены.** \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 1f86e2e..5c4a1d2 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,21 @@ +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + FROM node:20-bookworm +# Добавляем метки для авторских прав +LABEL maintainer="Тарабанов Александр Викторович " +LABEL copyright="Copyright (c) 2024-2025 Тарабанов Александр Викторович" +LABEL license="Proprietary" +LABEL website="https://hb3-accelerator.com" + WORKDIR /app # Устанавливаем только docker-cli (без демона) diff --git a/backend/app.js b/backend/app.js index 4bb6f64..84e4acc 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const helmet = require('helmet'); const cors = require('cors'); diff --git a/backend/config/session.js b/backend/config/session.js index 92719a1..49d6ff9 100644 --- a/backend/config/session.js +++ b/backend/config/session.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const session = require('express-session'); const pgSession = require('connect-pg-simple')(session); const db = require('../db'); diff --git a/backend/contracts/GovernanceToken.sol b/backend/contracts/GovernanceToken.sol index 78a8749..464cbd7 100644 --- a/backend/contracts/GovernanceToken.sol +++ b/backend/contracts/GovernanceToken.sol @@ -1,3 +1,14 @@ +// SPDX-License-Identifier: PROPRIETARY +// Copyright (c) 2024-2025 Тарабанов Александр Викторович +// All rights reserved. +// +// This software is proprietary and confidential. +// Unauthorized copying, modification, or distribution is prohibited. +// +// For licensing inquiries: info@hb3-accelerator.com +// Website: https://hb3-accelerator.com +// GitHub: https://github.com/HB3-ACCELERATOR + // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; diff --git a/backend/contracts/GovernorContract.sol b/backend/contracts/GovernorContract.sol index 448e070..5774537 100644 --- a/backend/contracts/GovernorContract.sol +++ b/backend/contracts/GovernorContract.sol @@ -1,3 +1,14 @@ +// SPDX-License-Identifier: PROPRIETARY +// Copyright (c) 2024-2025 Тарабанов Александр Викторович +// All rights reserved. +// +// This software is proprietary and confidential. +// Unauthorized copying, modification, or distribution is prohibited. +// +// For licensing inquiries: info@hb3-accelerator.com +// Website: https://hb3-accelerator.com +// GitHub: https://github.com/HB3-ACCELERATOR + // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; diff --git a/backend/db.js b/backend/db.js index 1889604..6cfffa1 100644 --- a/backend/db.js +++ b/backend/db.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { Pool } = require('pg'); require('dotenv').config(); const axios = require('axios'); diff --git a/backend/db/init.js b/backend/db/init.js index 6adb3a7..e07553d 100644 --- a/backend/db/init.js +++ b/backend/db/init.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const fs = require('fs'); const path = require('path'); const { pool } = require('./index'); diff --git a/backend/hardhat.config.js b/backend/hardhat.config.js index cac7db5..c22883d 100644 --- a/backend/hardhat.config.js +++ b/backend/hardhat.config.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + require('@nomicfoundation/hardhat-toolbox'); require('dotenv').config(); diff --git a/backend/middleware/auth.js b/backend/middleware/auth.js index f21dcf3..4420b16 100644 --- a/backend/middleware/auth.js +++ b/backend/middleware/auth.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + console.log('[DIAG][auth.js] Файл загружен:', __filename); const { createError } = require('../utils/error'); diff --git a/backend/middleware/errorHandler.js b/backend/middleware/errorHandler.js index fbc8b00..78bc909 100644 --- a/backend/middleware/errorHandler.js +++ b/backend/middleware/errorHandler.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { AppError, ErrorTypes } = require('../utils/error'); const logger = require('../utils/logger'); const { ERROR_CODES } = require('../utils/constants'); diff --git a/backend/routes/auth.js b/backend/routes/auth.js index c9ea87d..32fb92a 100644 --- a/backend/routes/auth.js +++ b/backend/routes/auth.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const crypto = require('crypto'); diff --git a/backend/routes/chat.js b/backend/routes/chat.js index a904057..ede19e1 100644 --- a/backend/routes/chat.js +++ b/backend/routes/chat.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const multer = require('multer'); diff --git a/backend/routes/dle.js b/backend/routes/dle.js index 4064701..9f4683a 100644 --- a/backend/routes/dle.js +++ b/backend/routes/dle.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const dleService = require('../services/dleService'); diff --git a/backend/routes/geocoding.js b/backend/routes/geocoding.js index 1a06211..c836f8a 100644 --- a/backend/routes/geocoding.js +++ b/backend/routes/geocoding.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + // backend/routes/geocoding.js const express = require('express'); const router = express.Router(); diff --git a/backend/routes/identities.js b/backend/routes/identities.js index 0046d33..0908fcf 100644 --- a/backend/routes/identities.js +++ b/backend/routes/identities.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const { requireAuth } = require('../middleware/auth'); diff --git a/backend/routes/isic.js b/backend/routes/isic.js index 45f87b1..21b1543 100644 --- a/backend/routes/isic.js +++ b/backend/routes/isic.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const db = require('../db'); diff --git a/backend/routes/messages.js b/backend/routes/messages.js index 5d91d88..abaab44 100644 --- a/backend/routes/messages.js +++ b/backend/routes/messages.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const db = require('../db'); diff --git a/backend/routes/monitoring.js b/backend/routes/monitoring.js index 913be22..af840b9 100644 --- a/backend/routes/monitoring.js +++ b/backend/routes/monitoring.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const axios = require('axios'); diff --git a/backend/routes/pages.js b/backend/routes/pages.js index 13fe0a9..270e89f 100644 --- a/backend/routes/pages.js +++ b/backend/routes/pages.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const db = require('../db'); diff --git a/backend/routes/rag.js b/backend/routes/rag.js index aed7aef..fe821c6 100644 --- a/backend/routes/rag.js +++ b/backend/routes/rag.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const { ragAnswer, generateLLMResponse } = require('../services/ragService'); diff --git a/backend/routes/settings.js b/backend/routes/settings.js index af1ddc8..7f4949e 100644 --- a/backend/routes/settings.js +++ b/backend/routes/settings.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const { requireAdmin } = require('../middleware/auth'); diff --git a/backend/routes/tables.js b/backend/routes/tables.js index 9eb8a7a..f4fc83b 100644 --- a/backend/routes/tables.js +++ b/backend/routes/tables.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + console.log('[DIAG][tables.js] Файл загружен:', __filename); const express = require('express'); diff --git a/backend/routes/tokens.js b/backend/routes/tokens.js index ae0b972..0e7d81b 100644 --- a/backend/routes/tokens.js +++ b/backend/routes/tokens.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const logger = require('../utils/logger'); diff --git a/backend/routes/users.js b/backend/routes/users.js index 003920d..1ed8b5f 100644 --- a/backend/routes/users.js +++ b/backend/routes/users.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const express = require('express'); const router = express.Router(); const db = require('../db'); diff --git a/backend/scripts/check-dependencies.js b/backend/scripts/check-dependencies.js index 61c18f3..14e3f6f 100644 --- a/backend/scripts/check-dependencies.js +++ b/backend/scripts/check-dependencies.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const fs = require('fs'); const path = require('path'); diff --git a/backend/scripts/check-ethers-v6-compatibility.js b/backend/scripts/check-ethers-v6-compatibility.js index 9a0f58a..84a630d 100644 --- a/backend/scripts/check-ethers-v6-compatibility.js +++ b/backend/scripts/check-ethers-v6-compatibility.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const fs = require('fs'); const path = require('path'); const { promisify } = require('util'); diff --git a/backend/scripts/check-ollama-models.js b/backend/scripts/check-ollama-models.js index 48a5e44..1e55015 100644 --- a/backend/scripts/check-ollama-models.js +++ b/backend/scripts/check-ollama-models.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const axios = require('axios'); async function checkOllamaModels() { diff --git a/backend/scripts/cleanup-sessions.js b/backend/scripts/cleanup-sessions.js index 8057e51..070d75a 100644 --- a/backend/scripts/cleanup-sessions.js +++ b/backend/scripts/cleanup-sessions.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const sessionService = require('../services/session-service'); const db = require('../db'); diff --git a/backend/scripts/deploy/create-dle-manual.js b/backend/scripts/deploy/create-dle-manual.js index d44b661..5e01d76 100644 --- a/backend/scripts/deploy/create-dle-manual.js +++ b/backend/scripts/deploy/create-dle-manual.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + // Скрипт для ручного создания DLE без использования фабрики const { ethers } = require("hardhat"); const fs = require("fs"); diff --git a/backend/scripts/deploy/current-params.json b/backend/scripts/deploy/current-params.json index 061c2ad..4a5b979 100644 --- a/backend/scripts/deploy/current-params.json +++ b/backend/scripts/deploy/current-params.json @@ -1,23 +1,23 @@ { - "name": "ест3", - "symbol": "тест3", - "location": "07522, United States, Paterson", + "name": "рога и копыта", + "symbol": "roga", + "location": "325000, 中国, 瓯海区", "isicCodes": [ - "0111" + "9000" ], "partners": [ "0xf45aa4917b3775ba37f48aeb3dc1a943561e9e0b", - "0x0a98c54327253bb51f99c8218e5a7a01933d5f57" + "0x15a4ed4759e5762174b300a4cf51cc17ad967f4d" ], "amounts": [ "1000000000000000000", - "1000000000000000000000000" + "10000000000000000000000" ], "network": "sepolia", - "minTimelockDelay": 1, - "votingDelay": 6646, + "minTimelockDelay": 5, + "votingDelay": 46523, "votingPeriod": 6646, - "proposalThreshold": "2", + "proposalThreshold": "0", "quorumPercentage": 51, "privateKey": "7de38b2ada1d23581342f106c8587ce26068797b3bc06656e24b9dcd1810c7b1" } \ No newline at end of file diff --git a/backend/scripts/fix-duplicate-identities.js b/backend/scripts/fix-duplicate-identities.js index 4e4a761..3ba0e5e 100644 --- a/backend/scripts/fix-duplicate-identities.js +++ b/backend/scripts/fix-duplicate-identities.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + /** * Скрипт для поиска и исправления дубликатов идентификаторов в базе данных */ diff --git a/backend/scripts/run-migrations.js b/backend/scripts/run-migrations.js index d2f2cff..336f253 100644 --- a/backend/scripts/run-migrations.js +++ b/backend/scripts/run-migrations.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const fs = require('fs').promises; const path = require('path'); require('dotenv').config(); diff --git a/backend/scripts/wait-for-postgres.sh b/backend/scripts/wait-for-postgres.sh index a39c7c5..6e782c5 100755 --- a/backend/scripts/wait-for-postgres.sh +++ b/backend/scripts/wait-for-postgres.sh @@ -1,3 +1,14 @@ +#!/bin/bash +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# +# This software is proprietary and confidential. +# Unauthorized copying, modification, or distribution is prohibited. +# +# For licensing inquiries: info@hb3-accelerator.com +# Website: https://hb3-accelerator.com +# GitHub: https://github.com/HB3-ACCELERATOR + #!/bin/bash set -e diff --git a/backend/server.js b/backend/server.js index 8c56c6f..70359e6 100644 --- a/backend/server.js +++ b/backend/server.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + require('dotenv').config(); const { app, nonceStore } = require('./app'); const http = require('http'); diff --git a/backend/services/admin-role.js b/backend/services/admin-role.js index 0d20973..62bef25 100644 --- a/backend/services/admin-role.js +++ b/backend/services/admin-role.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { ethers } = require('ethers'); const logger = require('../utils/logger'); const authTokenService = require('./authTokenService'); diff --git a/backend/services/ai-assistant.js b/backend/services/ai-assistant.js index 39ea83e..ddb9850 100644 --- a/backend/services/ai-assistant.js +++ b/backend/services/ai-assistant.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + console.log('[ai-assistant] loaded'); const { ChatOllama } = require('@langchain/ollama'); diff --git a/backend/services/aiAssistantRulesService.js b/backend/services/aiAssistantRulesService.js index 776eb14..80df8b7 100644 --- a/backend/services/aiAssistantRulesService.js +++ b/backend/services/aiAssistantRulesService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const TABLE = 'ai_assistant_rules'; diff --git a/backend/services/aiAssistantSettingsService.js b/backend/services/aiAssistantSettingsService.js index 0501e88..26dc5d5 100644 --- a/backend/services/aiAssistantSettingsService.js +++ b/backend/services/aiAssistantSettingsService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const TABLE = 'ai_assistant_settings'; diff --git a/backend/services/aiProviderSettingsService.js b/backend/services/aiProviderSettingsService.js index 05fcb1b..71ad0c5 100644 --- a/backend/services/aiProviderSettingsService.js +++ b/backend/services/aiProviderSettingsService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const OpenAI = require('openai'); const Anthropic = require('@anthropic-ai/sdk'); diff --git a/backend/services/auth-service.js b/backend/services/auth-service.js index be48960..81fbddb 100644 --- a/backend/services/auth-service.js +++ b/backend/services/auth-service.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const logger = require('../utils/logger'); const { ethers } = require('ethers'); diff --git a/backend/services/authTokenService.js b/backend/services/authTokenService.js index 8fffee4..70779a2 100644 --- a/backend/services/authTokenService.js +++ b/backend/services/authTokenService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); async function getAllAuthTokens() { diff --git a/backend/services/dbSettingsService.js b/backend/services/dbSettingsService.js index 085a50f..5d0c38c 100644 --- a/backend/services/dbSettingsService.js +++ b/backend/services/dbSettingsService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); class DbSettingsService { diff --git a/backend/services/dleService.js b/backend/services/dleService.js index a6a505d..976df4f 100644 --- a/backend/services/dleService.js +++ b/backend/services/dleService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { spawn } = require('child_process'); const path = require('path'); const fs = require('fs'); diff --git a/backend/services/emailAuth.js b/backend/services/emailAuth.js index 2db3415..cca784d 100644 --- a/backend/services/emailAuth.js +++ b/backend/services/emailAuth.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { pool } = require('../db'); const verificationService = require('./verification-service'); const logger = require('../utils/logger'); diff --git a/backend/services/emailBot.js b/backend/services/emailBot.js index feb8f15..f4bee79 100644 --- a/backend/services/emailBot.js +++ b/backend/services/emailBot.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + console.log('[EmailBot] emailBot.js loaded'); const db = require('../db'); const nodemailer = require('nodemailer'); diff --git a/backend/services/identity-service.js b/backend/services/identity-service.js index 532ddd8..8355f7a 100644 --- a/backend/services/identity-service.js +++ b/backend/services/identity-service.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + console.log('[identity-service] loaded'); const db = require('../db'); diff --git a/backend/services/index.js b/backend/services/index.js index 1c4ae3d..09dd329 100644 --- a/backend/services/index.js +++ b/backend/services/index.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { initTelegramBot } = require('./telegram-service'); const emailBot = require('./emailBot'); const telegramBot = require('./telegramBot'); diff --git a/backend/services/ragService.js b/backend/services/ragService.js index 1669b99..831cd6b 100644 --- a/backend/services/ragService.js +++ b/backend/services/ragService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const vectorSearch = require('./vectorSearchClient'); const { getProviderSettings } = require('./aiProviderSettingsService'); diff --git a/backend/services/rpcProviderService.js b/backend/services/rpcProviderService.js index 0a84a0e..07d6538 100644 --- a/backend/services/rpcProviderService.js +++ b/backend/services/rpcProviderService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); async function getAllRpcProviders() { diff --git a/backend/services/session-service.js b/backend/services/session-service.js index f4b7d39..55ea85f 100644 --- a/backend/services/session-service.js +++ b/backend/services/session-service.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const logger = require('../utils/logger'); const db = require('../db'); const { processGuestMessages } = require('../routes/chat'); diff --git a/backend/services/telegramBot.js b/backend/services/telegramBot.js index 6ea0f96..f90f0b7 100644 --- a/backend/services/telegramBot.js +++ b/backend/services/telegramBot.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const { Telegraf } = require('telegraf'); const logger = require('../utils/logger'); const db = require('../db'); diff --git a/backend/services/userDeleteService.js b/backend/services/userDeleteService.js index 13d04d7..28c29d6 100644 --- a/backend/services/userDeleteService.js +++ b/backend/services/userDeleteService.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); async function deleteUserById(userId) { diff --git a/backend/services/vectorSearchClient.js b/backend/services/vectorSearchClient.js index a31c2fd..64271e9 100644 --- a/backend/services/vectorSearchClient.js +++ b/backend/services/vectorSearchClient.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const axios = require('axios'); const logger = require('../utils/logger'); diff --git a/backend/services/verification-service.js b/backend/services/verification-service.js index e309d63..1e5a61e 100644 --- a/backend/services/verification-service.js +++ b/backend/services/verification-service.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const logger = require('../utils/logger'); diff --git a/backend/services/wallet-service.js b/backend/services/wallet-service.js index 3fcd0d5..30eb2f8 100644 --- a/backend/services/wallet-service.js +++ b/backend/services/wallet-service.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); const logger = require('../utils/logger'); diff --git a/backend/tests/ragService.test.js b/backend/tests/ragService.test.js index a496877..c838d8e 100644 --- a/backend/tests/ragService.test.js +++ b/backend/tests/ragService.test.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + // Принудительно устанавливаем URL для Docker-сети process.env.VECTOR_SEARCH_URL = 'http://vector-search:8001'; diff --git a/backend/tests/ragServiceFull.test.js b/backend/tests/ragServiceFull.test.js index ad101a3..8a384bb 100644 --- a/backend/tests/ragServiceFull.test.js +++ b/backend/tests/ragServiceFull.test.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + // Временно устанавливаем URL для локального тестирования process.env.VECTOR_SEARCH_URL = 'http://localhost:8001'; diff --git a/backend/tests/vectorSearchClient.test.js b/backend/tests/vectorSearchClient.test.js index 5f3256c..35438a5 100644 --- a/backend/tests/vectorSearchClient.test.js +++ b/backend/tests/vectorSearchClient.test.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const vectorSearch = require('../services/vectorSearchClient'); const TEST_TABLE_ID = 'test_table_1'; diff --git a/backend/utils/checkMail.js b/backend/utils/checkMail.js index c912771..ee207eb 100644 --- a/backend/utils/checkMail.js +++ b/backend/utils/checkMail.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const dns = require('dns'); const { promisify } = require('util'); const resolveMx = promisify(dns.resolveMx); diff --git a/backend/utils/constants.js b/backend/utils/constants.js index 2000c12..c8a34f0 100644 --- a/backend/utils/constants.js +++ b/backend/utils/constants.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + // Роли пользователей const USER_ROLES = { USER: 1, diff --git a/backend/utils/error.js b/backend/utils/error.js index d9c4fb3..91a0af7 100644 --- a/backend/utils/error.js +++ b/backend/utils/error.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + /** * Создает объект ошибки с указанным сообщением и кодом статуса * @param {string} message - Сообщение об ошибке diff --git a/backend/utils/helpers.js b/backend/utils/helpers.js index cac5b7c..3665adc 100644 --- a/backend/utils/helpers.js +++ b/backend/utils/helpers.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); // Функция для создания задержки diff --git a/backend/utils/userUtils.js b/backend/utils/userUtils.js index 3d03d4c..a999e51 100644 --- a/backend/utils/userUtils.js +++ b/backend/utils/userUtils.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const db = require('../db'); async function isUserBlocked(userId) { diff --git a/backend/wsHub.js b/backend/wsHub.js index 4d30264..631ad84 100644 --- a/backend/wsHub.js +++ b/backend/wsHub.js @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2024-2025 Тарабанов Александр Викторович + * All rights reserved. + * + * This software is proprietary and confidential. + * Unauthorized copying, modification, or distribution is prohibited. + * + * For licensing inquiries: info@hb3-accelerator.com + * Website: https://hb3-accelerator.com + * GitHub: https://github.com/HB3-ACCELERATOR + */ + const WebSocket = require('ws'); let wss = null; diff --git a/clean-logs.sh b/clean-logs.sh index cc4418d..bca5855 100755 --- a/clean-logs.sh +++ b/clean-logs.sh @@ -1,4 +1,8 @@ #!/bin/bash +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com echo "🧹 Очистка логов DApp..." diff --git a/docker-compose.local.yml b/docker-compose.local.yml new file mode 100644 index 0000000..1220944 --- /dev/null +++ b/docker-compose.local.yml @@ -0,0 +1,18 @@ +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + +volumes: + postgres_data: + external: true + name: dapp-for-business_postgres_data + ollama_data: + external: true + name: dapp-for-business_ollama_data + vector_search_data: + external: true + name: dapp-for-business_vector_search_data + frontend_node_modules: + external: true + name: dapp-for-business_frontend_node_modules \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 03e48b2..623a1b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,8 @@ +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + services: postgres: image: postgres:16-alpine diff --git a/docs/DLE_Governance_System.md b/docs/DLE_Governance_System.md index 177beec..c9652b9 100644 --- a/docs/DLE_Governance_System.md +++ b/docs/DLE_Governance_System.md @@ -1,3 +1,15 @@ + + # DLE Governance System - Документация ## 📋 Обзор системы diff --git a/docs/RAG_ASSISTANT_INTEGRATION.md b/docs/RAG_ASSISTANT_INTEGRATION.md index 0f49196..de6ce82 100644 --- a/docs/RAG_ASSISTANT_INTEGRATION.md +++ b/docs/RAG_ASSISTANT_INTEGRATION.md @@ -1,3 +1,15 @@ + + # Интеграция RAG-ассистента для бизнеса с поддержкой продуктов, сегментов клиентов и LLM ## Цель diff --git a/docs/RAG_TASKS.md b/docs/RAG_TASKS.md index 76b275d..8d44bae 100644 --- a/docs/RAG_TASKS.md +++ b/docs/RAG_TASKS.md @@ -1,3 +1,15 @@ + + # Внедрение RAG-ассистента: поэтапный план --- diff --git a/docs/SOFT_DESCRIPTION.md b/docs/SOFT_DESCRIPTION.md index 3c8831e..d78098d 100644 --- a/docs/SOFT_DESCRIPTION.md +++ b/docs/SOFT_DESCRIPTION.md @@ -1,3 +1,15 @@ + + # DApp for Business ## Краткое описание diff --git a/docs/WEB_SSH_TUNNEL_PLAN.md b/docs/WEB_SSH_TUNNEL_PLAN.md index c060cae..817f329 100644 --- a/docs/WEB_SSH_TUNNEL_PLAN.md +++ b/docs/WEB_SSH_TUNNEL_PLAN.md @@ -1,3 +1,15 @@ + + # Автоматизация публикации локального приложения через SSH-туннель и NGINX ## Описание задачи diff --git a/docs/interactive-content-sharing.md b/docs/interactive-content-sharing.md index d285392..601e12a 100644 --- a/docs/interactive-content-sharing.md +++ b/docs/interactive-content-sharing.md @@ -1,3 +1,15 @@ + + # Интерактивный обмен веб-страницами с ИИ-ассистентом в корпоративном чате ## Описание задачи diff --git a/docs/rag-assistant-details.md b/docs/rag-assistant-details.md index d40b1c8..7b3518d 100644 --- a/docs/rag-assistant-details.md +++ b/docs/rag-assistant-details.md @@ -1,3 +1,15 @@ + + # VC HB3 - Accelerator: Детали задания для ИИ-ассистента ## 1. Описание проекта diff --git a/docs/user-tables-relation-task.md b/docs/user-tables-relation-task.md index 0aeee36..4832026 100644 --- a/docs/user-tables-relation-task.md +++ b/docs/user-tables-relation-task.md @@ -1,3 +1,15 @@ + + # Техническое задание: Пользовательские таблицы с настраиваемыми связями ## Цель diff --git a/docs/vector-search-service.md b/docs/vector-search-service.md index e849fee..b9d7a8c 100644 --- a/docs/vector-search-service.md +++ b/docs/vector-search-service.md @@ -1,3 +1,15 @@ + + # Техническое задание: Векторный сервис поиска по таблице ## Цель diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 83023c6..5f22d1b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,21 @@ +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + +# Copyright (c) 2024-2025 Тарабанов Александр Викторович +# All rights reserved. +# This software is proprietary and confidential. +# For licensing inquiries: info@hb3-accelerator.com + FROM node:20-alpine +# Добавляем метки для авторских прав +LABEL maintainer="Тарабанов Александр Викторович " +LABEL copyright="Copyright (c) 2024-2025 Тарабанов Александр Викторович" +LABEL license="Proprietary" +LABEL website="https://hb3-accelerator.com" + WORKDIR /app # Устанавливаем дополнительные зависимости diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 71fa492..d1d149f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,3 +1,15 @@ + +