Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(frontend): restore runtime queue i18n and guard against prune
wizardchend37e28930950
diff --git a/frontend/src/i18n/localeKeyAudit.test.ts b/frontend/src/i18n/localeKeyAudit.test.tsindex 3bc28cfc6..d96b17c25 100644--- a/frontend/src/i18n/localeKeyAudit.test.ts+++ b/frontend/src/i18n/localeKeyAudit.test.ts@@ -68,6 +68,51 @@ const PARSER_ENGINE_NAMES = ['opendataloader',] as const+/** Worker pools / queues use dynamic te() paths in RuntimeQueues.vue; keep in sync with internal/types/task.go. */+const RUNTIME_WORKER_POOL_NAMES = [+ 'core',+ 'postprocess',+ 'enrichment',+ 'maintenance',+ 'shared',+ 'wiki',+] as const++const RUNTIME_QUEUE_NAMES = [+ 'default',+ 'chat_attachment',+ 'postprocess',+ 'summary',+ 'sync',+ 'low',+ 'multimodal',+ 'graph',+ 'question',+ 'wiki',+] as const++const RUNTIME_TASK_TYPE_KEYS = [+ 'documentProcess',+ 'manualProcess',+ 'temporaryDocumentProcess',+ 'postProcess',+ 'summary',+ 'tableSummary',+ 'question',+ 'multimodal',+ 'graph',+ 'sync',+ 'faqImport',+ 'batchReparse',+ 'batchDelete',+ 'move',+ 'indexDelete',+ 'kbClone',+ 'kbDelete',+ 'wikiIngest',+ 'wikiFinalize',+] as const+test('registered audit action labels exist as flat keys in every locale', () => {const failures: string[] = []@@ -178,6 +223,42 @@ test('prune rebuild restores registered audit keys from baked-in English default)})+test('runtime queue worker pool and queue labels exist in every locale', () => {+ const failures: string[] = []++ for (const pool of RUNTIME_WORKER_POOL_NAMES) {+ for (const [localeName, keys] of Object.entries(localeKeysByName) as Array<[LocaleName, Set<string>]>) {+ if (!keys.has(`system.globalSettings.runtime.pools.${pool}`)) {+ failures.push(`${localeName}: missing system.globalSettings.runtime.pools.${pool}`)+ }+ if (!keys.has(`system.globalSettings.runtime.poolDescriptions.${pool}`)) {+ failures.push(`${localeName}: missing system.globalSettings.runtime.poolDescriptions.${pool}`)+ }+ }+ }++ for (const queue of RUNTIME_QUEUE_NAMES) {+ for (const [localeName, keys] of Object.entries(localeKeysByName) as Array<[LocaleName, Set<string>]>) {+ if (!keys.has(`system.globalSettings.runtime.queueNames.${queue}`)) {+ failures.push(`${localeName}: missing system.globalSettings.runtime.queueNames.${queue}`)+ }+ if (!keys.has(`system.globalSettings.runtime.queueDescriptions.${queue}`)) {+ failures.push(`${localeName}: missing system.globalSettings.runtime.queueDescriptions.${queue}`)+ }+ }+ }++ for (const taskType of RUNTIME_TASK_TYPE_KEYS) {+ for (const [localeName, keys] of Object.entries(localeKeysByName) as Array<[LocaleName, Set<string>]>) {+ if (!keys.has(`system.globalSettings.runtime.tasks.taskTypes.${taskType}`)) {+ failures.push(`${localeName}: missing system.globalSettings.runtime.tasks.taskTypes.${taskType}`)+ }+ }+ }++ assert.deepEqual(failures, [], failures.slice(0, 20).join('\n'))+})+test('parser engine display keys exist in every locale', () => {const failures: string[] = []diff --git a/frontend/src/i18n/localeKeyAudit.ts b/frontend/src/i18n/localeKeyAudit.tsindex db6b86f1d..c9b2f46ad 100644--- a/frontend/src/i18n/localeKeyAudit.ts+++ b/frontend/src/i18n/localeKeyAudit.ts@@ -91,6 +91,11 @@ const EXTRA_PREFIXES = ['integrations.tabs.','knowledgeStages.stage.','knowledgeStages.status.',+ 'system.globalSettings.runtime.pools.',+ 'system.globalSettings.runtime.poolDescriptions.',+ 'system.globalSettings.runtime.queueNames.',+ 'system.globalSettings.runtime.queueDescriptions.',+ 'system.globalSettings.runtime.tasks.taskTypes.','organization.role.','inviteRegister.','modelSettings.builtinModels.',diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.tsindex 9d00d9964..3d18308ac 100755--- a/frontend/src/i18n/locales/en-US.ts+++ b/frontend/src/i18n/locales/en-US.ts@@ -3069,6 +3069,27 @@ export default {cancel: 'Failed to cancel task',run_now: 'Failed to run task',delete: 'Failed to clear record'+ },+ taskTypes: {+ documentProcess: 'Document parsing',+ manualProcess: 'Manual reprocessing',+ temporaryDocumentProcess: 'Chat attachment parsing',+ postProcess: 'Document post-processing',+ summary: 'Summary generation',+ tableSummary: 'Table summary generation',+ question: 'Question generation',+ multimodal: 'Image multimodal processing',+ graph: 'Knowledge graph extraction',+ sync: 'Data-source sync',+ faqImport: 'FAQ import',+ batchReparse: 'Batch reparse',+ batchDelete: 'Batch delete',+ move: 'Document move',+ indexDelete: 'Index deletion',+ kbClone: 'Knowledge-base clone',+ kbDelete: 'Knowledge-base deletion',+ wikiIngest: 'Wiki content generation',+ wikiFinalize: 'Wiki finalization'}},models: {@@ -3088,6 +3109,46 @@ export default {queued: 'Throttling',full: 'At limit'}+ },+ pools: {+ core: 'Core parsing',+ postprocess: 'Post-process orchestration',+ enrichment: 'Enrichment',+ maintenance: 'Maintenance & sync',+ shared: 'Shared elastic',+ wiki: 'Wiki pool'+ },+ poolDescriptions: {+ core: 'Guaranteed document and manual parsing capacity',+ postprocess: 'Parse finalization and enrichment fan-out',+ enrichment: 'Summaries, images, graph, and question generation',+ maintenance: 'Source sync, batch work, and deletion cleanup',+ shared: 'Borrowed by core or enrichment according to backlog',+ wiki: 'Wiki content generation and global finalization'+ },+ queueNames: {+ default: 'Document parsing',+ chat_attachment: 'Chat attachments',+ postprocess: 'Post-process',+ summary: 'Summaries',+ sync: 'Source sync',+ low: 'Maintenance & batch',+ multimodal: 'Multimodal',+ graph: 'Graph extraction',+ question: 'Questions',+ wiki: 'Wiki pipeline'+ },+ queueDescriptions: {+ default: 'Document parse, manual reparse',+ chat_attachment: 'Session-scoped chat upload parsing',+ postprocess: 'Parse finalization, enrichment fan-out',+ summary: 'Document & table summaries',+ sync: 'Manual & scheduled sync',+ low: 'FAQ import, batch reparse, cleanup',+ multimodal: 'Image OCR, vision captions',+ graph: 'Chunk-level graph extraction',+ question: 'Chunk-level question generation',+ wiki: 'Content generation, index finalize'}},keyLabels: {diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.tsindex 446b5c301..4e1602363 100755--- a/frontend/src/i18n/locales/ko-KR.ts+++ b/frontend/src/i18n/locales/ko-KR.ts@@ -2834,6 +2834,27 @@ export default {retry: '재시도 중',archived: '최종 실패',completed: '완료'+ },+ taskTypes: {+ documentProcess: '문서 파싱',+ manualProcess: '수동 재처리',+ temporaryDocumentProcess: '채팅 첨부 파일 파싱',+ postProcess: '문서 후처리',+ summary: '요약 생성',+ tableSummary: '표 요약 생성',+ question: '질문 생성',+ multimodal: '이미지 멀티모달 처리',+ graph: '지식 그래프 추출',+ sync: '데이터 소스 동기화',+ faqImport: 'FAQ 가져오기',+ batchReparse: '일괄 재파싱',+ batchDelete: '일괄 삭제',+ move: '문서 이동',+ indexDelete: '인덱스 삭제',+ kbClone: '지식 베이스 복제',+ kbDelete: '지식 베이스 삭제',+ wikiIngest: 'Wiki 콘텐츠 생성',+ wikiFinalize: 'Wiki 마무리'}},failedNotice: {@@ -2866,6 +2887,46 @@ export default {retry: '재시도 중',archived: '최종 실패'},+ pools: {+ core: '핵심 파싱',+ postprocess: '후처리 오케스트레이션',+ enrichment: '콘텐츠 보강',+ maintenance: '유지 관리 및 동기화',+ shared: '공유 탄력 풀',+ wiki: 'Wiki 풀'+ },+ poolDescriptions: {+ core: '문서 및 수동 파싱 보장 용량',+ postprocess: '파싱 마무리 및 보강 작업 분배',+ enrichment: '요약, 이미지, 그래프 및 질문 생성',+ maintenance: '데이터 소스 동기화, 일괄 작업 및 삭제 정리',+ shared: '적체에 따라 핵심 파싱 또는 보강이 공유',+ wiki: 'Wiki 콘텐츠 생성 및 전체 마무리'+ },+ queueNames: {+ default: '문서 파싱',+ chat_attachment: '대화 첨부파일 파싱',+ postprocess: '후처리 오케스트레이션',+ summary: '요약 생성',+ sync: '데이터 소스 동기화',+ low: '유지 관리 및 일괄 작업',+ multimodal: '멀티모달 처리',+ graph: '그래프 추출',+ question: '질문 생성',+ wiki: 'Wiki 처리'+ },+ queueDescriptions: {+ default: '문서 파싱, 수동 재파싱',+ chat_attachment: '세션 내 업로드 첨부파일 파싱',+ postprocess: '파싱 마무리, 보강 분배',+ summary: '문서 요약, 테이블 요약',+ sync: '수동 및 예약 동기화',+ low: 'FAQ 가져오기, 일괄 재파싱, 삭제 정리',+ multimodal: '이미지 OCR, 시각 설명',+ graph: '청크 단위 그래프 추출',+ question: '청크 단위 질문 생성',+ wiki: '콘텐츠 생성, 인덱스 마무리'+ },errors: {generic: '큐 상태를 불러오지 못했습니다'}diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.tsindex 486101cb4..ebf8ce5cc 100755--- a/frontend/src/i18n/locales/ru-RU.ts+++ b/frontend/src/i18n/locales/ru-RU.ts@@ -2834,6 +2834,27 @@ export default {retry: 'Повтор',archived: 'Окончательный сбой',completed: 'Завершены'+ },+ taskTypes: {+ documentProcess: 'Разбор документа',+ manualProcess: 'Ручная повторная обработка',+ temporaryDocumentProcess: 'Обработка вложения чата',+ postProcess: 'Постобработка документа',+ summary: 'Создание сводки',+ tableSummary: 'Создание сводки таблицы',+ question: 'Генерация вопросов',+ multimodal: 'Обработка изображений',+ graph: 'Извлечение графа знаний',+ sync: 'Синхронизация источника',+ faqImport: 'Импорт FAQ',+ batchReparse: 'Пакетный повторный разбор',+ batchDelete: 'Пакетное удаление',+ move: 'Перемещение документа',+ indexDelete: 'Удаление индекса',+ kbClone: 'Клонирование базы знаний',+ kbDelete: 'Удаление базы знаний',+ wikiIngest: 'Создание Wiki-контента',+ wikiFinalize: 'Завершение Wiki'}},failedNotice: {@@ -2866,6 +2887,46 @@ export default {retry: 'Повтор',archived: 'Окончательный сбой'},+ pools: {+ core: 'Основной разбор',+ postprocess: 'Оркестрация постобработки',+ enrichment: 'Обогащение',+ maintenance: 'Обслуживание и синхронизация',+ shared: 'Общий эластичный пул',+ wiki: 'Пул Wiki'+ },+ poolDescriptions: {+ core: 'Гарантированная ёмкость разбора документов',+ postprocess: 'Завершение разбора и запуск обогащения',+ enrichment: 'Сводки, изображения, граф и генерация вопросов',+ maintenance: 'Синхронизация источников, пакетные задачи и удаление',+ shared: 'Используется разбором или обогащением по мере очереди',+ wiki: 'Создание содержимого Wiki и финальная обработка'+ },+ queueNames: {+ default: 'Разбор документов',+ chat_attachment: 'Разбор вложений чата',+ postprocess: 'Постобработка',+ summary: 'Сводки',+ sync: 'Синхронизация источников',+ low: 'Обслуживание и пакеты',+ multimodal: 'Мультимодальные',+ graph: 'Извлечение графа',+ question: 'Вопросы',+ wiki: 'Wiki-конвейер'+ },+ queueDescriptions: {+ default: 'Разбор документов, ручной повторный разбор',+ chat_attachment: 'Разбор вложений, загруженных в сессии',+ postprocess: 'Завершение разбора, запуск обогащения',+ summary: 'Сводки документов и таблиц',+ sync: 'Ручная и плановая синхронизация',+ low: 'Импорт FAQ, пакетный повторный разбор, очистка',+ multimodal: 'OCR изображений, визуальные описания',+ graph: 'Извлечение графа по фрагментам',+ question: 'Генерация вопросов по фрагментам',+ wiki: 'Создание контента, финализация индекса'+ },errors: {generic: 'Не удалось загрузить состояние очередей'}diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.tsindex bad4dcdec..61e2d3ca9 100755--- a/frontend/src/i18n/locales/zh-CN.ts+++ b/frontend/src/i18n/locales/zh-CN.ts@@ -2834,6 +2834,27 @@ export default {retry: '重试中',archived: '最终失败',completed: '已完成'+ },+ taskTypes: {+ documentProcess: '文档解析',+ manualProcess: '手工重新处理',+ temporaryDocumentProcess: '聊天附件解析',+ postProcess: '文档后处理',+ summary: '摘要生成',+ tableSummary: '表格摘要生成',+ question: '问题生成',+ multimodal: '图片多模态处理',+ graph: '知识图谱抽取',+ sync: '数据源同步',+ faqImport: 'FAQ 导入',+ batchReparse: '批量重新解析',+ batchDelete: '批量删除',+ move: '文档移动',+ indexDelete: '索引删除',+ kbClone: '知识库复制',+ kbDelete: '知识库删除',+ wikiIngest: 'Wiki 内容生成',+ wikiFinalize: 'Wiki 收尾处理'}},failedNotice: {@@ -2866,6 +2887,46 @@ export default {retry: '重试中',archived: '最终失败'},+ pools: {+ core: '核心解析',+ postprocess: '后处理编排',+ enrichment: '内容富化',+ maintenance: '维护与同步',+ shared: '共享弹性',+ wiki: 'Wiki 池'+ },+ poolDescriptions: {+ core: '文档解析与手工重解析的保底容量',+ postprocess: '解析完成后的收尾与富化扇出',+ enrichment: '摘要、图片、图谱与问题生成',+ maintenance: '数据源同步、批处理与删除清理',+ shared: '由核心解析与内容富化按积压借用',+ wiki: 'Wiki 内容生成与全局收尾'+ },+ queueNames: {+ default: '文档解析',+ chat_attachment: '对话附件解析',+ postprocess: '后处理编排',+ summary: '摘要生成',+ sync: '数据源同步',+ low: '维护与批处理',+ multimodal: '多模态处理',+ graph: '图谱抽取',+ question: '问题生成',+ wiki: 'Wiki 处理'+ },+ queueDescriptions: {+ default: '文档解析、手工重解析',+ chat_attachment: '会话内上传附件解析',+ postprocess: '解析收尾、富化扇出',+ summary: '文档摘要、表格摘要',+ sync: '手动与定时同步',+ low: 'FAQ 导入、批量重解析、删除清理',+ multimodal: '图片 OCR、视觉描述',+ graph: '分块图谱抽取',+ question: '分块问题生成',+ wiki: '内容生成、索引收尾'+ },errors: {generic: '获取队列状态失败'}