Commit 524827f
committed
feat: add tests, file locking, and CI test integration
- Add vitest test framework with 24 tests across 4 test files
- Token estimation tests (5 tests)
- Tool executor tests (8 tests) - reads, writes, patches, deletes, shell, security, path traversal
- Settings manager tests (4 tests) - defaults, save/load, dot paths, corrupt settings
- Provider tests (7 tests) - model routing, retry logic with backoff
- Add file locking system (src/core/lock.ts) for concurrent agent operations
- Wire file locking into tool executor for write operations
- Add test script to package.json (npm test, npm run test:watch)
- Add npm test step to CI workflow
- Fast retry delays in test mode (10/20/30ms vs 1s/3s/8s)1 parent c981614 commit 524827f
16 files changed
Lines changed: 1648 additions & 24 deletions
File tree
- .github/workflows
- dist
- providers
- tools
- src
- core
- providers
- tools
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments