blackfinger
904a773ade
refactor: Add CleanupStatus type to replace raw strings (gt-77gq7)
...
Introduces a typed CleanupStatus with constants:
- CleanupClean, CleanupUncommitted, CleanupStash, CleanupUnpushed, CleanupUnknown
Adds helper methods:
- IsSafe(): true for clean status
- RequiresRecovery(): true for uncommitted/stash/unpushed
- CanForceRemove(): true if force flag can bypass
Updated files to use the new type:
- internal/polecat/types.go: Type definition and methods
- internal/polecat/manager.go: Validation logic
- internal/witness/handlers.go: Nuke safety checks
- internal/cmd/done.go: Status reporting
- internal/cmd/polecat.go: Recovery status checks
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-05 00:19:00 -08:00
..
2026-01-01 18:58:56 -08:00
2026-01-01 18:58:56 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 18:56:45 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 18:53:39 -08:00
2026-01-05 06:58:46 +01:00
2026-01-05 06:58:46 +01:00
2026-01-04 14:49:38 -08:00
2026-01-03 21:37:05 +01:00
2026-01-04 12:31:16 -08:00
2026-01-04 13:17:39 -08:00
2026-01-04 14:01:02 -08:00
2026-01-04 14:01:02 -08:00
2026-01-04 22:10:47 -08:00
2026-01-04 22:10:47 -08:00
2026-01-03 21:37:05 +01:00
2026-01-04 15:30:57 -05:00
2026-01-03 11:49:42 -08:00
2026-01-03 16:23:44 -08:00
2026-01-04 14:41:28 -08:00
2026-01-03 14:33:24 -08:00
2026-01-01 18:54:36 -08:00
2026-01-04 10:36:23 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 10:33:27 -08:00
2026-01-05 00:19:00 -08:00
2026-01-04 00:17:37 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:12:27 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 19:46:27 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 23:13:03 -08:00
2026-01-04 23:13:03 -08:00
2026-01-04 13:09:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 00:22:17 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:53:30 -08:00
2026-01-01 18:58:56 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 16:52:42 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 17:18:27 -08:00
2026-01-02 17:18:27 -08:00
2026-01-04 14:01:02 -08:00
2026-01-01 18:56:35 -08:00
2026-01-01 18:54:36 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 19:16:06 -08:00
2026-01-04 15:16:56 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 16:11:55 -08:00
2026-01-04 14:28:40 -08:00
2026-01-05 00:19:00 -08:00
2026-01-03 21:53:30 -08:00
2026-01-04 23:17:58 -08:00
2026-01-02 18:25:15 -08:00
2026-01-01 19:11:04 -08:00
2026-01-04 10:36:23 -08:00
2026-01-04 22:26:49 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 20:53:17 -05:00
2026-01-04 23:28:13 -08:00
2026-01-04 22:18:24 -08:00
2026-01-01 18:15:37 -08:00
2026-01-03 21:09:59 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 16:01:28 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 15:20:25 -08:00
2026-01-03 16:11:55 -08:00