Commit a5334fc
feat: migrate original code bundle to project structure (#60)
## Summary
- Add ClaudeMonitor class for PTY-based Claude CLI monitoring with rate
limit detection
- Add WrapperConfig record for configurable wrapper behavior
- Integrate PTY package (1.0.3) for cross-platform pseudo-terminal
support
- Update Program.cs with full CLI argument parsing and ClaudeMonitor
integration
- Add InvalidArguments exit code and update test suite
## Test plan
- [x] Build passes with zero warnings and errors
- [x] All unit tests pass (27 tests)
- [x] All architecture tests pass (4 tests)
- [x] Pre-commit hooks pass (dotnet format, cspell)
- [x] Pre-push hooks pass (unit tests, branch validation)
## Implementation Notes
The original code bundle (ClaudeAutoResume.zip) has been adapted to use:
- PTY 1.0.3 package instead of Pty.Net (which is no longer available on
NuGet)
- Modern C# patterns (records, pattern matching, collection expressions)
- Full analyzer compliance with zero suppressions needed for actual
issues
- Proper async/await with ConfigureAwait(false) throughout
Closes #14
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent fc3067d commit a5334fc
File tree
20 files changed
+2008
-67
lines changed- src/McjCoderOrg.ClaudeAutoResume
- tests
- McjCoderOrg.ClaudeAutoResume.ArchTests
- McjCoderOrg.ClaudeAutoResume.E2ETests
- McjCoderOrg.ClaudeAutoResume.SystemTests
- Features
- StepDefinitions
- McjCoderOrg.ClaudeAutoResume.Tests
20 files changed
+2008
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments