feat: per-module metadata front-matter block in llms-full.txt - #79
Conversation
Each module section in `llms-full.txt` now optionally includes a structured YAML metadata block containing: - language: The module's programming language. - exports: List of top-level functions, classes, and constants. - imports: List of module-level imports (currently for Python and TypeScript). - routes: List of HTTP routes (method and path). This feature is opt-in via the `--emit-frontmatter` CLI flag or by setting `emit_frontmatter = true` in the `[tool.llmstxt_gen]` section of `pyproject.toml`. Extraction of imports is implemented for: - Python: handles `import`, `import as`, and `from ... import` (including relative). - TypeScript: handles `import ... from '...'` and direct `import '...'`. YAML generation uses JSON encoding for lists to ensure safe escaping. Co-authored-by: wuzzzzaah <1645504+wuzzzzaah@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adding per-module metadata front-matter block in llms-full.txt. Added
emit_frontmattertoLlmsTxtConfig,importstoParsedModule, and--emit-frontmatterflag to CLI. Implemented import extraction in Python and TypeScript parsers. Updatedrender_fullto emit YAML block when enabled. Added relevant tests.Fixes #63
PR created automatically by Jules for task 11875131242123459741 started by @wuzzzzaah