idx-cli/crates/idx-core/src
hermes 1796e58105 feat(news): rank this company's news first and label each item
MSN's feed for a stock is often mostly general market news: of 10 items,
ADRO, BREN and CUAN had none about the company, BBRI one, yet they were
presented as the company's news. Fetch at least 50 items, label each
`relevance: company` (tagged by MSN with the stock's instrument id, or
naming the ticker or the company) or `market`, and return company items
first, newest first, trimmed to --limit.

Company names come from the quote's short and display names, best
effort: MSN tags Telkom articles with its NYSE ADR, not TLKM, so names
catch what tags miss. Classification stays a pure function in parse_news.

Output change, intentional: news JSON gains `relevance`, the table an
ABOUT column (goldens regenerated), and the get_company tool description
explains the field (tools.json and the website tools page regenerated).
News cache keys change so entries without the field are not reused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
2026-10-16 09:54:30 +00:00
..
analysis refactor(core): move stocks fetching, caching, and analysis into idx-core 2026-10-14 09:41:31 +00:00
api feat(news): rank this company's news first and label each item 2026-10-16 09:54:30 +00:00
ownership fix: readers lock read-only instead of skipping, one path per sync 2026-10-14 23:00:26 +00:00
cache.rs fix: close the remaining review findings (cross-process lock, partials) 2026-10-14 22:20:57 +00:00
client.rs refactor(core): move ownership queries, import, and sync into idx-core 2026-10-14 09:52:17 +00:00
config.rs refactor(core): move ownership queries, import, and sync into idx-core 2026-10-14 09:52:17 +00:00
curl_impersonate.rs refactor: split into idx-core library and idx-cli binary workspace 2026-10-14 09:13:46 +00:00
error.rs feat(mcp): add idx-mcp, a stdio MCP server over idx-core 2026-10-14 18:19:04 +00:00
financial.rs feat(news): rank this company's news first and label each item 2026-10-16 09:54:30 +00:00
investor.rs fix: readers lock read-only instead of skipping, one path per sync 2026-10-14 23:00:26 +00:00
lib.rs refactor(core): move ownership queries, import, and sync into idx-core 2026-10-14 09:52:17 +00:00
market.rs refactor(core): move stocks fetching, caching, and analysis into idx-core 2026-10-14 09:41:31 +00:00