Skip to content

v0.3.0

Choose a tag to compare

@timofriedlberlin timofriedlberlin released this 10 Apr 11:44
· 113 commits to main since this release

Added

  • Multi-variable pattern SELECT — SELECT a, b FROM pattern now returns both nodes per match. A new ResultTypeRows result type is introduced; the compiler generates aliased SQL columns to avoid name collisions. Field-level cross-variable selectors (SELECT a.name, b.name) also fixed. CLI table and JSON output handle the new result type.

  • QueryResult.Rows []map[string]any — new field on graph.QueryResult for multi-variable pattern query results.

Fixed

  • go:ref nodes had malformed URIs with a double-slash — pos.Filename is an absolute path; appending it produced go+file:///…/ref//abs/path. Fixed by making the filename module-relative before building the URI. Affects all go:ref nodes; correct URIs regenerated on next axon init.

  • axon search and axon context displayed wrong file paths — both shortenPath implementations used hardcoded heuristics that failed for projects not named axon. Replaced with filepath.Rel(cwd, path), falling back to last-3-components only when the path is outside CWD.

  • axon context showed "0 files, 0 tokens" with no explanation — when symbols were not found, a hint is now shown listing the searched symbols and suggesting alternatives.