JimLiu-baoyu-skills/skills/baoyu-imagine/scripts
Jim Liu 宝玉 56e72e8c34 Preserve Replicate compatibility when shared defaults leak across providers
Addressed the new PR review findings by teaching baoyu-imagine to track
where aspect-ratio defaults came from, mirroring the earlier imageSize fix,
so unsupported Replicate models can still run prompt-only requests when the
value was inherited from shared config. Also corrected Seedream 4.5 custom
size encoding to use the API's custom width/height schema instead of sending
literal WxH strings.

Constraint: Shared EXTEND defaults still need to apply globally for providers that support them
Constraint: Seedream 4.5 custom sizes must follow Replicate's documented custom size schema
Rejected: Ignore all aspect ratios for unknown Replicate models | would hide explicit unsupported CLI/task input
Rejected: Keep Seedream custom sizes as literal strings | validated locally but fails against the provider API
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Any future inherited-default validation for provider-specific flags should record the source explicitly before rejecting it
Tested: node --import tsx --test skills/baoyu-imagine/scripts/main.test.ts skills/baoyu-imagine/scripts/providers/replicate.test.ts
Tested: npm test
Not-tested: Live Replicate API calls for Seedream 4.5 custom-size requests
2026-04-12 01:04:57 -05:00
..
providers Preserve Replicate compatibility when shared defaults leak across providers 2026-04-12 01:04:57 -05:00
main.test.ts Preserve Replicate compatibility when shared defaults leak across providers 2026-04-12 01:04:57 -05:00
main.ts Preserve Replicate compatibility when shared defaults leak across providers 2026-04-12 01:04:57 -05:00
types.ts Preserve Replicate compatibility when shared defaults leak across providers 2026-04-12 01:04:57 -05:00