feat: Implement wiki editing functionalities and UI components

- Added new tools for wiki page editing, including writing, replacing text, renaming, and deleting pages, with corresponding data structures for each action.
- Enhanced the frontend with a new `WikiEditResult` component to display results of wiki edits, supporting multiple languages for improved accessibility.
- Updated localization files for English and Chinese to include new strings related to wiki actions.
- Modified existing tools to return structured data for wiki actions, improving the clarity and usability of the output messages.

These changes significantly enhance the wiki editing capabilities, providing users with a more robust and user-friendly experience when managing wiki content.
This commit is contained in:
wizardchen
2026-04-10 21:35:28 +08:00
parent 995e2157cd
commit 84edfa5439
10 changed files with 483 additions and 11 deletions
@@ -73,6 +73,12 @@
:data="toolData as GrepResultsData"
/>
<!-- Wiki Edit Results Display -->
<WikiEditResult
v-else-if="displayType === 'wiki_write_page' || displayType === 'wiki_replace_text' || displayType === 'wiki_rename_page' || displayType === 'wiki_delete_page'"
:data="toolData as WikiEditData"
/>
<!-- Fallback: Display raw output -->
<div v-else class="fallback-output">
<div class="fallback-header">
@@ -100,7 +106,8 @@ import type {
DatabaseQueryData,
WebSearchResultsData,
WebFetchResultsData,
GrepResultsData
GrepResultsData,
WikiEditData
} from '@/types/tool-results';
import SearchResults from './tool-results/SearchResults.vue';
@@ -115,6 +122,7 @@ import DatabaseQuery from './tool-results/DatabaseQuery.vue';
import WebSearchResults from './tool-results/WebSearchResults.vue';
import WebFetchResults from './tool-results/WebFetchResults.vue';
import GrepResults from './tool-results/GrepResults.vue';
import WikiEditResult from './tool-results/WikiEditResult.vue';
interface Props {
displayType?: DisplayType;