Skip to content

feat(mapper): add FastAPI route mapping#15

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
mbelinky:codex/fastapi-root-python-mapping
May 16, 2026
Merged

feat(mapper): add FastAPI route mapping#15
vincentkoc merged 1 commit into
openclaw:mainfrom
mbelinky:codex/fastapi-root-python-mapping

Conversation

@mbelinky
Copy link
Copy Markdown
Contributor

Summary

  • Add FastAPI route feature mapping for Python projects, including root-level app files and web/ source roots.
  • Detect Python web/test frameworks from Python dependency metadata.
  • Update README, docs, and static site copy for Python and FastAPI mapping coverage.

Why

Python projects can expose their web entrypoints through root-level app files and FastAPI decorators. Mapping those as route-sized features gives review runs better coverage than broad source groups alone.

Validation

  • pnpm typecheck
  • pnpm test -- src/mapper.test.ts
  • pnpm lint
  • pnpm build
  • Local dry-run against a FastAPI/Python repository confirmed root app files and route-sized FastAPI features are produced

Red-team notes

  • FastAPI route mapping requires per-file FastAPI imports before parsing decorator routes.
  • Decorator targets are limited to app/router/api-style identifiers to avoid generic client/helper method decorators.
  • Known limitation: mounted router prefixes are not expanded into full deployed paths in this first pass.
  • Known limitation: non-literal route paths or methods are intentionally skipped/defaulted rather than guessed.

@vincentkoc vincentkoc force-pushed the codex/fastapi-root-python-mapping branch from 37e1fa6 to 8e3c3d5 Compare May 16, 2026 17:01
@vincentkoc vincentkoc marked this pull request as ready for review May 16, 2026 17:01
@vincentkoc vincentkoc force-pushed the codex/fastapi-root-python-mapping branch from 8e3c3d5 to 7e561a5 Compare May 16, 2026 17:03
@vincentkoc vincentkoc merged commit 5cdc6ab into openclaw:main May 16, 2026
3 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.

2 participants