dsh-imagegen-zhenzhen Copyright 2026 netori This product is a modified fork of @dickpy/dsh-imagegen (https://github.com/dickpy/dsh-imagegen), Copyright dickpy, licensed under the Apache License, Version 2.0 (see LICENSE). -------------------------------------------------------------------------------- NOTICE OF MODIFICATION (Apache License 2.0, section 4(b)) -------------------------------------------------------------------------------- The following changes were made to the original work: 1. src/model-catalog.ts - Added a `zhenzhen` model family (`/^zhenzhen-image/i`) describing the zhenzhen-image async task gateway: verbatim aspect-ratio `size`, clarity tier mapping onto `resolution`, public-URL reference images, image-to-image supported. 2. src/engine.ts - Added `isZhenzhenImage()`, `pollUrlFor()`, `nestedResultItems()`, `uploadReferenceImage()` and `composeReferenceGrid()`. - Submission now also accepts a TOP-LEVEL `task_id` (the original only read `data[].task_id`). - Polling uses `GET {base}/image/generations/{id}` for this family instead of `GET {base}/tasks/{id}`. - Result urls are read from `data.data.content.image_url` (with `data.data.upstream.response.results[].url` as fallback). - `effectiveParams()` gained a zhenzhen branch: `size` passthrough and `quality` -> `resolution` (1k/2k/4k), no `quality`/`detail`/`response_format`. - Edit mode uploads local reference images to `POST {base}/files/upload` and sends the returned public url as the JSON `image` field; several references are composed into a single strip first (the upstream `image` field is single-valued). 3. package.json, cordis.patch.yml, tsdown.config.ts, tsdown.node.config.ts - Renamed the package from `@dickpy/dsh-imagegen` to `dsh-imagegen-zhenzhen` and stamped the new id into the client bundle handoff. 4. lib/* - Rebuilt from the modified sources. lib/client.js was regenerated with the new plugin id. 5. Added: README.md, FORK-NOTES.md, rebuild.cmd, tsdown.node.config.ts, NOTICE. All upstream files not listed above are unchanged. The prompt template data under src/templates/ is carried over from the original project unchanged.