Skip to content

Conversation

@qnixsynapse
Copy link
Contributor

Describe Your Changes

Moves the core logic for managing llama.cpp backends - including version detection, compatibility checking, migration, prioritization, and updates - from the TypeScript extension to the Rust Tauri plugin.

Changes:

  • tauri-plugin-llamacpp:
    • Added src/backend.rs containing the logic for backend management.
    • Exposed new commands: map_old_backend_to_new, list_supported_backends, determine_supported_backends, prioritize_backends, check_backend_for_updates, remove_old_backend_versions, etc.
    • Added unit tests for backend logic in Rust.
    • Updated permissions and guest-js bindings to include new commands.
  • llamacpp-extension:
    • Refactored src/backend.ts and src/index.ts to delegate logic to the Rust plugin.
    • Removed obsolete TypeScript implementation of backend logic and corresponding tests.
    • Simplified configuration and update workflows by using the centralized Rust API.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

Barecheck - Code coverage report

Total: 29.93%

Your code coverage diff: 0.01% ▴

✅ All code changes are covered

Moves the core logic for managing llama.cpp backends—including version detection, compatibility checking, migration, prioritization, and updates—from the TypeScript extension to the Rust Tauri plugin.

Changes:
- **tauri-plugin-llamacpp**:
  - Added `src/backend.rs` containing the logic for backend management.
  - Exposed new commands: `map_old_backend_to_new`, `list_supported_backends`, `determine_supported_backends`, `prioritize_backends`, `check_backend_for_updates`, `remove_old_backend_versions`, etc.
  - Added unit tests for backend logic in Rust.
  - Updated permissions and guest-js bindings to include new commands.
- **llamacpp-extension**:
  - Refactored `src/backend.ts` and `src/index.ts` to delegate logic to the Rust plugin.
  - Removed obsolete TypeScript implementation of backend logic and corresponding tests.
  - Simplified configuration and update workflows by using the centralized Rust API.
Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qnixsynapse qnixsynapse merged commit 81cd0df into main Jan 2, 2026
17 checks passed
@qnixsynapse qnixsynapse deleted the chore/rs_llamacpp branch January 2, 2026 05:40
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.

3 participants