Repository navigation
Releases
v2.1.78
Authentication commands
- Add
bycli auth login,auth statusandauth siteswith recipes for Weibo, Zhihu, Xiaohongshu, Juejin and Xiaohongshu Creator Center. - Open login pages in the foreground by default and retain them per platform. Status checks use separate pages so they do not interrupt QR scans or verification.
- Distinguish confirmed authentication, explicit sign-out and unknown probe/network state. Validate platform names and the 30–900 second login timeout before connecting to the browser.
- Keep Xiaohongshu's main-site and Creator Center sessions separate;
auth sitesreports each recipe's surface and verification status.
Weibo article images
- Accept inline base64
data:images in article drafts, materialize them for upload and clean up temporary files afterward.
Documentation and validation
- Add the authentication guide, adapter reference and navigation. Documentation coverage is 173/173 adapters.
- Release checks: 1975 unit/extension tests passed (2 skipped), 39 focused auth/Weibo tests passed, type check, build, manifest consistency, documentation build and isolated npm installation checks passed.
Install or upgrade: npm install -g @sovovs/bycli@2.1.78.
Browser Bridge remains at 2.1.29 because this release does not change the extension. Its ZIP is attached for convenience. Recorder Core remains at 0.1.0.
Full Changelog: v2.1.77...v2.1.78
v2.1.77
Screenshot device pixel ratio
- Add
--dpr <n>(1–4) to browser screenshots, including viewport and full-page capture, through both Browser Bridge and direct CDP. - Honor explicit
--dpr 1even when the browser's native device pixel ratio is higher. Omitting DPR preserves existing screenshot behavior. - Validate CLI arguments and cover explicit DPR 1, 2 and 4, omitted DPR, bridge forwarding and invalid values with regression tests.
Example: bycli browser <session> screenshot out.png --width 1280 --height 960 --dpr 2 produces a 2560 × 1920 image.
Upgrade with npm install -g @sovovs/bycli@2.1.77, then reload the bundled extension or install the attached Browser Bridge 2.1.29 ZIP. An older extension does not support the new DPR option.
Validation: 119 unit/extension test files passed (1974 tests passed, 2 skipped), CLI and extension type checks, builds and npm package installation smoke test passed.
Full Changelog: v2.1.76...v2.1.77
Browser Bridge 2.1.29
Browser Bridge 2.1.29
- Support screenshot device pixel ratio from CLI 2.1.77, including viewport and full-page screenshots.
- Apply an explicit DPR of 1 instead of retaining a higher native browser DPR.
- Preserve existing behavior when DPR is omitted and clear temporary device metrics after capture.
Use with CLI 2.1.77. Install the attached ZIP as an unpacked extension, or reload the extension after upgrading the npm package. Reloading is required to activate the new screenshot behavior.
Full Changelog: ext-v2.1.28...ext-v2.1.29
v2.1.76
What's Changed
Full Changelog: v2.1.75...v2.1.76
v2.1.75
CLI 2.1.75,兼容现有 Browser Bridge 浏览器扩展 2.1.28;本次无需升级扩展。
新增
- 今日头条新增
save-draft:填写文章后等待自动保存,重新打开编辑器核对标题、正文及已应用的封面,成功返回draft_saved和submitted: false,不提交发布。 - 编辑器已有草稿时默认拒绝覆盖,只有显式传入
--replace true才替换。封面支持相对路径;--require-cover true要求提供封面且确认保存成功。
修复
- CSDN:保留编辑器时报出目标标识和 Adapter 窗口的手动处理指引;标签缺失时列出可见候选,避免泛化超时提示。
- 掘金:写入后立即核对 Markdown。只接受已识别的简单表格单元格边缘空白、换行符与末尾换行差异,保留词间空格、代码块和有语义的行尾空格。
- 掘金:实际保存的正文贯穿重开核验、复核及提交前检查;原始输入保持不变,标签和字段差异的错误详情不再被外层处理吞掉。
- 浏览器上传:能力缺失时,只尝试刷新当前浏览器配置的扩展握手;配置有命令正在执行时拒绝断连,同一进程内的并发上传共享恢复尝试。上传最多重试一次,不对文件注入后的传输失败自动重放。
- 头条草稿:按真实命令参数处理
--require-cover;正文核验保留词间空格;封面确认仅操作上传面板内按钮。
安装与更新
npm install -g @sovovs/bycli@2.1.75
bycli daemon restart
bycli doctor已在使用 Browser Bridge 2.1.28 的用户可继续使用,无需重新安装扩展。Release 中的扩展附件仍为 2.1.28。
保存头条草稿示例:
bycli toutiao save-draft '文章标题' --content-file ./body.txt -f json
bycli toutiao save-draft '文章标题' --content-file ./body.txt --cover ./cover.jpg --require-cover true -f json验证范围
- 本地类型检查、完整构建、输出列及类型化错误检查通过。
- 回归覆盖 Markdown 语义保留、重开和提交前检查、头条入口参数及封面路径、正文词间空格、上传面板按钮隔离。
- 使用两个模拟扩展连接验证指定配置重连、忙碌配置拒绝重连,以及其他连接不受影响。
- 本次未重新执行真实平台后台端到端验收。
v2.1.74
CLI 2.1.74,配套 Browser Bridge 浏览器扩展 2.1.28。
主要变化
- 搜狐:新增账号内容检索和公开搜索、编辑器管理、视频与图集分类选择恢复,以及文章和图集草稿保存、核验与重开;兼容新的正文视频播放器。
- 小红书:修正标题输入框定位,严格区分图片上传成功与草稿保存成功。
- 微博:支持混合媒体图片下载,校验内容类型,保留缺失统计指标与真实零值的区别。
- CSDN:适配当前搜索卡片结构,规范化并去重文章链接,区分空结果、登录限制和结构变化。
- 头条:修正公开搜索与热榜命令的参数传递,避免将其他计数作为分享数。
- 视频号:合入发布恢复与上传相关修复。
- 修复测试目录边界,并记录经核实的搜狐编辑器静态检查误报。
安装
npm install -g @sovovs/bycli@2.1.74浏览器扩展请下载本 Release 附件 bycli-extension-v2.1.28.zip,解压后在 Chrome 扩展管理页加载已解压的目录。
搜狐新增远端草稿保存流程的真实网站验收范围请见仓库文档;视频准备不等于已保存到远端草稿箱。
Browser Bridge 2.1.28
Browser Bridge 浏览器扩展 2.1.28,配套 CLI 2.1.74。
下载附件 bycli-extension-v2.1.28.zip,解压后在 Chrome 扩展管理页加载已解压的目录。更新已有安装后请重新加载扩展。
扩展与 CLI 保持独立版本号;本次发布沿用现有的 >=1.7.0 CLI 兼容范围。发布包包含扩展清单、后台脚本、弹窗和图标,以及可核验脚本哈希的构建信息。
v2.1.73
What's Changed
Full Changelog: v2.1.72...v2.1.73
v2.1.72
What's Changed
Full Changelog: v2.1.71...v2.1.72
v2.1.71
CLI 2.1.71,配套 Browser Bridge 扩展 2.1.27。两者均从 a186f069c7d1dba1274a869b9dd5b9e3f1456b6f 构建。
- 新增 19 个命令,总计 1,004 个:头条文章、图文和视频发布及数据读取,微博分类下载、发布及统计,以及 ima 状态查询。具体参数和平台限制见仓库文档。
- 修复浏览器上传后的表单事件处理,并让
waitUntil: none贯通 CLI 与扩展。 - 下载文件名按 UTF-8 字节限制长度,避免中文长标题导致文件无法保存。
- 补齐输出字段声明、评论参数及错误处理检查,修复相关测试和门禁。
- 移除误入版本控制的账号验收文件,补齐微博、头条、ima 和原生连接器使用文档。
新增微博、头条发布入口默认预检,执行需显式传 --execute;它们与小红书等原生连接器的 job/review 流程不同。平台提交成功不等于审核通过,使用前请阅读对应文档。
发布前完整回归、跨平台 CI 和 Linux/macOS 真实 Chrome E2E 均通过。扩展下载包附在本 Release 中,也可从独立扩展 Release 下载。
What's Changed
- 完成头条微博两个渠道的开发。 by @ainflying in #2
New Contributors
- @ainflying made their first contribution in #2
Full Changelog: v2.1.70...v2.1.71