Skip to content

增加重型SPA页面的超时逻辑,增加raw mode避免cli页面agent猜测变量名的行为#841

Open
YoungCan-Wang wants to merge 17 commits intojackwener:mainfrom
YoungCan-Wang:main
Open

增加重型SPA页面的超时逻辑,增加raw mode避免cli页面agent猜测变量名的行为#841
YoungCan-Wang wants to merge 17 commits intojackwener:mainfrom
YoungCan-Wang:main

Conversation

@YoungCan-Wang
Copy link
Copy Markdown
Contributor

Description

Related issue:

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

YoungCan-Wang and others added 17 commits April 4, 2026 15:16
feat: support image replies in twitter reply
…dd size limit

- Fix attachReplyImage fallback: use uploaded flag instead of checking
  page.setFileInput existence, so base64 fallback actually runs when
  CDP setFileInput throws "Unknown action"
- Restore execCommand('insertText') as primary text input method for
  Twitter's Draft.js editor, with paste event as fallback
- Add 20MB size limit for remote image downloads to prevent OOM
- Remove unsafe buttons[0] fallback that could click invisible buttons
…rning

Local images were not validated for size — a 100MB file would fail only
at upload time. Remote images already had MAX_IMAGE_SIZE_BYTES checks.
Also add a console.warn when using the base64 fallback with large
payloads, consistent with xiaohongshu/publish.ts behavior.
…rror 子类。适配器遇到这三类错误只能 throw new

  Error(...),CLI 渲染器无法匹配到正确图标,全部显示为通用的 💥。
…valuateFetch() 工具函数,目前每个站点各自实现,功能重叠但质量参差。提取为共享工具
…分歧。 共享 evaluateFetch() 工具函数,目前每个站点各自实现,功能重叠但质量参差。提取为共享工具"

This reverts commit 300efbd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants