Skip to content

Add configurable image rename prefixes - #20

Merged
HoungDev merged 1 commit into
mainfrom
agent/add-rename-prefix
Aug 7, 2026
Merged

HoungDev merged 1 commit into
mainfrom
agent/add-rename-prefix

Conversation

@HoungDev

@HoungDev HoungDev commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add rename --prefix while preserving image as the default
  • validate prefixes as safe filename components across Windows, macOS, and Linux
  • carry custom destinations through preview, apply, JSON schema v1, manifests, and undo
  • update the changelog, README, JSON reference, transcript, and generated demo

Safety and compatibility

Invalid prefixes are rejected before files or manifests change. Validation covers empty or padded values, path separators, control and Windows-invalid characters, reserved device names, trailing periods, and filename-component length limits. Existing commands without --prefix retain the image_N naming format, and manifests remain version 1 because they already store concrete operations.

Verification

  • ruff check .
  • ruff format --check .
  • pytest — 85 passed, 94.02% coverage
  • README demo rebuilt deterministically and inspected visually
  • pip-audit — no known vulnerabilities
  • wheel and sdist built successfully; twine check passed
  • built wheel installed in a fresh virtual environment; custom preview/apply/undo and invalid-prefix entry-point smoke checks passed

Closes #17

@HoungDev
HoungDev marked this pull request as ready for review August 7, 2026 09:39
@HoungDev
HoungDev merged commit d37e9c7 into main Aug 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a configurable prefix to image rename workflows

1 participant