nl2sql-copilot / app /routers

Commit History

Sync from GitHub main @ 8f40ad2807fc87dbdaae076316a949ce2aa8d865
4596e5b

github-actions[bot] commited on

Sync from GitHub main @ 4b3bc9bc0c27e87ea37007ad2484ce3e84bc6de1
ddd54ed

github-actions[bot] commited on

Sync from GitHub main @ bb85132be0e6ce9fb3b72683c3321f8a7056eeb6
3a2092d

github-actions[bot] commited on

Sync from GitHub main
c758204

github-actions[bot] commited on

Sync from GitHub main
b1d64ab

github-actions[bot] commited on

Sync from GitHub main
0ae19f1

github-actions[bot] commited on

Sync from GitHub main
82e122c

github-actions[bot] commited on

fix(sqlite): add safe fallback and migrate debug prints to logging
8143b24

Melika Kheirieh commited on

chore(debug): add runtime logs to inspect DEFAULT_SQLITE_PATH resolution
6e9c311

Melika Kheirieh commited on

chore(debug): add runtime logs to inspect DEFAULT_SQLITE_PATH resolution
d6dd84b

Melika Kheirieh commited on

fix(pipeline): enforce demo SQLite fallback when no db_id is provided
90ed5d1

Melika Kheirieh commited on

fix(pipeline): enforce demo SQLite fallback when no db_id is provided
b34bcc9

Melika Kheirieh commited on

chore: track data/demo.db and update gitignore
dacecff

Melika Kheirieh commited on

feat(api): expose executor result in NL2SQLResponse and return full result to UI
3ef53b4

Melika Kheirieh commited on

feat(metrics): enable repair tracking and Prometheus lifecycle for observability
666306b

Melika Kheirieh commited on

fix: resolve SQLite path mismatch and ambiguity false positives
72e96d1

Melika Kheirieh commited on

fix(adapter): add fallback lookup for uploaded DBs in /tmp/nl2sql_dbs
f8b2087

Melika Kheirieh commited on

fix(sqlite): unify adapter path resolution and load from env for stable pipeline execution
4c2cf14

Melika Kheirieh commited on

feat(metrics): instrument in-memory NL→SQL cache with hit/miss counters
e51bd0f

Melika Kheirieh commited on

feat(api): add /health endpoint
d53014f

Melika Kheirieh commited on

feat(auth): guard core endpoints with X-API-Key (dev-friendly)
78a30b1

Melika Kheirieh commited on

feat(cache): add lightweight in-memory TTL cache for NL→SQL responses
773ba18

Melika Kheirieh commited on

feat(pipeline): auto-derive schema_preview when db_id is provided
3954d57

Melika Kheirieh commited on

feat(api): add /schema endpoint for database introspection
78914bb

Melika Kheirieh commited on

fix(router): align _select_adapter with upload_db via shared DB_MAP + TTL cleanup
c76014a

Melika Kheirieh commited on

feat(metrics): integrate Prometheus; expose /metrics; instrument safety & verifier
c24bfe8

Melika Kheirieh commited on

feat(trace): standardize StageTrace (add summary) and coerce duration_ms to int at API boundary
79a5f4a

Melika Kheirieh commited on

test-mode: stub runner in router; factory stubs accept positional calls
72c0821

Melika Kheirieh commited on

fix(router): lazy pipeline build for pytest; fix(factory): stubs accept positional/keyword args
575394d

Melika Kheirieh commited on

refactor(core): DI-ready Pipeline; add registry + YAML factory + typed trace/result
2d682e2

Melika Kheirieh commited on

refactor(core): DI-ready Pipeline; add registry + YAML factory + typed trace/result
343ad62

Melika Kheirieh commited on

fix(router): coerce trace.duration_ms to int in response (_round_trace)
6181651

Melika Kheirieh commited on

refactor(router): inject pipeline via Depends(get_runner); preserve error dump logging
9c10293

Melika Kheirieh commited on

test(router): use _RUN hook to fake pipeline.run in router tests
e535857

Melika Kheirieh commited on

test(router): monkeypatch _pipeline.run instead of nl2sql.Pipeline.run
64907d7

Melika Kheirieh commited on

fix(router): re-export Pipeline via alias to satisfy test monkeypatch; remove duplicate import
787d215

Melika Kheirieh commited on

fix(router): avoid Pipeline redefinition; expose Pipeline via import for test monkeypatch
1f5cc07

Melika Kheirieh commited on

fix(types): avoid mypy no-redef in nl2sql_handler by predeclaring pipeline_obj
ba06dd4

Melika Kheirieh commited on

fix(api): map FinalResult → HTTP (200/400) and stabilize nl2sql handler; prevent 500s in tests
9b94364

Melika Kheirieh commited on

fix(api): map FinalResult → HTTP (200/400) and stabilize nl2sql handler; prevent 500s in tests
d5f745f

Melika Kheirieh commited on

fix(typing): split adapter vars in /readyz to satisfy mypy
99fa656

Melika Kheirieh commited on

fix(api): make adapter non-optional within branch and annotate pipeline for mypy
e7d7c61

Melika Kheirieh commited on

fix(router): make final_preview assignment mypy-safe (ensure always str)
d85610e

Melika Kheirieh commited on

fix(router): make _db type-safe and clean up nl2sql_handler preview logic
c1d4d02

Melika Kheirieh commited on

tests green: fix pipeline reference in router and adjust verifier logic for aggregation & error handling
6a94b42

Melika Kheirieh commited on

fix(mypy): add types-requests, validate numeric inputs, enforce non-null schema_preview
977a885

Melika Kheirieh commited on

fix(pipeline): align backend-frontend schema and stabilize SQL flow
370553a

Melika Kheirieh commited on

style: format code with ruff
5cbfffe

Melika Kheirieh commited on

feat(demo): add initial Gradio UI with optional SQLite upload
b568b83

Melika Kheirieh commited on

tests: fix import-time KeyError by ensuring OPENAI_ in conftest and lazy-import router in test_ambiguity
1fa9a31

Melika Kheirieh commited on