Commit Graph

447 Commits

Author SHA1 Message Date
Alishahryar1 605b69ca1e Updated readme 2026-02-15 10:53:57 -08:00
Alishahryar1 e5a096049d feat: add OpenRouter support and configuration options
- Introduced OpenRouter as a new provider option in settings and environment configuration.
- Updated README.md to include instructions for using OpenRouter.
- Enhanced the message converter to support reasoning content for OpenRouter.
- Added tests for OpenRouter provider functionality and message conversion.
- Updated dependencies to include OpenRouterProvider.
2026-02-15 10:50:53 -08:00
Ali Khokhar 2d72dc7304 Merge pull request #18 from Alishahryar1/cursor/issue-17-investigation-739c
Issue 17 investigation
2026-02-15 10:11:35 -08:00
Cursor Agent 435c0c9088 docs: add VS Code login screen bypass (Anthropic Console)
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 18:11:06 +00:00
Ali Khokhar de970deb5d Update tests.yml 2026-02-15 09:24:33 -08:00
Ali Khokhar 46a9c14536 Update README.md 2026-02-15 07:36:03 -08:00
Ali Khokhar eb85c10848 Update README.md 2026-02-15 07:33:58 -08:00
Ali Khokhar cadd2c1503 Update README.md 2026-02-15 07:32:16 -08:00
Alishahryar1 7f38cbd1d0 Fixed readme 2026-02-15 04:07:34 -08:00
Alishahryar1 95039bab1f Updated .env.example 2026-02-15 04:04:23 -08:00
Alishahryar1 8ed1658e4e Reordered workflow 2026-02-15 02:03:07 -08:00
Alishahryar1 7dfcad2a4c Enhance logging and error handling across multiple modules
- Added request ID context to logging in FastAPI routes and NVIDIA NIM provider.
- Improved logging format to include context variables for better traceability.
- Updated message handling in Telegram and Claude handlers to log message previews.
- Enhanced error logging in NVIDIA NIM provider with request ID for easier debugging.
- Added logging for tree repository actions to track tree and node registrations.
2026-02-15 02:01:57 -08:00
Alishahryar1 830840f98f updated workflow 2026-02-15 01:18:51 -08:00
Alishahryar1 96e6765315 Removed python setup and tests from workflow 2026-02-15 01:16:54 -08:00
Alishahryar1 ab74791e4b Improved logging coverage 2026-02-14 23:14:58 -08:00
Alishahryar1 3950c39ae8 Updated workflow 2026-02-14 23:04:27 -08:00
Alishahryar1 8fb5ee698b fixed yml typo 2026-02-14 23:02:19 -08:00
Alishahryar1 0d292cd578 ci: enhance type checking in workflow and improve test coverage
- Added a step to fail the CI if any '# type: ignore' comments are found in Python files.
- Refactored tests to use mocking for better isolation and reliability.
- Updated type hints and casting in several files to improve type safety.
2026-02-14 23:01:11 -08:00
Ali Khokhar 97217debfa Merge pull request #16 from Alishahryar1/cursor/readme-badges-best-practices-2d69
Readme badges best practices
2026-02-14 22:43:59 -08:00
github-actions[bot] 9822e2d6a1 style: apply ruff format 2026-02-15 06:43:46 +00:00
Cursor Agent be78008429 ci: checkout branch to fix detached HEAD on PR
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:43:11 +00:00
Cursor Agent ebdfdbb6c9 ci: run ruff format and auto-commit instead of format check
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:42:00 +00:00
Cursor Agent 6b9bc617cb fix: resolve ty unresolved-attribute on RuntimeError.status_code
Use custom ExceptionWithStatus class instead of dynamically adding
status_code to RuntimeError

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:40:40 +00:00
Cursor Agent 37f2e2871e ci: remove hardcoded feature branch from workflow triggers
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:39:34 +00:00
Cursor Agent 6d1197fb9b ci: add type check and format check, block merge on failure
- Run ty check; fail CI if type errors
- Run ruff format --check; fail CI if not formatted
- Rename workflow to CI

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:38:41 +00:00
Cursor Agent 4919a58381 docs: change pytest badge to show Tested with | Pytest
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:36:59 +00:00
Cursor Agent 216086bc73 docs: change pytest badge label to Tested with Pytest
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:36:35 +00:00
Cursor Agent 2959672527 docs: change tests badge label to pytest
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:35:57 +00:00
Cursor Agent 414f74a6d2 fix: unify uv and tests badge size with style=for-the-badge, add tests label
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:34:43 +00:00
Cursor Agent 8fbcec372b docs: add type checking and formatting commands to Development section
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:33:22 +00:00
Cursor Agent d68fd6013c fix: align README badges with best practices
- License: use standard MIT yellow badge, link to opensource.org
- Python: update to 3.14 to match pyproject.toml
- uv: use official dynamic endpoint badge from astral-sh/uv
- Tests: replace static pytest 95% with GitHub Actions badge
- Ty: fix link to PyPI (pypi.org/project/ty/)
- Add .github/workflows/tests.yml for CI

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:32:25 +00:00
Ali Khokhar 8509e44a82 Merge pull request #13 from Alishahryar1/cursor/resource-usage-optimization-009f
Resource usage optimization
2026-02-14 22:26:02 -08:00
Cursor Agent c05b696c6e revert: remove optimization and Go migration plan docs
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 06:25:35 +00:00
Ali Khokhar a8ea7d0e1e Update README.md 2026-02-14 21:15:28 -08:00
Ali Khokhar 54a88d5648 Merge pull request #14 from Alishahryar1/cursor/uv-badge-addition-3fb9 2026-02-14 21:14:26 -08:00
Cursor Agent 084141a415 Add uv badge after Python badge in README
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 05:14:09 +00:00
Ali Khokhar 01e29742f6 Update README.md 2026-02-14 21:12:45 -08:00
Cursor Agent 948fa57b56 docs: add Phase 1 Go proxy implementation plan
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 05:11:15 +00:00
Cursor Agent db47717595 docs: add Golang migration candidates and hybrid architecture options
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 05:08:49 +00:00
Cursor Agent 413ce7aa62 docs: add resource usage and efficiency optimization plan
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 05:07:17 +00:00
Cursor Agent 575637bc94 fix: correct except clause syntax in request_utils (TypeError, ValueError)
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 05:07:17 +00:00
Alishahryar1 7a71c48582 Changed pytest badge color to green 2026-02-14 20:32:55 -08:00
Alishahryar1 b64d512b8e Update pytest badge 2026-02-14 20:32:27 -08:00
Alishahryar1 c2ba9fed79 Updated badge colors 2026-02-14 20:31:38 -08:00
Alishahryar1 d937dd4a52 Updated readme 2026-02-14 20:30:37 -08:00
Alishahryar1 2efebb247c Updated readme 2026-02-14 20:29:59 -08:00
Cursor Agent fdcb711399 fix: use RuntimeError in test_generic_exception_with_status_code to exercise getattr fallback
APIError is a ProviderError subclass, so it was caught by 'except ProviderError: raise'
and handled by provider_error_handler, bypassing the generic exception path that uses
getattr(e, 'status_code', 500). The test now uses RuntimeError with a dynamically-added
status_code attribute to actually test that fallback logic in routes.py.

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 04:23:21 +00:00
Cursor Agent 253fdac48c Fix get_queue_snapshot corrupting queue _unfinished_tasks
The drain/put approach used get_nowait() and put_nowait(). Each
put_nowait() increments _unfinished_tasks without a corresponding
task_done(), permanently inflating the counter on every invocation.

Revert to reading the internal deque directly (list(self._queue._queue))
which does not mutate any queue state. This matches the approach used
in remove_from_queue.

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
2026-02-15 04:23:03 +00:00
Alishahryar1 7259b1def8 Optimized code in hot paths with z-ai/glm5 2026-02-14 19:59:46 -08:00
Alishahryar1 952a2351ec always enabled thinking 2026-02-14 19:46:29 -08:00