Files
opencli/src/clis/bloomberg/feeds.ts
T
KasumiandByteYue 7700704923 feat: add Bloomberg adapter (#145)
* feat: add Bloomberg adapter with RSS feeds and article extraction

* refactor: improve Bloomberg adapter review fixes

- news.ts: reorder flow (goto before loadStory), increase wait times for slow hydration, add clarity comments
- utils.ts: clarify validateBloombergLink regex (use non-capturing group)
- build-manifest.ts: log warning on scanTs parse failure (match scanYaml pattern)
- public-commands.test.ts: use it.each for section RSS tests (better isolation & reporting)

---------

Co-authored-by: ByteYue <yj976240184@gmail.com>
2026-03-21 00:35:30 +08:00

17 lines
449 B
TypeScript

import { cli, Strategy } from '../../registry.js';
import { BLOOMBERG_FEEDS } from './utils.js';
cli({
site: 'bloomberg',
name: 'feeds',
description: 'List the Bloomberg RSS feed aliases used by the adapter',
domain: 'feeds.bloomberg.com',
strategy: Strategy.PUBLIC,
browser: false,
args: [],
columns: ['name', 'url'],
func: async () => {
return Object.entries(BLOOMBERG_FEEDS).map(([name, url]) => ({ name, url }));
},
});