diff --git a/.env.example b/.env.example index ec5fa1f..9b13a17 100644 --- a/.env.example +++ b/.env.example @@ -26,7 +26,7 @@ VIETQR_ENABLED=true # Storage STORAGE_PROVIDER=supabase # supabase | memory SUPABASE_URL=https://xyz.supabase.co -SUPABASE_ANON_KEY=... +SUPABASE_SERVICE_ROLE_KEY=server-only-secret # Rate limit guards (optional overrides) MAX_CONCURRENT_RESEARCH=1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b43b8af..5c3f7a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,5 +34,13 @@ jobs: - name: Test run: npm test + - name: Database integration tests + run: | + npx supabase start + eval "$(npx supabase status -o env)" + SUPABASE_TEST_URL="$API_URL" SUPABASE_TEST_SERVICE_ROLE_KEY="$SERVICE_ROLE_KEY" SUPABASE_TEST_ANON_KEY="$ANON_KEY" npm run test:db + npx supabase stop --no-backup + - name: Build run: npm run build + diff --git a/.gitignore b/.gitignore index 01ab0a9..83272c7 100644 --- a/.gitignore +++ b/.gitignore @@ -49,4 +49,5 @@ next-env.d.ts .worktrees/ # temp fixtures -/tmp/ \ No newline at end of file +/tmp/ +supabase/.temp/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 1720aaf..9b0f815 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile — PartnerIQ (Google Cloud Run / Production) # ═══════════════════════════════════════════════════════ -FROM node:20-alpine AS base +FROM node:22-alpine AS base # Step 1: Install dependencies FROM base AS deps diff --git a/README.md b/README.md index 299114b..106adce 100644 --- a/README.md +++ b/README.md @@ -1,535 +1,148 @@ # PartnerIQ (TechBridgeAI) 🚀 -> **AI-Powered Corporate Intelligence & Collaboration Intelligence Platform** -> Nền tảng thẩm định doanh nghiệp thông minh tự động: Thu thập dữ liệu đa nguồn độc lập, tổng hợp hồ sơ chuẩn hóa qua LLM, đánh giá điểm phù hợp hợp tác (Collaboration Fit Score), theo dõi biến động lịch sử (Diff Engine) và xuất báo cáo One-Pager PDF chuyên nghiệp. +> **AI-Powered Corporate Intelligence & Collaboration Fit Platform** +> Nền tảng thẩm định doanh nghiệp thông minh: Tự động thu thập dữ liệu đa nguồn từ Internet, chuẩn hóa hồ sơ 360° qua LLM, chấm điểm tiềm năng hợp tác kinh doanh (Fit Score), nhận diện biến động theo thời gian và xuất báo cáo PDF One-Pager chuyên nghiệp. [](https://github.com/devonxjz/TechBridgeAI/actions/workflows/ci.yml) -[](https://vitest.dev/) +[](https://vitest.dev/) [-black?logo=next.js)](https://nextjs.org/) [](https://langchain.com/) +[](https://langchain.com/) +[](https://openai.com/) +[](https://supabase.com) [](https://langfuse.com/) -[](https://www.typescriptlang.org/) -[](https://openai.com/) -[](https://supabase.com) [](https://opensource.org/licenses/MIT) --- -## 🖼️ Tổng Quan Kiến Trúc Hệ Thống (System Overview) +## 🖼️ Kiến Trúc Hệ Thống (System Architecture)
- Hình 1: Kiến trúc tổng thể hệ sinh thái PartnerIQ (TechBridgeAI) — Tương tác đa nguồn, xử lý lõi AI, lưu trữ đa phiên bản và xuất bản tài liệu.
+
+ Kiến trúc tổng thể hệ sinh thái PartnerIQ — Quy trình thu thập đa nguồn, điều phối LangGraph, xử lý AI, lưu trữ Supabase và xuất bản báo cáo.
+ Chúng tôi tìm thấy dữ liệu đã lưu có tên tương tự. +
++ Chọn một hồ sơ có sẵn để tải ngay dữ liệu hoặc tiếp tục nghiên cứu mới + toàn diện. +
+Nhận định chuyên gia (Executive Summary)
-- {report.executiveSummary} -
+ +{sa.reasoning}
-- {profile.description} -
+ ++ {profile.description} +
+ + Kiểm chứng ↗ + +{person.name}
++ {person.name} + + ↗ + +
{person.title}
{act.title}
+ +{act.title}
+ + Xem chứng cứ ↗ + +{act.summary}
-{label}
+ + ↗ + +{value}
+ + ); + } + return ( -{label}
{value}
+ {f.summary} +
+ + ); + })}{state.notice}
+