Skip to content

feat(yollomi): add new commands and update documentation in README files#235

Merged
jackwener merged 3 commits intojackwener:mainfrom
AniChikage:feat-yollomi
Mar 23, 2026
Merged

feat(yollomi): add new commands and update documentation in README files#235
jackwener merged 3 commits intojackwener:mainfrom
AniChikage:feat-yollomi

Conversation

@AniChikage
Copy link
Copy Markdown
Contributor

@AniChikage AniChikage commented Mar 22, 2026

  • Added yollomi commands for generating images, videos, and editing capabilities.
  • Updated README.md and README.zh-CN.md to include yollomi in the command list.
  • Enhanced SKILL.md with yollomi-related tags and usage examples.

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)

Screenshots / Output

anichikage added 2 commits March 22, 2026 13:25
- Added yollomi commands for generating images, videos, and editing capabilities.
- Updated README.md and README.zh-CN.md to include yollomi in the command list.
- Enhanced SKILL.md with yollomi-related tags and usage examples.
- Included yollomi in the VitePress configuration for browser adapters.
- Updated adapters index documentation to reflect yollomi's capabilities and commands.
Copy link
Copy Markdown
Contributor

@Astro-Han Astro-Han left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work covering so many commands with a clean, consistent structure! A few things I noticed:

upload.ts — base64 in page.evaluate may crash on large files

The entire file is read into memory, base64-encoded, and embedded as a JS string literal inside page.evaluate(). For the 100MB video limit, that's ~133MB of base64 injected into the browser JS engine — likely to OOM or timeout. Consider lowering the size cap significantly, or noting this limitation in the docs.

models.ts — consider adding browser: false

This command returns hardcoded data and never uses page. Without browser: false, the framework may still attempt a browser connection, which would be unnecessary overhead for users just listing models.

edit.ts — unused import

resolveImageInput is imported but never called.

Tests

No tests are included. At minimum, models (PUBLIC strategy) could have a straightforward test in public-commands.test.ts, and the browser commands could have graceful-failure entries in browser-auth.test.ts per TESTING.md.

- models.ts: add browser: false (no browser connection needed for hardcoded data)
- edit.ts: remove unused resolveImageInput import
- upload.ts: lower video upload limit from 100MB to 20MB (base64 OOM risk)
- generate.ts: improve file extension detection using URL.pathname
- upscale.ts: use choices for scale arg, improve extension detection
- object-remover.ts: make image/mask args positional
- Add yollomi models tests to public-commands.test.ts
- Add yollomi generate/video graceful-failure tests to browser-auth.test.ts
@jackwener jackwener merged commit ea83242 into jackwener:main Mar 23, 2026
@jackwener
Copy link
Copy Markdown
Owner

感谢 @AniChikage 贡献 yollomi adapter!覆盖了图片生成、视频生成、编辑等多种 AI 模型,结构非常清晰 🎉

在合并前我做了以下修复和改进:

Bug 修复:

  • models.ts: 添加 browser: false,该命令只返回硬编码数据不需要浏览器连接
  • edit.ts: 移除未使用的 resolveImageInput import
  • upload.ts: 视频上传限制从 100MB 降到 20MB,避免 base64 编码后注入浏览器时 OOM

改进:

  • generate.ts / upscale.ts: 用 URL.pathname 替代 url.includes 做扩展名检测,支持 .webp
  • upscale.ts: scale 参数改为 choices: ['2', '4'] 替代 type: 'int'
  • object-remover.ts: image/mask 参数改为 positional

测试:

  • 添加了 yollomi models 公开命令测试
  • 添加了 yollomi generate/video 认证失败 graceful-failure 测试

再次感谢你的贡献!

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.

3 participants