How ethosagent/tools-india-news works
This package gathers Indian corporate announcements, earnings dates, and financial RSS news, caches them locally, and serves them through Ethos tools or a standalone CLI. The main workflow is a tool or CLI request, stale-cache refresh from the relevant source fetchers, persistence in SQLite, then filtered/searchable results. The graph also shows the direct BSE, NSE, and RSS ingestion paths and the schema layer. Some tool and CLI implementation is excerpted only in part; edges reflect shown calls or README-documented capabilities.
Main entry points: tools.ts Agent news tools · cli.ts CLI commands · store.ts NewsStore · bse-fetcher.ts BSE announcements
Components 14
User interfaces
- CLI commands
src/cli.ts - Agent news tools
src/tools.ts
Source ingestion
- BSE announcements
src/bse-fetcher.ts - NSE filings and earnings
src/nse-fetcher.ts - RSS news feeds
src/rss-fetcher.ts
Local data
- NewsStore
src/store.ts - SQLite schema
src/schema.ts
External systems
- Local SQLite database
- BSE India
- NSE India
- ET, BS, Moneycontrol
- Ethos tool host
Other components
- CLI user
- Ethos agent
Connections 16
- CLI user → CLI commands: runs commands
README.md - CLI commands → BSE announcements: fetches filings
src/cli.ts - CLI commands → NSE filings and earnings: fetches filings and dates
src/cli.ts - CLI commands → RSS news feeds: fetches news
src/cli.ts - CLI commands → NewsStore: reads and updates
src/cli.ts - Ethos agent → Agent news tools: requests news tools
README.md - Agent news tools → BSE announcements: fetches filings
src/tools.ts - Agent news tools → NSE filings and earnings: fetches filings and dates
src/tools.ts - Agent news tools → RSS news feeds: fetches news
src/tools.ts - Agent news tools → NewsStore: reads and updates
src/tools.ts - Agent news tools → Ethos tool host: registers tools
src/tools.ts - BSE announcements → BSE India: requests announcements
src/bse-fetcher.ts - NSE filings and earnings → NSE India: requests filings and calendar
src/nse-fetcher.ts - RSS news feeds → ET, BS, Moneycontrol: fetches feeds
src/rss-fetcher.ts - NewsStore → SQLite schema: runs migrations
src/store.ts - NewsStore → Local SQLite database: reads and writes
src/store.ts