v1.2.1
Non-blocking background jobs & image handling fixes
Breaking change in behavior: All creation/generation endpoints now return immediately with a job_id instead of blocking while polling for completion (which could take up to 20 minutes and crash the MCP connection). Use get_job_status to check progress and retrieve results — matching the official PixelLab MCP server pattern.
Changes
- Remove blocking
pollJob()from api-client — 202 responses return job ID immediately - Update
get_job_statusdescription to clarify it's the primary way to retrieve results - Add base64 image validation (PNG/JPEG/WebP/GIF magic byte checks)
- Add MIME type auto-detection for inline image blocks
- Limit inline images to 4 per response (all still saved to disk)
- Clean base64 strings (strip data URI prefixes, whitespace)
- Add debug logging to stderr