feat(console): improve extension plugin loading robustness#840
Closed
KariHall619 wants to merge 6 commits into
Closed
feat(console): improve extension plugin loading robustness#840KariHall619 wants to merge 6 commits into
KariHall619 wants to merge 6 commits into
Conversation
Modified Extension.vue to pass i18n, API, and Cache context to plugins. This enables plugins to use main app's resources directly for seamless integration. - Import useI18n from vue-i18n and Cache from ./cache - Initialize i18n in component setup - Create context object with i18n, API, and Cache - Pass context as second parameter to plugin.mount()
Added comprehensive AI-related translations for both English and Chinese locales. This enables the AI plugin to use main app's i18n directly for seamless language switching. - Added ai.title, ai.subtitle sections - Added ai.settings with all configuration labels - Added ai.button with action labels - Added ai.status for connection states - Added ai.input, ai.option for user inputs - Added ai.welcome for welcome messages - Added ai.provider for provider descriptions - Added ai.message for user feedback messages
- Remove unused 'language' key from ai.settings (plugin no longer has language option) - Add 'copiedSuccess' message for clipboard copy feedback - Ensure consistency between English and Chinese translations Plugin language is now fully controlled by main app settings, with no duplicate language selection in plugin UI.
Added handleStore() calls in GetStores and getLoaderByStoreName to automatically fill empty socket URLs using GetExtensionSocketPath(). This ensures stores loaded from config file get correct socket paths without hardcoding user-specific paths, making the configuration portable across different users and systems. Fixes issue where AI extension showed "Not Ready" status due to outdated socket path in stores.yaml configuration.
LinuxSuRen
requested changes
Oct 15, 2025
|
LinuxSuRen
requested changes
Oct 25, 2025
| }; | ||
|
|
||
| try { | ||
| plugin.mount(container, context); |
Owner
There was a problem hiding this comment.
已有的插件只有一个参数,这样会导致不兼容。另外 i18n 应该是在插件里实现。不可能把所有插件的 i18n 都写在 core 里。
Contributor
Author
|
这个pr的提交存在一些问题, 我会把它的修改合并到另外一个pr里. 减少复杂度 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What type of PR is this?
feat(console): improve extension plugin loading robustness
What this PR does / why we need it: