Skip to content

Releases: HaoyanZhang123/dsh-plugin-image-gen

v0.1.2

Choose a tag to compare

@HaoyanZhang123 HaoyanZhang123 released this 30 Sep 09:42

dsh-plugin-image-gen 0.1.2

Documentation release - no behavior change. It exists because the docs were the weakest part of onboarding, and one line was actively harmful.

Fixed

  • The README told you to install #v0.1.0 - the release that fails to activate. Install instructions now lead with the tagless spec github:HaoyanZhang123/dsh-plugin-image-gen (always latest) and offer #v0.1.2 for pinning.

Added

  • Where your DSH home is: %USERPROFILE%.dsh on Windows, ~/.dsh on macOS/Linux, or whatever DSH_HOME points to - plus the trick of asking the agent to run get_image_gen_config, which prints the exact path.
  • The three places an API key can live, with a warning not to paste keys into chat.
  • A Windows JSON gotcha: use doubled backslashes or forward slashes in paths.
  • A verification step before blaming the plugin.
  • A troubleshooting table: missing key, invalid JSON, HTTP 401/404/429, non-OpenAI response shape, timeouts, authenticated proxies.
  • Chinese README mirrored so both languages carry identical steps.

Install

github:HaoyanZhang123/dsh-plugin-image-gen

or this release's dsh-plugin-image-gen-0.1.2.tgz. Upgrading an installed version is reported by DSH as restart-required.

Setup is three steps: find your DSH home, add your key, point image-gen.config.json at your endpoint. Full details in the README.

v0.1.1

Choose a tag to compare

@HaoyanZhang123 HaoyanZhang123 released this 30 Sep 08:12

dsh-plugin-image-gen 0.1.1

Fix release. 0.1.0 failed to activate on DSH with:

JsonSchemaError: unsupported JSON schema:
schema.properties.message.required is not supported on type "string"

What was wrong

ctx.tools.register() takes a finished JSON Schema, but 0.1.0 used the
defineTool input spec style — a per-property required: true flag and
minimum/maximum keywords. DSH accepts only
type/oneOf/properties/required/additionalProperties/items/enum/const plus the
description/title/default/examples annotations, with required as an
object-level array.

Fixed: requiredness moved to object level, and the n range now lives in its
description.

Regression coverage

New tests/schema.test.mjs enforces the supported subset locally — including
per-type keyword restrictions — rejects the exact 0.1.0 shape, and validates the
definitions with the real DSH validator when a runtime is resolvable.
37 tests: 36 pass, 1 skipped (the runtime-validator test).

Install

  • github:HaoyanZhang123/dsh-plugin-image-gen#v0.1.1
  • or this release's dsh-plugin-image-gen-0.1.1.tgz

Upgrading an already-installed version is reported by DSH as
restart-required: quit and reopen DSH afterwards.

v0.1.0

Choose a tag to compare

@HaoyanZhang123 HaoyanZhang123 released this 30 Sep 08:06

dsh-plugin-image-gen 0.1.0\n\n> WARNING: This release is broken. The plugin entry fails to activate on DSH with `JsonSchemaError: schema.properties.message.required is not supported on type "string"`. Use v0.1.1 or later.\n\nFirst release of the plugin. Tool definitions in this version used the wrong schema dialect; see the v0.1.1 notes for details.