Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
release: 3.9.0 — the CHANGELOG section named for the release, its sizes measured on 3.8.0 below, pyproject and SKILL.md at 3.9.0
Soohong Kim2db427c371ac
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 889c9ce..d12be7d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,14 +2,14 @@All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.-## Unreleased (v3.9.0)+## v3.9.0 - Provider address environment variables, subscription logins off, and the capabilities verb**Upgrading from 3.8.0: nothing changes unless you set one of the new variables. Each provider's calls can go to another address (`SPRITE_GEN_OPENAI_BASE_URL`, `SPRITE_GEN_XAI_BASE_URL`, `SPRITE_GEN_ANTHROPIC_BASE_URL`, `SPRITE_GEN_ELEVENLABS_BASE_URL`), `SPRITE_GEN_LOGINS=off` runs every call on its API key, and the new verb `sprite-gen capabilities` prints every verb and argument as one JSON line. Unset, every request goes where it went with the same bytes, and every output keeps its bytes except `sprite-gen --help`, which lists the new verb.**- **New: provider addresses.** Each of the four providers sprite-gen calls over HTTP has a variable that replaces its documented address (the API root with its version path, `https://api.openai.com/v1`, `https://api.x.ai/v1`, `https://api.anthropic.com/v1`, `https://api.elevenlabs.io/v1`). It is read when each request is made, not at import, so a value set or changed after the engine is imported is followed. Unset, empty or blank is the documented address. It moves every direct call: OpenAI images, edits and vision checks; Grok images, edits and vision checks, the video facing check, the video requests, polls and `video-resume`; Anthropic messages and Message Batches; ElevenLabs sound. A value that is not an `http://` or `https://` address with no query or fragment stops the call naming the variable.- **New: a URL a provider hands back is fetched through the same address.** With `SPRITE_GEN_XAI_BASE_URL` set, the finished clip is downloaded as `GET <value>/sprite-gen/fetch?url=<the clip's URL, percent-encoded>`, first without a token and once more with the bearer token after a 401 or 403, as before. With `SPRITE_GEN_ANTHROPIC_BASE_URL` set, a batch's results file comes the same way with the API key. A relay that forwards the provider's API forwards these too. Unset, the URL is fetched where it points.- **New: `SPRITE_GEN_LOGINS=off`.** No subscription login is read: the grok login file (and `GROK_HOME`) is not looked at and `XAI_API_KEY` is used, `claude auth status` is not run and `ANTHROPIC_API_KEY` is used, and codex is not usable (`codex login status` is not run; a default codex asks or runs what you chose for a codex that cannot run, naming the variable, and `--provider codex` stops). Each key keeps its rule: set but empty is refused, and a missing key stops the call naming the key and the variable. Unset or empty is `on`, the order as before; any other value is refused.-- **New: `sprite-gen capabilities`.** One JSON line: every verb (domain, description, old names, sub-verbs) and every argument as the CLI's parser holds it (spellings, type, how many values, default, required, choices, groups of which one is given), the providers each verb may call and whether it may be billed (`video-resume` calls xAI and buys nothing), and the provider and login variables. It is read off the parser, so a verb or flag added to the CLI is listed with nothing else written. At this release it is 42,025 bytes, where every `--help` together is 156,490.+- **New: `sprite-gen capabilities`.** One JSON line: every verb (domain, description, old names, sub-verbs) and every argument as the CLI's parser holds it (spellings, type, how many values, default, required, choices, groups of which one is given), the providers each verb may call and whether it may be billed (`video-resume` calls xAI and buys nothing), and the provider and login variables. It is read off the parser, so a verb or flag added to the CLI is listed with nothing else written. At this release it is 42,227 bytes, where every `--help` together is 158,857.- Python callers: new module `sprite_gen.gen.address` (`PROVIDERS`, `base`, `url`, `fetched`, `FETCH_PATH`), `sprite_gen.gen.base.LOGINS_ENV`, `LOGINS_OFF` and `logins_on`, new module `sprite_gen.workflow.capabilities` (`document`, `PROVIDER_CALLS`, `NO_PURCHASE`). Removed: the module constants `xai.API_BASE`, `openai_provider.API_BASE`, `anthropic_api.API_BASE` and `sprite_gen.audio.provider.BASE`, which kept a provider's address where a variable could not move it; `video` no longer copies the xAI address at import.- **Tests**: `tests/gen/test_provider_address.py` (every call site against a local relay, the address unset, empty and blank, a value changed after import, the relay given the request's bytes, the clip and results file fetched through it, refused values, no module but the registry naming an address and none reading it at import), `tests/gen/test_logins_off.py` (each route on and off, the empty key refusal kept, codex's question and refusals, the access check), `tests/workflow/test_capabilities.py` (the document against the parser and every verb's printed options, a verb or flag added is listed, the providers, the size against every `--help`).diff --git a/SKILL.md b/SKILL.mdindex 91b497a..1c4296f 100644--- a/SKILL.md+++ b/SKILL.md@@ -1,6 +1,6 @@---name: sprite-gen-version: 3.8.0+version: 3.9.0description: "Generates images and game sprites through GPT or Grok with guided provider choices, separate saved defaults, automatic cleanup and optional curation. Handles sprite requests, ordinary image generation/editing, typography logos (로고, 타이포그래피, 타이틀 글자, 타이틀 로고, wordmark, logo, title lettering: a title screen drawn with the title in it, its lettering lifted out transparent), standalone image-to-video clips (i2v, animate this still, 그록 영상, 이매진 비디오, 스틸 움직여줘, first/last frame, reference-to-video, 영상 이어붙이기, 영상 편집, extend/edit a clip), clips from a video MCP on the agent (ZCRE, 지크 MCP), chroma removal, animation atlases, video loops, 큐레이션뷰, image candidates, 팔레트 스왑, palette swap, recolor, engine exports, repeating backgrounds, projected shadows, talking face layers over body motions (말하는 얼굴, 입 맞추기, 얼굴 층, lip sync, face pack), motion/contact inspection and optional scene composition from existing assets."license: Apache-2.0depends_on:diff --git a/pyproject.toml b/pyproject.tomlindex ca78df3..259ba88 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"name = "sprite-gen"# Release discipline: keep this package metadata version synchronized with# SKILL.md's `version:` field in the same release commit.-version = "3.8.0"+version = "3.9.0"description = "Component-row pipeline for clean 2D game sprites and animation atlases"readme = "README.md"license = "Apache-2.0"