code refactoring and agent improvement

This commit is contained in:
DenAntonov
2025-06-14 23:35:48 +03:00
parent bd0b11dc4a
commit 5665c4bf1e
9 changed files with 111 additions and 487 deletions

View File

@@ -6,10 +6,8 @@ let supabase = null;
let initializationPromise = null;
async function initSupabaseClient() {
console.log('🔄 [Supabase Client] Начинаем инициализацию...');
try {
console.log('🔄 [Supabase Client] Получаем конфигурацию...');
const supabaseUrl = await getSupabaseUrl();
const supabaseAnonKey = await getSupabaseKey();
const supabaseServiceRoleKey = await getSupabaseServiceKey();
@@ -49,7 +47,6 @@ router.post('/refresh-supabase-client', async (req, res) => {
// GET /supabase-client-status
router.get('/supabase-client-status', (req, res) => {
console.log('🔍 [Supabase Client] Проверяем статус клиента...');
const isInitialized = !!supabase;