Skip to content

feat: pivot to Cursor for Data — dataset-understanding CLI + web verification#1

Merged
kiyeonjeon21 merged 6 commits into
mainfrom
feat/cli-relationship-discovery
Jun 17, 2026
Merged

feat: pivot to Cursor for Data — dataset-understanding CLI + web verification#1
kiyeonjeon21 merged 6 commits into
mainfrom
feat/cli-relationship-discovery

Conversation

@kiyeonjeon21

Copy link
Copy Markdown
Contributor

Pivot: "AI-powered SQL editor" → "Cursor for Data"

Turns QueryPad into a local-first AI workspace that understands datasets before generating SQL — discovers relationships, builds semantic models, answers questions, and lets users verify the inferred graph.

What's in this PR

CLI (querypad, native @duckdb/node-api)

  • inspect <folder> — profile files, infer foreign-key relationships with confidence, build a semantic model; writes .querypad/{schema.json, relationships.json, semantic-model.yaml, inspect-summary.md}
  • ask "<q>" <folder> — NL → relationship-aware SQL → DuckDB → insight (read-only-gated, env-var BYOK)
  • explain <folder> — justify each relationship from its signals, with caveats

Web app

  • Relationships panel: runs the same discovery engine in the browser (DuckDB-Wasm); Accept / Reject / Edit inferred joins, verdicts + edits persist (IndexedDB)

Engine-agnostic core (src/lib/discovery) shared by CLI (Node) and web (Wasm) via a QueryRunner abstraction — no logic duplicated.

Verification

  • npm run test:cli 27/27 (now enforced in CI)
  • npm run check (lint / typecheck / build)
  • npm test e2e 9/9

Notes

  • Positioning reframed across README / ROADMAP / CHANGELOG; GitHub About/topics + package.json updated.
  • Version stays 0.6.0 (all changes under CHANGELOG "Unreleased").

🤖 Generated with Claude Code

kiyeonjeon21 and others added 6 commits June 18, 2026 00:04
CLI-first "Cursor for Data" engine alongside the web app:
- querypad inspect: profile a folder, infer FK relationships with confidence
- querypad ask: NL question -> relationship-aware SQL -> DuckDB -> insight
- engine-agnostic discovery core shared by browser (Wasm) and CLI (@duckdb/node-api)
- read-only gate + code-fence stripping on AI-generated SQL; env-var BYOK keys
- web: data profiling, profile drawer, copy-agent-context, multi-provider BYOK

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reframe README, roadmap, contributor + agent guides, and changelog around
dataset understanding (inspect + ask) instead of an AI SQL editor; publish ROADMAP.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- inspect rolls inferred relationships into named entities (User has_many Payment, ...)
  and writes .querypad/semantic-model.yaml; ask feeds those entities as domain context
- querypad explain: justify each inferred relationship from its stored signals
  (value overlap, name match, type, cardinality) with caveats to verify

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Sidebar Relationships panel runs discovery in the browser (DuckDB-Wasm) and lets the
  user Accept/Reject/Edit inferred joins; verdicts + edits persist to IndexedDB
- reuses the engine-agnostic src/lib/discovery core (relationshipKey, buildExplanation) —
  no logic duplicated between CLI and web
- add a browser QueryRunner adapter; run npm run test:cli in CI

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- document the Relationships panel in CHANGELOG/README/ROADMAP
- package.json description + keywords reframed to the pivot (GitHub About already updated)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypad Building Building Preview, Comment Jun 17, 2026 4:42pm

Request Review

@kiyeonjeon21 kiyeonjeon21 merged commit c5695e6 into main Jun 17, 2026
1 of 2 checks passed
@kiyeonjeon21 kiyeonjeon21 deleted the feat/cli-relationship-discovery branch June 17, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant