Merged
Conversation
rolling-news: - Remove dead dateToTimestampParams function and unused CliError import - Fix column field name typo: clomn → column - Replace page.wait(5) with selector-based wait - Remove all commented-out code stock: - Fix P0 JS injection: use JSON.stringify() to safely embed args.key/market - Add null guard for inputEl before calling .focus() - waitForElement returns null instead of throwing on timeout - Replace page.wait(5) with selector-based wait - Extract MARKET_CN/HK/US as named constants - Throw CliError on NOT_FOUND instead of silent empty return
2cd48fd to
469365f
Compare
Owner
|
已在 rebase 后直接修复以下问题: rolling-news.ts
stock.ts
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorSummary
为新浪财经适配器添加两个新命令,扩展金融数据获取能力:
rolling-news- 滚动新闻列表stock- 股票行情查询(支持 A 股/港股/美股)Changes
新增命令
opencli sinafinance rolling-newsopencli sinafinance stock功能特性
rolling-news
stock
--market cn|hk|us文档更新
docs/adapters/browser/sinafinance.mdTest plan
opencli sinafinance rolling-news- 获取滚动新闻列表opencli sinafinance stock 贵州茅台 --market cn- A 股查询opencli sinafinance stock 腾讯控股 --market hk- 港股查询opencli sinafinance stock aapl --market us- 美股查询opencli sinafinance stock 招商证券- 自动市场检测Screenshots / Output