Skip to content

v0.2.4

Choose a tag to compare

@Lucenx9 Lucenx9 released this 28 Feb 12:03
· 99 commits to main since this release

Bug fixes & stability

  • Wizard interrupt handling: Ctrl+C / Ctrl+D now prints "Aborted." and exits with code 130 (Unix convention) instead of an ugly traceback.
  • --yes flag: Now works correctly in direct cmd_new / cmd_init calls, not just through main().
  • --force on read-only files: shutil.copy2 no longer crashes with PermissionError — files are chmod'd before overwrite.
  • Archive timestamp collision: Timestamps now include microseconds to prevent overwrites when archiving twice in the same second.
  • Error messages: cmd_init now distinguishes "template directory not found" from "no template files copied" (consistent with cmd_new).
  • stderr consistency: .gitignore note moved from stdout to stderr, matching all other warnings.

Test coverage

11 new edge case tests (51 → 62 total):

  • Unicode and spaces in project names and parent directories
  • Destination is a file instead of a directory
  • --force overwrite of read-only files
  • cmd_remove on read-only files
  • Double archive without collision
  • KeyboardInterrupt during remove confirmation
  • EOFError during wizard
  • --yes disabling wizard in direct calls

Install

pipx install git+https://github.com/Lucenx9/agentinit.git@v0.2.4

Full changelog: v0.2.3...v0.2.4