* feat: merge types and add tests
- Merged types.ts and tracker.ts
- Added Jest configuration and setup
- Added comprehensive tests for tools and agent
- Updated package.json with test scripts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* chore: remove tracker.ts after merging into types.ts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: remove sensitive API keys from jest.setup.js
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* fix: improve error handling and test timeouts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add token budget enforcement to TokenTracker
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add github actions workflow for CI and fix remaining issues
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* refactor: centralize token tracking and clean up console output
- Remove manual token tracking in agent.ts
- Track tokens through tokenTracker.trackUsage()
- Clean up verbose console output
- Add ESLint configuration
- Fix TypeScript linting issues
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: simplify sleep function and use console.log consistently
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: remove color modifiers from console.log statements
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
* refactor: remove redundant code and use config imports
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: standardize token tracking in search and read tools
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* refactor: standardize console logging with colors and levels
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add centralized token tracking utility
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: integrate token tracking across all tools
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
* feat: add token tracking and colored console output to agent
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>