Skip to content

v1.2.0 — Python & Go parsing, smarter ranking

Choose a tag to compare

@fahmymohsen777-cmd fahmymohsen777-cmd released this 01 Dec 22:56
· 18 commits to main since this release

DevOS 1.2 widens the scanner's real parsing to Python and Go, makes context ranking actually smart, and closes the test-coverage gap the v1.1 review called out.

Tree-sitter parsing for Python and Go (WASM). Symbols, imports and exports now come from real grammar parses — a def inside a docstring is no longer a symbol, and Python's quote-free imports (import x, from x import y), which the old patterns could not see at all, are edges now. Go exports follow Go's own capitalization rule. Grammars ship as ordinary dependencies with lazy, fail-soft loading; no native binaries, so the single-file npm bundle keeps working. Other languages keep the pattern fallback.

Ranking v2. Context selection tokenizes identifiers (authenticateUser -> {authenticate, user}), weights terms by inverse document frequency, scores files by path + best symbol instead of raw match counts (term-stuffing loses), and boosts files import-coupled to a strong match. Deterministic and offline. An evaluation fixture where the old counter ranked the wrong file first is now a regression test.

Tests. New suites for core (4), storage (5), provider-router (5), CLI end-to-end (4) and the tree-sitter scanner paths (6) — every suite runs in CI. Scanner: 122 pass / 0 fail; 40 more across the other eight suites.

Install: npx devos-os@1.2.0 — npm: https://www.npmjs.com/package/devos-os