Skip to content

App v0.2.2

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Dec 12:02
aa75743

Release Notes for Cuuri v0.2.2

Important Update Notice

This update changes the handling of the SQLite file. As a result, compatibility with the previous $HOME/.cuuri/database.db file has been lost. When upgrading from version 0.2.1 to 0.2.2, please delete the $HOME/.cuuri/database.db file (make a backup if necessary) and then launch Cuuri. A new SQLite file will be automatically generated.

Overview

This release introduces several improvements and bug fixes to the Cuuri application, including database migrations, updated dependencies, and improvements in the handling of chat histories. The following details outline the changes made in v0.2.2.

Enhancements

Database Migrations

  • Integrated diesel_migrations for better database migration management.
  • Created a new migration to define the chat_histories table, which stores historical chat data.
    • Up Migration: Establishes the chat_histories table with fields for id, session_id, question, answer, and created_at.
    • Down Migration: Provides a rollback feature that drops the chat_histories table if needed.

Version Updates

  • Updated the application version to 0.2.2 in package.json, package-lock.json, and tauri.conf.json.
  • Updated database dependencies to improve compatibility and performance.

Code Refactoring and Cleanup

  • Removed the obsolete src-tauri/src/database.rs through refactoring. The database connection is now established using the establish_connection function.
  • Introduced get_database_path utility to dynamically determine the database path, ensuring the path is valid and directories are created if necessary.
  • Streamlined chat history retrieval and insertion processes to improve clarity and maintenance.

Configuration File Initialization

  • Added init_config_file functionality to check for and create a default configuration file at the user's home directory if it does not exist. The config file now includes placeholders for the OpenAI API key and the default model.

Improved Functionality

  • Updated chat history commands to utilize the new table schema and improved database connection handling.
  • Reduced the complexity of function signatures by eliminating unnecessary state management, making the functions simpler and easier to read.

Dependency Updates

  • Updated various dependencies to newer versions, including diesel, ensuring compatibility with the latest features and improvements.

Bug Fixes

  • Addressed various minor issues identified during testing.

Conclusion

This release marks a significant improvement in the functionality and maintainability of the Cuuri application. The introduction of structured migrations and the refined database handling will enhance user experience and future development.


We appreciate your continued support and welcome any feedback or contributions to make Cuuri even better!