Skip to content

feat: config/SQL parsers + more endpoint frameworks#70

Merged
joy-software merged 1 commit into
developfrom
feat/parsers-coverage
Jun 7, 2026
Merged

feat: config/SQL parsers + more endpoint frameworks#70
joy-software merged 1 commit into
developfrom
feat/parsers-coverage

Conversation

@joy-software

Copy link
Copy Markdown
Contributor

Batch C (FEAT-7, FEAT-8, FEAT-9; FEAT-13 deferred).

  • FEAT-9endpoints.py gains Django (path/re_path), NestJS (@Get), Spring (@GetMapping), Gin/Echo (r.GET).
  • FEAT-7parsers/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.
  • FEAT-8parsers/sql.py: CREATE TABLE / ALTER TABLE ADD COLUMN into table:<name> sections (no new graph node types, so no schema churn).
  • FEAT-13 deferred: C#/Ruby tree-sitter grammars aren't installed and aren't in pyproject; adding them needs a dependency decision. Not touched.

Tests: 176 parser/indexer tests passed (incl. round-trip index_file for SQL tables, package.json sections, Go endpoints).

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.
@joy-software joy-software merged commit 4d96f44 into develop Jun 7, 2026
8 checks passed
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