github zeeyado/koassistant.koplugin v0.11.4

latest releases: v0.19.1, v0.19.0, v0.18.2...
3 months ago

Release Notes v0.11.4

Plugin Compatibility Fix

KOAssistant can now run alongside assistant.koplugin and other plugins.

This release includes a comprehensive namespace refactor to prevent module name conflicts. All internal modules now use the koassistant_ prefix, ensuring clean coexistence with other KOReader plugins.

Fixes Issue #28: Plugin loading error when assistant.koplugin is installed

Bug Fixes

Translate Page Gesture

  • Fixed: "Prompt 'translate' not found" error when using translate page gesture (Discussion #29)
  • Fixed: Placeholder substitution failing after using general context actions (Ask, etc.)
  • Special actions (translate, quick_define) now passed directly instead of being looked up by ID

Translation Improvements

  • Fixed: Brazilian Portuguese format placeholders causing crashes (%s/%d%1)
  • Updated: All translation files regenerated with new namespace references

Update Checker

  • Fixed: Wrong plugin version reported when assistant.koplugin is installed
  • Now loads _meta.lua from plugin's own directory using dofile() instead of require()

Internal Fixes

  • Fixed: Undefined variable prompt_type in dictionary context extraction
  • Improved: Type validation for version strings to prevent crashes

Technical Details

Namespace Changes (PR #30):

  • Renamed 10 conflicting modules with koassistant_ prefix
  • Renamed directories: api_handlers/koassistant_api/, ui/koassistant_ui/
  • Updated ~85 require statements across codebase

Files renamed:

  • dialogs.luakoassistant_dialogs.lua
  • chatgptviewer.luakoassistant_chatgptviewer.lua
  • gpt_query.luakoassistant_gpt_query.lua
  • config_helper.luakoassistant_config_helper.lua
  • message_history.luakoassistant_message_history.lua
  • chat_history_manager.luakoassistant_chat_history_manager.lua
  • chat_history_dialog.luakoassistant_chat_history_dialog.lua
  • settings_schema.luakoassistant_settings_schema.lua
  • update_checker.luakoassistant_update_checker.lua
  • model_lists.luakoassistant_model_lists.lua

Full Changelog: v0.11.3...v0.11.4

Don't miss a new koassistant.koplugin release

NewReleases is sending notifications on new releases.