Skip to content

chore: update codebuddy dependency to version 0.2 in pyproject.toml - #854

Open
promoteAI wants to merge 8 commits into
HKUDS:mainfrom
promoteAI:chenhj-dev
Open

chore: update codebuddy dependency to version 0.2 in pyproject.toml #854
promoteAI wants to merge 8 commits into
HKUDS:mainfrom
promoteAI:chenhj-dev

Conversation

@promoteAI

Copy link
Copy Markdown
Contributor

Description

uv sync
Using CPython 3.12.9
Creating virtual environment at: .venv
× No solution found when resolving dependencies for split (markers: python_full_version == '3.13.*'):
╰─▶ Because only the following versions of codebuddy-agent-sdk are available:
codebuddy-agent-sdk<0.1.24
codebuddy-agent-sdk>0.2
and deeptutor[codebuddy] depends on codebuddy-agent-sdk>=0.1.24,<0.2, we can conclude that deeptutor[codebuddy]'s requirements are unsatisfiable.
And because your project requires deeptutor[codebuddy], we can conclude that your project's requirements are unsatisfiable.

  hint: While the active Python version is 3.12, the resolution failed for other Python versions supported by your project. Consider limiting your
  project's supported Python versions using `requires-python`.

Related Issues

  • Closes #...
  • Related to #...

Module(s) Affected

  • agents
  • api
  • config
  • core
  • knowledge
  • logging
  • services
  • tools
  • utils
  • web (Frontend)
  • docs (Documentation)
  • scripts
  • tests
  • Other: ...

Checklist

  • I have read and followed the contribution guidelines.
  • My code follows the project's coding standards.
  • I have run pre-commit run --all-files and fixed any issues.
  • I have added relevant tests for my changes.
  • I have updated the documentation (if necessary).
  • My changes do not introduce any new security vulnerabilities.

Additional Notes

Add any other context or screenshots about the pull request here.

chenhj and others added 8 commits August 5, 2026 10:08
…sing

- Added `_dispatch_background_task` to run long-running tasks on a separate daemon thread, preventing blocking of the main event loop during knowledge base ingestion.
- Updated `upload_files` and `create_knowledge_base` functions to utilize the new background task dispatching method.
- Implemented rollback functionality for partially created knowledge bases in case of failures during file saving.
- Enhanced tests to verify the correct offloading of file saving and background task execution.
The engine landed with three knobs that could not work as written:

- ``extract_images`` was gated on a user-supplied ``image_output_dir``
  that defaulted to empty, so image extraction never ran. Even when set,
  images landed outside ``images/`` and the Markdown kept LiteParse's
  bare ``![](img_p1_1.png)`` names, so the cache loader saw neither.
  Images now go to the workdir's ``images/`` like the PyMuPDF4LLM engine,
  links are rewritten to ``images/<name>``, and an empty dir is removed.
- ``output_format`` was selectable, but the parse always writes ``.md``;
  picking JSON or text produced a mislabelled document. Pinned to
  Markdown and dropped from the settings slice.
- ``image_output_dir`` was a free-text path joined onto the workdir.
  Removed with the rest.

Also: normalize the slice with the shared coercers (a bare ``bool()``
reads the string ``"false"`` as True), allow-list ``image_mode``, pass
``quiet`` and ``ocr_failure_fatal=False`` so a systemic OCR failure
degrades to recovered text instead of losing the document, pin the
extra to ``<3.0``, and keep the engine lists in the three tests that
assert them exactly.

Excludes the unrelated background-task/rollback/off-loop changes this
branch carried in ``api/routers/knowledge.py``: dev already routes
uploads through ``_save_uploaded_files_off_loop``, and the rest is a
separate change that deserves its own review.
# Conflicts:
#	deeptutor/services/parsing/engines/liteparse/config.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants