Disclose downstream AGPL changes
From the PR description
This PR discloses the complete downstream source changes made to this AGPL-3.0 project. It is intentionally broad so the original maintainer can inspect the full modified codebase in one place. Smaller topic PRs are also open for easier review.
Scope
- Full downstream application source disclosure from the current working codebase.
- Includes backend, frontend, database, Supabase config, tests, CI, and README updates.
- Excludes local planning files and machine-local artifacts.
Database and Supabase
- Replaces the old single
backend/schema.sqlsetup path withnode-pg-migratemigrations. - Adds one-shot fresh database schema SQL at
backend/migrations/000_one_shot_schema.sql. - Adds RLS policies, auth lookup RPCs, workflow sharing checks, encrypted API key columns, soft-delete profile support, and account deletion jobs.
- Adds local Supabase CLI config under
supabase/.
Backend
- Splits the large chat tooling module into focused files for citations, document context, streaming, schemas, tool running, workflow loading, and individual tools.
- Adds account deletion, restore token handling, encrypted user model keys, request logging, LLM rate limiting, PDF queue helpers, validation helpers, and a models endpoint.
- Updates auth, storage, upload, project, document, tabular, workflow, user, download, and LLM provider behavior.
Frontend
- Updates account, project, document, assistant, workflow, and tabular review flows.
- Moves shared providers, contexts, logo, Supabase client, and utilities into the app tree.
- Adds account deletion UI, manifest context, project document panels, explorer panels, and a shared panel divider.
Tests and CI
- Adds Vitest suites for auth hardening, cross-tenant access, DOCX round trips, golden log/SSE behavior, integration flows, saga behavior, and units.
- Adds fixtures and mocks for R2/document workflows.
- Adds DOCX CI workflow coverage.
Documentation
- Rewrites the README with setup, environment, database, local run, feature, test, deployment, troubleshooting, and license guidance.
Related Smaller PRs
- #128 - Frontend app and project workflow updates.
- #129 - Backend test coverage and CI workflow.
- #130 - Database migrations and Supabase config.
- #131 - Backend hardening and route changes.
Review Note
- This is the full disclosure branch. If the maintainer prefers incremental review, the smaller PRs above split the same downstream work by area.
Our analysis
Disclose full downstream Mike fork to upstream — read the full analysis →
Think the analysis missed something the PR description covers?
Capture this PR into my fork
Download a Markdown prompt that tells Claude how to port every
commit in this PR into your working tree. Run it via
claude -p < capture-pull-127.md from
inside the repo you want the changes in.