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.luafrom plugin's own directory usingdofile()instead ofrequire()
Internal Fixes
- Fixed: Undefined variable
prompt_typein 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.lua→koassistant_dialogs.luachatgptviewer.lua→koassistant_chatgptviewer.luagpt_query.lua→koassistant_gpt_query.luaconfig_helper.lua→koassistant_config_helper.luamessage_history.lua→koassistant_message_history.luachat_history_manager.lua→koassistant_chat_history_manager.luachat_history_dialog.lua→koassistant_chat_history_dialog.luasettings_schema.lua→koassistant_settings_schema.luaupdate_checker.lua→koassistant_update_checker.luamodel_lists.lua→koassistant_model_lists.lua
Full Changelog: v0.11.3...v0.11.4