Repository navigation
v0.2.4
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.
--yesflag: Now works correctly in directcmd_new/cmd_initcalls, not just throughmain().--forceon read-only files:shutil.copy2no longer crashes withPermissionError— files arechmod'd before overwrite.- Archive timestamp collision: Timestamps now include microseconds to prevent overwrites when archiving twice in the same second.
- Error messages:
cmd_initnow distinguishes "template directory not found" from "no template files copied" (consistent withcmd_new). - stderr consistency:
.gitignorenote 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
--forceoverwrite of read-only filescmd_removeon read-only files- Double archive without collision
KeyboardInterruptduring remove confirmationEOFErrorduring wizard--yesdisabling wizard in direct calls
Install
pipx install git+https://github.com/Lucenx9/agentinit.git@v0.2.4Full changelog: v0.2.3...v0.2.4