Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
chore(release): prepare 2.12.1 the error body is masked as the provider sent it
Soohong Kim0c5b519d7e90
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 843d2d0..bd79142 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,11 +2,11 @@All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.-## Unreleased (v2.12.1) - The error body is masked as the provider sent it, before it is put on one line+## v2.12.1 - The error body is masked as the provider sent it, before it is put on one line-- The error body is now masked string by string, as the provider sent it, before sprite-gen puts it on one line. v2.12.0 masked the finished line, where JSON, `repr` and the line join had already written a line break, a tab or another control or invisible character as `\n`, `\t`, `\x..` or `\u....` (and the video verbs' JSON fallback any non-ASCII character as `\u....`). A key, a `Bearer` value or a URL query right after one of those kept a letter or digit in front of it and was printed as sent, so v2.12.0's "only a letter or digit in front makes `sk-`/`xai-`/`bearer` part of a word" was wrong there. It holds now, and the letter or digit is the provider's own: `task-…` and `xbearer …` are still words, and so is a key after the two characters `\n` or `%0A` the provider wrote itself. A `Bearer` value after a tab or a line break, and the credential the request carried when it holds a quote or a non-ASCII character, are masked too. The API key or login token the request carried was masked in every case, and still is (a number in the body equal to it included).+- The error body is now masked string by string, as the provider sent it, before sprite-gen puts it on one line. v2.12.0 masked the finished line, where JSON, `repr` and the line join had already written a line break, a tab or another control or invisible character as `\n`, `\t`, `\x..` or `\u....` (and the video verbs' JSON fallback any non-ASCII character as `\u....`). A key, a `Bearer` value or a URL query right after one of those kept a letter or digit in front of it and was printed as sent, so v2.12.0's "only a letter or digit in front makes `sk-`/`xai-`/`bearer` part of a word" was wrong there. It holds now, and the letter or digit is the provider's own: `task-…` and `xbearer …` are still words, and so is a key after the two characters `\n` or `%0A` the provider wrote itself. A `Bearer` value after a tab or a line break, and the credential the request carried when it holds a quote or a non-ASCII character, are masked too. An API key or login token of the usual shape that the request carried was masked in every case in v2.12.0 too, and still is (a number in the body equal to it included).- A URL query is masked wherever the URL starts; after `_`, a letter or a non-ASCII letter it was printed as sent.-- Nothing else in the line changes: a body with nothing to mask prints byte for byte what v2.12.0 printed. When two field names of one error object mask to the same text, the line keeps the later one.+- Nothing else in the line changes: a body with nothing to mask prints byte for byte what v2.12.0 printed. When two field names of one error object mask to the same text, the line keeps the later one. A body nested some 500 levels deep can exceed Python 3.11's recursion limit while it is masked; the line then turns into a traceback (with no body text in it) instead of a refusal line. Provider error bodies are a few levels deep.## v2.12.0 - A refusal names the provider's code, and says when it was the content policydiff --git a/SKILL.md b/SKILL.mdindex 8061e40..e52750a 100644--- a/SKILL.md+++ b/SKILL.md@@ -1,6 +1,6 @@---name: sprite-gen-version: 2.12.0+version: 2.12.1description: "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, standalone image-to-video clips (i2v, animate this still, 그록 영상, 이매진 비디오, 스틸 움직여줘, first/last frame, reference-to-video, 영상 이어붙이기, 영상 편집, extend/edit a clip), chroma removal, animation atlases, video loops, 큐레이션뷰, image candidates, 팔레트 스왑, palette swap, recolor, rig layers, engine exports, repeating backgrounds, projected shadows, motion/contact inspection and optional scene composition from existing assets."license: Apache-2.0depends_on:diff --git a/pyproject.toml b/pyproject.tomlindex 07a677e..fbf1939 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 = "2.12.0"+version = "2.12.1"description = "Component-row pipeline for clean 2D game sprites and animation atlases"readme = "README.md"license = "Apache-2.0"