rtk-ai/rtk

Add RTK wrapper / filter for supabase db CLI

Open

#1995 aperta il 20 mag 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clienhancementhelp wantedpriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 11g 1h) (45 PR mergiate in 30 g)

Descrizione

Context

Using RTK 0.39.0 with Claude Code on macOS. rtk discover over the last 30 days flags supabase db as a sustained unhandled command in Next.js + Supabase projects:

Command Count (30d) Example
supabase db 126 supabase db push / pull / lint / diff

Why it matters

  • supabase db push / pull: each emits long migration-summary tables (table list + colored diff hints) that share repeated columns. Easy compression target (keep migration names + counts, strip ANSI / progress).
  • supabase db diff: SQL diff output is verbose; a --name-only-style summary or grouping by table would help in agent contexts.
  • supabase db lint: results are usually a small set of advisor warnings repeated many times — dedup + count would be a big win.

Suggested approach

Add a supabase filter similar to existing npm / npx / vercel (proposed in #1255) filters:

  • strip ANSI / spinner
  • dedup + summarize advisor rows
  • compress migration/diff tables (table name + counts; drop padding)

No supabase-related issue exists in the repo as of 2026-05-20 (searched supabase, supabase db, and Add RTK wrapper). Filing this so the data is on record.

Environment

  • rtk 0.39.0
  • macOS (Darwin 25.4.0)
  • Claude Code PreToolUse hook

Guida contributor