Skip to content

Include source line numbers in query result locations #5

Description

@AshwaniKharwar

Summary

Add source line numbers to query-result locations so AI agents and developers can open the relevant code directly, reducing exploratory reads and token usage.

Proposed behavior

  • Preserve each node's parsed source line in flow/query steps.
  • Render known locations as path/to/file.py:line in the Markdown result table.
  • Keep the current file-only output when line metadata is unavailable.

Acceptance criteria

  • Query/flow result steps include the parsed line number when available.
  • Markdown output appends the line number only for known values.
  • Existing consumers retain their current fields and behavior.
  • Tests cover known and unknown source-location cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions