JimLiu-baoyu-skills/skills
Jim Liu 宝玉 648f563378 Make Replicate image requests schema-aware without overpromising multi-image output
Replicate image models no longer share one assumed Nano Banana input shape.
This change routes Seedream and Wan requests through model-family-specific
input builders, switches the default Replicate model to nano-banana-2, and
adds local validation for the most common schema mismatches before the API
returns a remote error.

The implementation stays deliberately narrow. baoyu-imagine still writes one
output file per Replicate request, so this commit blocks --n on the Replicate
provider instead of exposing partial multi-image behavior that would silently
drop outputs.

Constraint: baoyu-imagine currently persists a single output path per request
Constraint: Replicate model families use different request schemas and output defaults
Rejected: Port the previous broader PR as-is | it enabled multi-image request fields without completing multi-image output handling
Rejected: Add full multi-image output support here | larger behavioral surface than needed for a safe first merge
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Do not re-enable Replicate --n until the CLI can name, download, and report multiple output files end to end
Tested: node --import tsx --test skills/baoyu-imagine/scripts/providers/replicate.test.ts
Tested: node --import tsx --test skills/baoyu-imagine/scripts/main.test.ts
Tested: npm test
Not-tested: Live Replicate API calls against Seedream and Wan credentials
Co-authored-by: justnodejs <justnodejs@gmail.com>
2026-04-11 21:16:39 -05:00
..
baoyu-article-illustrator fix(baoyu-article-illustrator): omit model field from batch tasks when unspecified 2026-04-11 21:02:18 -05:00
baoyu-comic feat(baoyu-comic): add four-panel preset, minimalist art style, and flexible image workflow 2026-04-07 01:31:32 -05:00
baoyu-compress-image Merge pull request #69 from liby/feat/xdg-config-path 2026-03-08 22:19:52 -05:00
baoyu-cover-image feat(baoyu-cover-image): add macaron palette and hand-drawn-edu style preset 2026-04-08 17:58:29 -05:00
baoyu-danger-gemini-web chore: sync vendor baoyu-chrome-cdp across CDP skills 2026-04-01 02:11:56 -05:00
baoyu-danger-x-to-markdown chore: sync vendor baoyu-chrome-cdp across CDP skills 2026-04-01 02:11:56 -05:00
baoyu-diagram feat: add baoyu-diagram skill and baoyu-article-illustrator ink-notes style (v1.99.0) 2026-04-11 20:54:32 -05:00
baoyu-format-markdown feat(baoyu-format-markdown): optimize title generation and auto-generate dual summaries 2026-03-17 01:59:10 -05:00
baoyu-image-cards fix(baoyu-image-cards): rename palette Zone labels to prevent text rendering in images 2026-04-09 13:20:14 -05:00
baoyu-image-gen chore(baoyu-image-gen): add deprecation notice redirecting to baoyu-imagine 2026-03-26 09:51:48 -05:00
baoyu-imagine Make Replicate image requests schema-aware without overpromising multi-image output 2026-04-11 21:16:39 -05:00
baoyu-infographic feat(baoyu-infographic): add hand-drawn-edu style with macaron palette 2026-04-08 22:06:50 -05:00
baoyu-markdown-to-html chore: update bun.lock files 2026-03-31 18:24:26 -05:00
baoyu-post-to-wechat fix(baoyu-post-to-wechat): detect actual image format from buffer magic bytes 2026-04-05 13:36:51 -05:00
baoyu-post-to-weibo chore: sync vendor baoyu-chrome-cdp across CDP skills 2026-04-01 02:11:56 -05:00
baoyu-post-to-x chore: sync vendor baoyu-chrome-cdp across CDP skills 2026-04-01 02:11:56 -05:00
baoyu-slide-deck fix(baoyu-slide-deck): add pptxgenjs dependency and detect image format by magic bytes 2026-04-09 10:00:29 -05:00
baoyu-translate refactor(baoyu-translate): simplify translation prompts and workflow 2026-03-26 23:02:28 -05:00
baoyu-url-to-markdown chore(baoyu-url-to-markdown): sync vendor baoyu-fetch with login auto-detect 2026-04-01 02:12:04 -05:00
baoyu-xhs-images feat(baoyu-xhs-images): add sketch-notes style, palette system, and new presets 2026-04-10 10:58:29 -05:00
baoyu-youtube-transcript feat(baoyu-youtube-transcript): auto-retry with yt-dlp on empty InnerTube transcript 2026-04-03 23:35:42 -05:00