v0.2.2: cursor pagination for search/browse/map, hierarchy child disclosure
cursor pagination for search/browse/map, hierarchy child disclosure
Opaque cursor/nextCursor continuation replaces silent capping on the three list-shaped tools, backed by one shared limit+1 pagination primitive.
Added:
- cursor/nextCursor pagination on medcode_search_codes, medcode_browse_hierarchy, and medcode_map_codes (children, name_to_rxcui) (#16, #17, #18)
- childrenTruncated flag on medcode_get_code when includeHierarchy is set (#16)
- CodeIndexService.fetchPage — shared limit+1 primitive with deterministic ORDER BY tie-breakers
Fixed:
- browse_hierarchy children were capped at MEDCODE_MAX_RESULTS regardless of the requested limit, with shown/cap/truncated computed against the input limit instead of the actual result (#16)
- search_codes's truncated used a rows.length >= cap heuristic that false-positived at an exact-cap match count (#17)
118 tests pass; bun run devcheck clean.