Skip to content

feat: RF keyword library scan endpoint and SpecEditor help text#7

Merged
raffelino merged 1 commit intomainfrom
feat/keyword-library-docs
Mar 10, 2026
Merged

feat: RF keyword library scan endpoint and SpecEditor help text#7
raffelino merged 1 commit intomainfrom
feat/keyword-library-docs

Conversation

@raffelino
Copy link
Copy Markdown
Collaborator

Summary

Adds a backend endpoint to scan installed Robot Framework libraries for their keywords, and surfaces contextual help text in the SpecEditor.

  • New API endpoint: scans RF library keywords from a given environment
  • SpecEditor now shows inline help/documentation for keywords
  • Improves discoverability of available keywords while writing tests

Changes

  • feat: add RF keyword library scan endpoint and SpecEditor help text

Add GET /environments/{env_id}/packages/rf-libraries endpoint that scans
installed packages and identifies Robot Framework keyword libraries using
known PyPI-to-library mappings and heuristics. Add help text in the
SpecEditor library input explaining how to use custom/internal libraries.

- Add identify_rf_libraries() to library_mapping.py with reverse mapping
- Add PYPI_TO_LIBRARY reverse dict for known package→library resolution
- New endpoint returns library_name, package_name, version, source
- SpecEditor: help text below library autocomplete (i18n EN/DE/FR/ES)
- 7 new tests for identify_rf_libraries (known, heuristic, exclusion)
- 2 new router tests for rf-libraries endpoint

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raffelino raffelino merged commit 96950b9 into main Mar 10, 2026
1 check passed
@raffelino raffelino deleted the feat/keyword-library-docs branch March 10, 2026 09:10
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