feat: config/SQL parsers + more endpoint frameworks#70
Merged
Conversation
Endpoint extraction now covers Django urlpatterns, NestJS decorators, Spring @*Mapping annotations, and Gin/Echo router calls alongside the existing FastAPI / Express / Nuxt support. New config-as-data parsers (JSON / TOML / YAML) replace the previous bare-File stubs: each top-level key plus one nested level becomes a section in the existing MdSection model, with k8s kind/name and GitHub Actions jobs surfaced. A SQL DDL parser turns CREATE TABLE and ALTER TABLE ... ADD COLUMN into table:<name> sections that list their columns. No new graph node types or schema changes. Parsers degrade cleanly on malformed input. Tests cover every new endpoint framework, config parsing, SQL DDL, and a round-trip index_file landing in the graph.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch C (FEAT-7, FEAT-8, FEAT-9; FEAT-13 deferred).
endpoints.pygains Django (path/re_path), NestJS (@Get), Spring (@GetMapping), Gin/Echo (r.GET).parsers/config_data.py: JSON/JSONC, TOML (stdlib), YAML (PyYAML, already a dep, with an indent-scan fallback) parsed into the existing MdSection model (top-level + one nested level become sections; k8s kind/name, package.json scripts, etc). Replaced the old bare YAML/TOML/JSON stubs.parsers/sql.py:CREATE TABLE/ALTER TABLE ADD COLUMNintotable:<name>sections (no new graph node types, so no schema churn).Tests: 176 parser/indexer tests passed (incl. round-trip index_file for SQL tables, package.json sections, Go endpoints).