feat: add grok.com site support#60
Merged
jackwener merged 1 commit intojackwener:mainfrom Mar 18, 2026
Merged
Conversation
Add support for grok.com site with two commands: - ask: Send a message to Grok and get response - debug: Debug grok page structure Implementation uses Playwright CDP protocol with fallback DOM selectors (div.message-bubble, [data-testid="message-bubble"]) for reliability. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cff9b40 to
e88999c
Compare
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.
新增功能
为 opencli 新增 grok.com 站点支持,通过 Playwright CDP 协议自动化操作 grok.com,支持对话和调试功能。
实现细节
opencli grok ask --prompt "...":输入 prompt,自动提交、轮询等待回复、提取纯文本opencli grok debug:打开 grok.com 页面用于调试测试情况
已手动完整测试:
感谢原作者的开源项目!